S3 编译示例工程 a2dp_sink 出错

alee163
Posts: 5
Joined: Tue Aug 09, 2022 9:19 pm

S3 编译示例工程 a2dp_sink 出错

Postby alee163 » Thu Dec 22, 2022 5:04 am

ESP-IDF 4.4.2

示例工程 examples\bluetooth\bluedroid\classic_bt\a2dp_sink 在 ESP32 下编译正常,但是改为 S3 后,链接时报错,若干函数找不到。

我看了一下 sdkconfig.defaults 文件,里面很多选项,在切换到 S3 以后,menuconfig 里是没有的。

S3不支持 a2dp 吗?还是这个示例工程不兼容 S3 ?

Code: Select all

/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x38): undefined reference to `esp_bt_gap_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x3c): undefined reference to `esp_avrc_ct_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x40): undefined reference to `esp_avrc_ct_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x44): undefined reference to `esp_avrc_tg_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x48): undefined reference to `esp_avrc_tg_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x4c): undefined reference to `esp_avrc_rn_evt_bit_mask_operation'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x50): undefined reference to `esp_avrc_tg_set_rn_evt_cap'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x54): undefined reference to `esp_a2d_sink_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x58): undefined reference to `esp_a2d_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x5c): undefined reference to `esp_a2d_sink_register_data_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.bt_av_hdl_stack_evt+0x60): undefined reference to `esp_bt_gap_set_scan_mode'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.app_main+0x38): undefined reference to `esp_bt_gap_set_pin'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj): in function `bt_av_hdl_stack_evt':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:107: undefined reference to `esp_bt_gap_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:109: undefined reference to `esp_avrc_ct_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:110: undefined reference to `esp_avrc_ct_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:111: undefined reference to `esp_avrc_tg_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:112: undefined reference to `esp_avrc_tg_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:115: undefined reference to `esp_avrc_rn_evt_bit_mask_operation'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:116: undefined reference to `esp_avrc_tg_set_rn_evt_cap'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:118: undefined reference to `esp_a2d_sink_init'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:119: undefined reference to `esp_a2d_register_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:120: undefined reference to `esp_a2d_sink_register_data_callback'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:123: undefined reference to `esp_bt_gap_set_scan_mode'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj): in function `app_main':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/main.c:167: undefined reference to `esp_bt_gap_set_pin'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj):(.literal.bt_av_new_track+0x4): undefined reference to `esp_avrc_ct_send_metadata_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj):(.literal.bt_av_new_track+0x8): undefined reference to `esp_avrc_ct_send_register_notification_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj):(.literal.bt_av_hdl_avrc_ct_evt+0x20): undefined reference to `esp_avrc_ct_send_get_rn_capabilities_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj):(.literal.volume_set_by_local_host+0x18): undefined reference to `esp_avrc_tg_send_rn_rsp'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_hdl_a2d_evt':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:248: undefined reference to `esp_bt_gap_set_scan_mode'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:252: undefined reference to `esp_bt_gap_set_scan_mode'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_new_track':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:307: undefined reference to `esp_avrc_ct_send_metadata_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:107: undefined reference to `esp_avrc_rn_evt_bit_mask_operation'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:109: undefined reference to `esp_avrc_ct_send_register_notification_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_playback_changed':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:116: undefined reference to `esp_avrc_rn_evt_bit_mask_operation'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:118: undefined reference to `esp_avrc_ct_send_register_notification_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_play_pos_changed':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:125: undefined reference to `esp_avrc_rn_evt_bit_mask_operation'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:127: undefined reference to `esp_avrc_ct_send_register_notification_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_hdl_avrc_ct_evt':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:326: undefined reference to `esp_avrc_ct_send_get_rn_capabilities_cmd'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `volume_set_by_local_host':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:217: undefined reference to `esp_avrc_tg_send_rn_rsp'
/home/alee/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(bt_app_av.c.obj): in function `bt_av_hdl_avrc_tg_evt':
/mnt/d/lib/esp-idf-v4.4/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_av.c:410: undefined reference to `esp_avrc_tg_send_rn_rsp'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

alee163
Posts: 5
Joined: Tue Aug 09, 2022 9:19 pm

Re: S3 编译示例工程 a2dp_sink 出错

Postby alee163 » Thu Dec 22, 2022 2:49 pm

应该是因为 S3 不支持经典蓝牙 A2DP

Who is online

Users browsing this forum: No registered users and 150 guests