Linux环境
使用Windows 10 Linux 子系统 Ubuntu 16.04
其它Ubuntu以此类推;
安装编译链
sudo apt-get install git make gcc libncurses5-dev flex bison gperf python-serial
从这里获取最新的编译链,Linux 64bit的
http://esp-idf.readthedocs.io/en/latest/get-started/linux-setup.html#install-prerequisites
cd /home/jacob
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
sudo chmod 777 xtensa-esp32-elf
sudo tar zxvf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz -C /opt/esp
sudo vi /etc/environment
最后添加/opt/esp/xtensa-esp32-elf/bin
source /etc/environment
xtensa-esp32-elf-gcc -v
验证通过,即可。
最后添加启动自加载,到/etc/profile的最后,即在最后加入
export IDF_PATH=/mnt/c/wsl/esp/esp-idf
export PATH=/mnt/c/wsl/esp/xtensa-esp32-elf/bin:$PATH
</