AutomationD / esp-alt-sdk

❌This repo is not maintained anymore❌
20 stars 6 forks source link

Cant compile blinky example.. #24

Closed larsenglund closed 8 years ago

larsenglund commented 8 years ago

Hi, I finally got a toolchain going (I think) with esp-alt-sdk but when trying to build the blinky example i get this:

lars@ubuntu:~/esp-alt-sdk/source-code-examples/blinky$ make
LD build/app.out
/home/lars/esp-alt-sdk/esp_iot_sdk_v1.5.2/lib/libwpa.a(wpa_auth.o): In function `wpa_receive':
(.irom0.text+0x9a0): undefined reference to `aes_wrap'
/home/lars/esp-alt-sdk/esp_iot_sdk_v1.5.2/lib/libwpa.a(wpa_auth.o): In function `__wpa_send_eapol':
(.irom0.text+0xd73): undefined reference to `aes_wrap'
collect2: error: ld returned 1 exit status
Makefile:117: recipe for target 'build/app.out' failed

First I got a bunch of implicit declaration warnings so I included the espmissingincludes.h as described here esp8266/esp8266-wiki#41 Then I got errors about the volatile declaration on volatile os_timer_t some_timer being discarded when calling for example os_timer_arm(&some_timer, 1000, 1); and solved that by explicitly casting away the volatile with os_timer_arm((os_timer_t*)&some_timer, 1000, 1); Then I got another implicit declaration error for system_os_task and not knowing what to include to fix it I added -Wno-implicit-function-declaration to the Makefile Then I got the above error related to libwpa.a and I don't know how to proceed...

larsenglund commented 8 years ago

Nevermind, just had to add some libraries in the makefile LIBS = c gcc hal pp phy net80211 lwip wpa pwm upgrade main ssl crypto