Linking Error ESP-adf

dinesh_hops
Posts: 9
Joined: Sat Jun 26, 2021 1:42 am

Linking Error ESP-adf

Postby dinesh_hops » Thu Jul 01, 2021 9:15 am

[1242/1243] Linking CXX executable record_wav.elf
FAILED: record_wav.elf
cmd.exe /C "cd . && C:\PROGRA~1\XTENSA~1\XTENSA~1\bin\XT1FE9~1.EXE -mlongcalls -Wno-frame-address @CMakeFiles\record_wav.elf.rsp -o record_wav.elf && cd ."
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.get_name_from_eir+0x0): undefined reference to `esp_bt_gap_resolve_eir_data'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.filter_inquiry_scan_result+0x1c): undefined reference to `esp_bt_gap_cancel_discovery'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bt_app_gap_cb+0x2c): undefined reference to `esp_a2d_source_connect'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bt_app_gap_cb+0x30): undefined reference to `esp_bt_gap_start_discovery'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bt_app_gap_cb+0x34): undefined reference to `esp_bt_gap_pin_reply'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bt_a2d_source_cb+0x24): undefined reference to `esp_bt_gap_set_scan_mode'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bt_a2d_source_cb+0x28): undefined reference to `esp_a2d_media_ctrl'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x54): undefined reference to `esp_avrc_ct_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x58): undefined reference to `esp_avrc_ct_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x5c): undefined reference to `esp_a2d_sink_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x60): undefined reference to `esp_a2d_sink_register_data_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x64): undefined reference to `esp_a2d_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x68): undefined reference to `esp_bt_gap_set_pin'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x6c): undefined reference to `esp_bt_gap_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x70): undefined reference to `esp_a2d_source_register_data_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj):(.literal.bluetooth_service_start+0x74): undefined reference to `esp_a2d_source_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `get_name_from_eir':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:228: undefined reference to `esp_bt_gap_resolve_eir_data'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:230: undefined reference to `esp_bt_gap_resolve_eir_data'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `filter_inquiry_scan_result':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:296: undefined reference to `esp_bt_gap_cancel_discovery'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `bt_app_gap_cb':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:374: undefined reference to `esp_a2d_source_connect'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:378: undefined reference to `esp_bt_gap_start_discovery'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:399: undefined reference to `esp_bt_gap_pin_reply'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:403: undefined reference to `esp_bt_gap_pin_reply'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `bt_a2d_source_cb':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:434: undefined reference to `esp_bt_gap_set_scan_mode'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:443: undefined reference to `esp_a2d_media_ctrl'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:452: undefined reference to `esp_a2d_media_ctrl'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `bluetooth_service_start':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:506: undefined reference to `esp_avrc_ct_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:506: undefined reference to `esp_avrc_ct_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:511: undefined reference to `esp_a2d_sink_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:511: undefined reference to `esp_a2d_sink_register_data_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:514: undefined reference to `esp_a2d_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:521: undefined reference to `esp_bt_gap_set_pin'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:523: undefined reference to `esp_a2d_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:525: undefined reference to `esp_bt_gap_register_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:526: undefined reference to `esp_a2d_source_register_data_callback'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:526: undefined reference to `esp_a2d_source_init'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:546: undefined reference to `esp_bt_gap_start_discovery'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:546: undefined reference to `esp_bt_gap_set_scan_mode'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bluetooth_service.c.obj): in function `periph_bluetooth_stop':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:698: undefined reference to `esp_a2d_media_ctrl'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bt_keycontrol.c.obj):(.literal.key_act_state_hdl_idle+0x18): undefined reference to `esp_avrc_ct_send_passthrough_cmd'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bt_keycontrol.c.obj): in function `key_act_state_hdl_idle':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bt_keycontrol.c:129: undefined reference to `esp_avrc_ct_send_passthrough_cmd'
c:/progra~1/xtensa~1/xtensa~1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/bluetooth_service/libbluetooth_service.a(bt_keycontrol.c.obj): in function `key_act_state_hdl_press':
C:/Users/baps/Desktop/esp/esp-adf/components/bluetooth_service/bt_keycontrol.c:149: undefined reference to `esp_avrc_ct_send_passthrough_cmd'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


I am trying to connect i2s_stream_raeder and ble_stream_writer in esp32 lyraT board. but i am facing above issue. My code compiled but facing issue during linking. Is there any solution.

Who is online

Users browsing this forum: No registered users and 5 guests