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

User avatar
By tytower
#16065 I have just installed the ESP 2866 library from Github and when trying to compile only , the standard wiFi server program I get a compiler error that a file cannot be executed on my Linux machine .

Has anyone had this and recognises the cause now? Here is what is output
/tmp/build1805287591596065479.tmp/WiFiWebServer.cpp.o
/opt/arduino-1.6.3/hardware/esp8266com/esp8266/tools/linux/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++: /opt/arduino-1.6.3/hardware/esp8266com/esp8266/tools/linux/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++: cannot execute binary file
/opt/arduino-1.6.3/hardware/esp8266com/esp8266/tools/linux/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ returned 126
Error compiling.
Last edited by tytower on Sat May 09, 2015 7:03 pm, edited 1 time in total.
User avatar
By tytower
#16127 I emailed Sandeep and his asked me what was the output of
ldd
/opt/arduino-1.6.3/hardware/esp8266com/esp8266/tools/linux/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++


My output was
The output of ldd is " not a dynamic executable "
I'm starting to think I have installed the 64 bit version whereas I am running 32 bit.
I have my installation in /opt/ and put the hardware file in there as I prefer it that way