espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
Eclipse Public License 2.0
295 stars 115 forks source link

Cannot build an imported project that has managed components (undefined reference) (IEP-1273) #1004

Open sfeutrier opened 6 days ago

sfeutrier commented 6 days ago

Describe the bug My team has a project managed on GIT. I got the project and imported it in Espressif-IDE. I first faced an issue saying that my components has been modified locally so I run the bat script to remove the ".component_hash" files. I tried again to build but now I face an issue of "undefined reference".

station/managed_components/espressif__iot_bridge/src/bridge_wifi.c:209:(.text.esp_bridge_create_softap_netif+0x18): undefined reference toesp_netif_create_default_wifi_ap'`

Note it says the calls to esp_netif_create_default_wifi_ap is at line 209 in this file. But it's not. It's at line 285. But I don't know if it's relevant.

Expected behavior I should succeed to build without any issue.

Espressif-IDE Product Information: Console.txt

Eclipse Error log: error_logs

kolipakakondal commented 5 days ago

Hi @sfeutrier Could you please provide a sample project to reproduce the problem so that we can take a look?

sfeutrier commented 3 days ago

Hello @kolipakakondal I cannot provide a sample project as it is under NDA, sorry. What I can say is that I removed the sdkconfig (not the .default one). Rebuild and tada, it worked! I have no clue on what happened. It made us this with several Espressif-IDE projects maintained on Git