dylanweber / mqtt-recv

ESP32 MQTT device with captive portal Wi-Fi login
Apache License 2.0
3 stars 1 forks source link

failed to compiled under ESP-IDF v4.2 #1

Open nissimzur opened 4 years ago

nissimzur commented 4 years ago

Hi, It failed to compiled under ESP-IDF v4.2-dev-1905-g625bd5eb1-dirty any suggestions?

ld.exe: esp-idf/main/libmain.a(main.c.obj): in function app_main': v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:27: undefined reference toapp_init' v:/esp-idf/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ ld.exe: v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:34: undefined reference to configure_clea r_interrupt' v:/esp-idf/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ ld.exe: v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:35: undefined reference toconfigureext interrupt' v:/esp-idf/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ ld.exe: v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:36: undefined reference to wifi_restore' v:/esp-idf/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ ld.exe: v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:38: undefined reference tosetup_routine'

v:/esp-idf/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ ld.exe: v:\esp-idf\esp32\esp-idf\examples\wifi\nissim3\captive_portal\mqtt-recv-master\build/../main/main.c:40: undefined reference to `mqtt_routine' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1

dylanweber commented 4 years ago

My main suggestion would be to try compiling the firmware under ESP-IDF v3.2 as this was the original IDF version that the firmware was intended to be built with. See the README.md for more information.

If the problem with this project is not your build system, then it is with the code base itself. Updating this repository to work under ESP-IDF v4.2 would probably take a non-significant amount of effort that I simply don't have time to do right now.