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

User avatar
By mactro
#9039 Hi,

I'm trying to configure the toolchain on Ubuntu 14.04. I got to compiling the examples, but can't make blinky. When I try to compile I get missing -lhal linker error. I downloaded libhal form here: http://packages.ubuntu.com/precise/libhal-dev
but still no result. Now I get
Code: Select allskipping incompatible /opt/Espressif/ESP8266_SDK/lib/libhal.a when searching for -lhal
How can I fix it?

BTW. I also had problem with linker not finding libc. Managed it with moving it to SDK/lib directory, but I expected the basic examples to work more out-of-the-box.
User avatar
By jcmvbkbc
#9133
mactro wrote:Hi,

I'm trying to configure the toolchain on Ubuntu 14.04. I got to compiling the examples, but can't make blinky. When I try to compile I get missing -lhal linker error. I downloaded libhal form here: http://packages.ubuntu.com/precise/libhal-dev
but still no result. Now I get
Code: Select allskipping incompatible /opt/Espressif/ESP8266_SDK/lib/libhal.a when searching for -lhal
How can I fix it?

This is definitely not the libhal you need. If you're into building it yourself, here's the source you can build from: https://github.com/tommie/lx106-hal
Or you can get the 'open sdk' here: https://github.com/pfalcon/esp-open-sdk
It can download and build the development environment bits you need.

mactro wrote:BTW. I also had problem with linker not finding libc. Managed it with moving it to SDK/lib directory, but I expected the basic examples to work more out-of-the-box.

It's there as well.