Open kchar256 opened 3 years ago
I have the same...would be thankful for a solution (under linux).
Hi all,
Will have a look and get back. By this Sunday. Its been a long time since I build this proj last time.
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.
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 to
StateMachine::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 toStateMachine::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 function
app_main': c:\users\kh1\desktop\esp32-wifi-extender-master\build/../main/main.cpp:21: undefined reference toFlash::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::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 1I really don't see the reason for this though.