dujeonglee / ESP32-WiFi-Extender

MIT License
20 stars 3 forks source link

Build error with esp-idf #1

Open kchar256 opened 3 years ago

kchar256 commented 3 years ago

I keep getting this error when building:

C:\Users\kh1\Desktop\ESP32-WiFi-Extender-master>idf.py build Executing action: all (aliases: build) Running ninja in directory c:\users\kh1\desktop\esp32-wifi-extender-master\build Executing "ninja all"... [1/5] Performing build step for 'bootloader' ninja: no work to do. [2/3] Linking CXX executable wifi_repeator.elf FAILED: wifi_repeator.elf cmd.exe /C "cd . && C:\Users\kh1.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\wifi_repeator.elf.rsp -o wifi_repeator.elf && cd ." c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(main.cpp.obj):(.literal.app_main+0x0): undefined reference to Flash::instance()' c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(main.cpp.obj):(.literal.app_main+0x4): undefined reference toStateMachine::instance()' c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(main.cpp.obj):(.literal.app_main+0x8): undefined reference to StateMachine::start()' c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(main.cpp.obj): in functionapp_main': c:\users\kh1\desktop\esp32-wifi-extender-master\build/../main/main.cpp:21: undefined reference to Flash::instance()' c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:\users\kh1\desktop\esp32-wifi-extender-master\build/../main/main.cpp:22: undefined reference toStateMachine::instance()' c:/users/kh1/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:\users\kh1\desktop\esp32-wifi-extender-master\build/../main/main.cpp:22: undefined reference to `StateMachine::start()' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1

I really don't see the reason for this though.

kbhuinfo commented 3 years ago

I have the same...would be thankful for a solution (under linux).

dujeonglee commented 3 years ago

Hi all,

Will have a look and get back. By this Sunday. Its been a long time since I build this proj last time.

dujeonglee commented 3 years ago

Undefined referrence can be fixed by adding sources explicitly in make. But libs changed a lot and now I face many compile errors. I will fix it when I have bandwidth.