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

User avatar
By reaper7
#1237 @kikko_fr, @martinayotte - tnx for help!!!
libc.a & libhal.a from vm img -> /opt/Espressif/ESP8266_SDK/lib solved problem :D


@yeti - simply comment:
Code: Select all//typedef signed long         int32_t;

inside /opt/Espressif/ESP8266_SDK/include/c_types.h
User avatar
By yeti
#1238
reaper7 wrote:@yeti - simply comment:
Code: Select all//typedef signed long         int32_t;

inside /opt/Espressif/ESP8266_SDK/include/c_types.h
I was confused by:
noelportugal wrote:Also added "typedef unsigned long uint32_t;" under line 17 in "/opt/Espressif/ESP8266_SDK/include/c_types.h"

<huge>Thanks!</huge> :-)

----------8<----------
Edit:
Got hal compiled after changing some paths in it's Makefile and the example now only complains about missing newlib (libc). I think this confirms the crosstools-ng build on Debian6-LTE to be ok now... \o/
User avatar
By noelportugal
#1257 Help anyone? I am able to compile the AT example but when I try to compile the IoT_Demo I get a lot of the following undefined references:

Code: Select allLD build/esp8266_at.out
build/esp8266_at_app.a(user_webserver.o): In function `webserver_recon':
user_webserver.c:(.irom0.text+0xc8): undefined reference to `jsonparse_strcmp_value'
...
build/esp8266_at_app.a(user_webserver.o): In function `wifi_softap_set':
/home/noel/esp_sources/IoT_Demo/user/user_webserver.c:486: undefined reference to `jsonparse_strcmp_value'
...
build/esp8266_at_app.a(user_webserver.o): In function `device_get':
/home/noel/esp_sources/IoT_Demo/user/user_webserver.c:49: undefined reference to `jsontree_path_name'
...


And a couple more refering to undefines refernce to `espconn_secure_*....'

So obviously I'm missing a reference to a json lib, but not quite sure where.

Thanks!