Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By pvvx
#5574
ivanroberto wrote:Hi Cherts,

All of us have a lot of diferent needs (projects).

Could you teach us how to put a sample project to your IDE? (like: https://github.com/espressif/esp_iot_rtos_sdk)

Thanks

Extract files ‘esp_iot_rtos_sdk_make.zip’ – folder esp_iot_rtos_sdk
Files esp_iot_rtos_sdk-master + esp_iot_rtos_sdk_lib-master
Eclipse:
File->Import->General->Existing Project into Workspace->Next->Browse… folder esp_iot_rtos_sdk, Check ‘Copy projects into workspace’, Finish.
Select progect ‘esp_iot_rtos_sdk’ -> Import->File System->Next->From … esp_iot_rtos_sdk-master, Into folder: ‘esp_iot_rtos_sdk’. Check all files, Uncheck ‘Makefile’ into right panel. Finish.
+ esp_iot_rtos_sdk_lib-maste - copy lib
Compile…
You do not have the required permissions to view the files attached to this post.
User avatar
By ivanroberto
#5604 Hi pvvx,

It's a Christmans gift!
Thank you so much! :D

The lua project compiles flawless, but with esp_iot_rtos_sdk, i got some erros:

Code: Select all09:43:59 **** Build of configuration Default for project esp_iot_rtos_sdk ****
mingw32-make.exe -f C:/eclipse/workspace/esp_iot_rtos_sdk/Makefile -j4 all
mingw32-make[1]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app'
mingw32-make[1]: *** No rule to make target 'user/.output/eagle/debug/lib/libuser.a', needed by '.output/eagle/debug/image/eagle.app.v6.out'.  Pare.
mingw32-make[1]: *** Esperando que os outros processos terminem....
mingw32-make[2]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
DEPEND: CC -M user_main.c
In file included from ../../include/freertos/portable.h:318:0,
                 from ../../include/freertos/FreeRTOS.h:87,
                 from user_main.c:13:
../../include/freertos/portmacro.h:75:33: fatal error: xtensa/xtruntime.h: No such file or directory
 #include    <xtensa/xtruntime.h>
                                 ^
compilation terminated.
mingw32-make[2]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
mingw32-make[2]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
CC user_main.c
In file included from ../../include/freertos/portable.h:318:0,
                 from ../../include/freertos/FreeRTOS.h:87,
                 from user_main.c:13:
../../include/freertos/portmacro.h:75:33: fatal error: xtensa/xtruntime.h: No such file or directory
 #include    <xtensa/xtruntime.h>
                                 ^
compilation terminated.
../../Makefile:169: recipe for target '.output/eagle/debug/obj/user_main.o' failed
mingw32-make[2]: *** [.output/eagle/debug/obj/user_main.o] Error 1
mingw32-make[2]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
../Makefile:149: recipe for target '.subdirs' failed
mingw32-make[1]: *** [.subdirs] Error 2
mingw32-make[1]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app'
C:/eclipse/workspace/esp_iot_rtos_sdk/Makefile:149: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2

09:44:00 Build Finished (took 1s.219ms)


Do you use exactly same link than me? https://github.com/espressif/esp_iot_rtos_sdk

Could you help me?

Thanks
User avatar
By alonewolfx2
#5607
ivanroberto wrote:Hi pvvx,

It's a Christmans gift!
Thank you so much! :D

The lua project compiles flawless, but with esp_iot_rtos_sdk, i got some erros:

Code: Select all09:43:59 **** Build of configuration Default for project esp_iot_rtos_sdk ****
mingw32-make.exe -f C:/eclipse/workspace/esp_iot_rtos_sdk/Makefile -j4 all
mingw32-make[1]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app'
mingw32-make[1]: *** No rule to make target 'user/.output/eagle/debug/lib/libuser.a', needed by '.output/eagle/debug/image/eagle.app.v6.out'.  Pare.
mingw32-make[1]: *** Esperando que os outros processos terminem....
mingw32-make[2]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
DEPEND: CC -M user_main.c
In file included from ../../include/freertos/portable.h:318:0,
                 from ../../include/freertos/FreeRTOS.h:87,
                 from user_main.c:13:
../../include/freertos/portmacro.h:75:33: fatal error: xtensa/xtruntime.h: No such file or directory
 #include    <xtensa/xtruntime.h>
                                 ^
compilation terminated.
mingw32-make[2]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
mingw32-make[2]: Entering directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
CC user_main.c
In file included from ../../include/freertos/portable.h:318:0,
                 from ../../include/freertos/FreeRTOS.h:87,
                 from user_main.c:13:
../../include/freertos/portmacro.h:75:33: fatal error: xtensa/xtruntime.h: No such file or directory
 #include    <xtensa/xtruntime.h>
                                 ^
compilation terminated.
../../Makefile:169: recipe for target '.output/eagle/debug/obj/user_main.o' failed
mingw32-make[2]: *** [.output/eagle/debug/obj/user_main.o] Error 1
mingw32-make[2]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app/user'
../Makefile:149: recipe for target '.subdirs' failed
mingw32-make[1]: *** [.subdirs] Error 2
mingw32-make[1]: Leaving directory 'C:/eclipse/workspace/esp_iot_rtos_sdk/app'
C:/eclipse/workspace/esp_iot_rtos_sdk/Makefile:149: recipe for target '.subdirs' failed
mingw32-make.exe: *** [.subdirs] Error 2

09:44:00 Build Finished (took 1s.219ms)


Do you use exactly same link than me? https://github.com/espressif/esp_iot_rtos_sdk

Could you help me?

Thanks

I changed SDK folder into the espressif/examples/esp_iot_rtos_sdk and it's working now. Thanks pvvx :)