Initiating developing on ESP8266 requires a toolchain capable of cross compiling for the target. Click here for a target agnostic guide to building a cross compiler toolchain.
Following the tutorial located at https://github.com/pfalcon/esp-open-sdk which provides a seamless script to automate the whole process.
Get the dependencies:
sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf \ flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \ sed git unzip bash help2man wget bzip2
Clone the ESP Open SDK Git repo:
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git cd esp-open-sdk
Use STANDALONE=y option to build a complete toolchain with required libraries placed in installation folder. Such a toolchain is easier to use. License issues are not relevant as I do not plan to distribute this toolchain.
We are done!
Do not forget to set XTENSA_TOOLS_ROOT and SDK_BASE variable in project Makefile to point to your toolchain installation directory and Espressif SDK directory respectively.
License related information is located at the end of tutorial. It is relevant for your peace of mind and conscience.