Install the Build Tools

  1. To compile the ESP-IDFEspressif IoT Development Framework, obtain the necessary packages and follow the instructions on Espressif Systems. following the directions on https://docs.espressif.com/projects/esp-idf/en/stable/get-started/linux-setup.html. For Ubuntu, the commands are as follows:

sudo apt-get update

sudo apt-get install gcc git wget make libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-cryptography python-future

  1. Follow the instructions for Standard Setup of Toolchain for Linux from Espressif Systems to get the build tools (toolchain). For a 32-bit Linux, issue the following:

mkdir ~/esp

cd ~/esp

curl -O https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-80-g6c4433a-5.2.0.tar.gz

tar xfz xtensa-esp32-*.tar.gz

  1. Find the toolchain in the ~/esp/xtensa-esp32-elf directory, and then under that add the bin directory to your PATH variable in your shell's profile (usually .bash_profile), as shown below:
PATH=$PATH:~/esp/xtensa-esp32-elf/bin
  1. Issue the following command to test the compiler:

xtensa-esp32-elf-cc -v

 

NOTE

The response to this command should be “gcc 5.2.0” preceded by other information. If you receive, "command not found", there is a problem. Re-check that you completed the steps (outlined above) correctly. If this does not resolve the problem, contact Espressif Systems for technical product support.

 

Please click here to let us know how we're doing. Thank you.