ESP_krzychb wrote: ↑Thu Jun 04, 2020 5:00 pm
Hi smart123,
The file
audio_type_def.h is located in
esp-adf-libs submodule of ESP-ADF repository.
If the file cannot be found during compilation then ESP-ADF v2.0 may not have been checked out properly. In particular submodules may not have been updated.
To properly checkout ESP-ADF v2.0 I would follow procedure described in
更新至一个稳定发布版本.
Note the procedure should be run inside ESP-ADF repository (cd $ADF_PATH):
Code: Select all
cd $ADF_PATH
git fetch
git checkout v2.0
git submodule update --init --recursive
Try executing above commands and repeat compilation.
Hi,ESP_krzychb
更新了ADF 为v2.0 play_mp3 已经ok 但是编译dueros的demo时候 最后出现如下的报错
warning: the default selection ESP32_KORVO_DU1906_CODEC_TAS5805M (undefined) of <choice ESP32_KORVO_DU1906_DAC> (defined at /home/smart/esp/esp-adf/components/audio_board/Kconfig.projbuild:25) is not contained in the choice
warning: the default selection SR_RUN_WM6_CORE1 (undefined) of <choice SR_RUN_WN6_CORE> (defined at /home/smart/esp/esp-adf/components/esp-sr/Kconfig.projbuild:83) is not contained in the choice
warning: the default selection CONFIG_SR_MN1_MODEL_QUANT (undefined) of <choice SR_MN_MODEL_SEL> (defined at /home/smart/esp/esp-adf/components/esp-sr/Kconfig.projbuild:100) is not contained in the choice
LD build/esp_dueros.elf
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x48): undefined reference to `audio_board_key_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x4c): undefined reference to `audio_board_sdcard_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o):(.literal.duer_app_init+0x50): undefined reference to `audio_board_led_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/build/main/libmain.a(dueros_app.o): in function `duer_app_init':
/home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:381: undefined reference to `audio_board_key_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:384: undefined reference to `audio_board_sdcard_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/examples/dueros/main/dueros_app.c:385: undefined reference to `audio_board_led_init'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl.c.obj):(.literal.media_ctrl_create+0x70): undefined reference to `audio_thread_create'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl.c.obj): in function `media_ctrl_create':
/Users/maojianxin/duros/esp-adf-libs-source/esp_audio/src/media_ctrl.c:296: undefined reference to `audio_thread_create'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl_task.c.obj):(.literal.media_ctrl_task+0x128): undefined reference to `audio_thread_delete_task'
/home/smart/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/smart/esp/esp-adf/components/esp-adf-libs/esp_audio/lib/esp32/libesp_audio.a(media_ctrl_task.c.obj): in function `media_ctrl_task':
/Users/maojianxin/duros/esp-adf-libs-source/esp_audio/src/media_ctrl_task.c:650: undefined reference to `audio_thread_delete_task'
collect2: error: ld returned 1 exit status
/home/smart/esp/esp-idf/make/project.mk:563: recipe for target '/home/smart/esp/esp-adf/examples/dueros/build/esp_dueros.elf' failed
make: *** [/home/smart/esp/esp-adf/examples/dueros/build/esp_dueros.elf] Error 1
红色标记的文件夹并不存在我的adf中