-->
Page 1 of 1

Blinky linker errors

PostPosted: Thu Feb 05, 2015 4:08 am
by mactro
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.

Re: Blinky linker errors

PostPosted: Fri Feb 06, 2015 12:10 pm
by jcmvbkbc
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.