Hi,
The code is compiled in esp-idf 4.0 but is not compiling in version 4.3.1, using fresh setup on a new m/c as per the directions for the windows installer. I would appreciate if someone can look into this. The errors reported are for blufi api(s) linking (PS if I try to create a new blufi example it compiles properly)
Best Regards,
Pradeep
Enclosing the errors below
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.example_net_event_handler+0x3c): undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.example_net_event_handler+0x48): undefined reference to `esp_blufi_send_wifi_list'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.skydot_blutooth_init+0x30): undefined reference to `esp_blufi_get_version'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.skydot_blutooth_init+0x34): undefined reference to `esp_blufi_register_callbacks'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.skydot_blutooth_init+0x38): undefined reference to `esp_blufi_profile_init'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj):(.literal.example_event_callback+0x74): undefined reference to `esp_blufi_send_error_info'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj): in function `example_net_event_handler':
C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:124: undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:152: undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:153: undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:181: undefined reference to `esp_blufi_send_wifi_list'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj): in function `skydot_blutooth_init':
C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:482: undefined reference to `esp_blufi_get_version'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:482: undefined reference to `esp_blufi_register_callbacks'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:485: undefined reference to `esp_blufi_profile_init'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_blufi_main.c.obj): in function `example_event_callback':
C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:266: undefined reference to `esp_blufi_send_error_info'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:279: undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_blufi_main.c:287: undefined reference to `esp_blufi_send_wifi_conn_report'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(blufi_security.c.obj):(.literal.blufi_dh_negotiate_data_handler+0x24): undefined reference to `btc_blufi_report_error'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(blufi_security.c.obj): in function `blufi_dh_negotiate_data_handler':
C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/blufi_security.c:77: undefined reference to `btc_blufi_report_error'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/blufi_security.c:89: undefined reference to `btc_blufi_report_error'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/blufi_security.c:98: undefined reference to `btc_blufi_report_error'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/blufi_security.c:106: undefined reference to `btc_blufi_report_error'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(blufi_security.c.obj):C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/blufi_security.c:112: more undefined references to `btc_blufi_report_error' follow
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_bg96_main.c.obj):(.literal.secondsTimerCallback+0x30): undefined reference to `esp_blufi_send_custom_data'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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(esp32_bg96_main.c.obj): in function `secondsTimerCallback':
C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_bg96_main.c:553: undefined reference to `esp_blufi_send_custom_data'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_bg96_main.c:559: undefined reference to `esp_blufi_send_custom_data'
c:/users/5el/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\5eL\eclipse-workspace\OBD2_V2\build/../main/esp32_bg96_main.c:568: undefined reference to `esp_blufi_send_custom_data'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Build complete (31 errors, 13 warnings): C:\Users\5eL\eclipse-workspace\OBD2_V2\build
Total time taken to build the project: 262,072 ms
Code developed in ESP-IDF Version 4.0, does not compile in version 4.3.1
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: Code developed in ESP-IDF Version 4.0, does not compile in version 4.3.1
Could you try removing the build directory (or running idf.py fullclean) and retrying?
Re: Code developed in ESP-IDF Version 4.0, does not compile in version 4.3.1
Yes I did this exercise of deleting the build folder altogether & cleaning the project.
Also tried executing build directly from the command prompt
Best Regards,
Pradeep
Also tried executing build directly from the command prompt
Best Regards,
Pradeep
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: Code developed in ESP-IDF Version 4.0, does not compile in version 4.3.1
In menuconfig, did you enable CONFIG_BT_BLE_BLUFI_ENABLE ?
Who is online
Users browsing this forum: Google [Bot] and 227 guests