SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.53k stars 491 forks source link

Newbie basic compilation error #380

Open msharathreddy opened 7 years ago

msharathreddy commented 7 years ago

Hi, I have configured the tool chain as described and trying to compile the examples, and I am getting the following error.

/opt/Espressif/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/lwip/ip_addr.h:203:65: error: expected declaration specifiers before 'ICACHE_FLASH_ATTR'

Please suggest me how to resolve this.

Regards, Sharath

projectgus commented 7 years ago

Hi Sharath,

The path shown to include/lwip suggests that esp-open-sdk's compy of LWIP was embedded into the toolchain's syroot when the toolchain was compiled.

If you use the "make" command shown in the quick start (up to and including "STANDALONE=n") then it should work once re-built (You might have to delete the old "xtensa-lx106-elf" directory that was built, I'm not sure if esp-open-sdk does that already.)