linux compile esp8266

Compiler tool is xtensa-lx106-elf-gcc,
usually added at ~ / .bashrc file
Export the PATH = "$ the HOME / ESP-Open-sdk / Xtensa-lx106-ELF / bin /: $ the PATH"
Alias = xgcc " -lx106-ELF-Xtensa gcc "
Xtensa-lx106-ELF-gcc -v

Lexin official recommended the lubuntu-14.04 development environment, already well integrated tool chain, the virtual machine can use virtualbox.


The following text sdk Getting Started Guide:
Please download VirtualBox at the following link: https: //www.virtualbox.org/wiki/Downloads.
Please download the compiler ESP8266_lubuntu_20141021.ova in the following link:
http://downloads.espressif.com/FB/ESP8266_GCC.zip

Note that the name of the shared folder and need mount.sh the corresponding, otherwise it will not be loaded. At the same time officials have installed virtualbox enhancement tools, therefore, can be used to basically ready to use.

Under the new windows shared folder, copy the sdk which decompression.
Specific reference compilation
video https://v.youku.com/v_show/id_XMTcwNjA3ODk1Mg==.html


In the example routines copied to the root directory, for example IoT_Demo, then ./gen_misc.sh run, can be compiled. Which involves a number of options here not start, reference sdk Getting Started Guide.

In general, linux compiler environment is still very convenient, after all, the official provides a ready development environment. Shun the eclipse ratio can quickly bond.

Guess you like

Origin www.cnblogs.com/CodeWorkerLiMing/p/11259427.html