korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

fleche
Posts: 1
Joined: Thu Jan 14, 2021 7:54 am

korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby fleche » Thu Jan 14, 2021 7:56 am

我之前做过很多esp32的实例,都没有问题;这次买了korvo_du1906的板,怎么都完不成

1. 我是完全下载了的,也是用的adf里面的idf版本。
git clone --recursive https://github.com/espressif/esp-adf.git

2. 执行了idf里的Install,和export


- E:/iot/esp-adf/components/esp-adf-libs, Chip is esp32
-- Current board name is CONFIG_ESP32_KORVO_DU1906_BOARD
CMake Error at components/bdsc_engine/CMakeLists.txt:9 (add_prebuilt_library):
Unknown CMake command "add_prebuilt_library".

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby ESP_HengYC » Mon Jan 18, 2021 6:22 am

你好, 请更新到最新的 adf 版本, readme 文档说明的编译是需要 [IDF]: audio/stack_on_psram_v3.3 这个分支。

你按照文档说明操作一遍试试? https://github.com/espressif/esp-adf/bl ... /README.md

sagesiot
Posts: 12
Joined: Thu Feb 18, 2021 2:35 pm

Re: korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby sagesiot » Sat Feb 20, 2021 10:53 am

楼主解决了么?我同样出现类似的问题:
Loading defaults file /home/gfzou/esp/esp-adf/examples/korvo_du1906/sdkconfig.defaults...
-- IDF_VER: v3.3.1-276-g606dd2b62
-- Project version: v1.3.0
-- Found PythonInterp: /home/gfzou/.espressif/python_env/idf3.3_py3.8_env/bin/python (found version "3.8.5")
-- Found Perl: /bin/perl (found version "5.30.0")
-- Adding linker script /home/gfzou/esp/esp-adf/examples/korvo_du1906/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.extram.bss.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- /home/gfzou/esp/esp-adf/components/esp-adf-libs, Chip is esp32
-- Current board name is CONFIG_ESP32_KORVO_DU1906_BOARD
CMake Error at components/bdsc_engine/CMakeLists.txt:9 (add_prebuilt_library):
Unknown CMake command "add_prebuilt_library".


-- Configuring incomplete, errors occurred!
See also "/home/gfzou/esp/esp-adf/examples/korvo_du1906/build/CMakeFiles/CMakeOutput.log".
See also "/home/gfzou/esp/esp-adf/examples/korvo_du1906/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby ESP_HengYC » Sun Apr 25, 2021 2:14 am

sagesiot wrote:
Sat Feb 20, 2021 10:53 am
楼主解决了么?我同样出现类似的问题:
Loading defaults file /home/gfzou/esp/esp-adf/examples/korvo_du1906/sdkconfig.defaults...
-- IDF_VER: v3.3.1-276-g606dd2b62
-- Project version: v1.3.0
-- Found PythonInterp: /home/gfzou/.espressif/python_env/idf3.3_py3.8_env/bin/python (found version "3.8.5")
-- Found Perl: /bin/perl (found version "5.30.0")
-- Adding linker script /home/gfzou/esp/esp-adf/examples/korvo_du1906/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.extram.bss.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/gfzou/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- /home/gfzou/esp/esp-adf/components/esp-adf-libs, Chip is esp32
-- Current board name is CONFIG_ESP32_KORVO_DU1906_BOARD
CMake Error at components/bdsc_engine/CMakeLists.txt:9 (add_prebuilt_library):
Unknown CMake command "add_prebuilt_library".


-- Configuring incomplete, errors occurred!
See also "/home/gfzou/esp/esp-adf/examples/korvo_du1906/build/CMakeFiles/CMakeOutput.log".
See also "/home/gfzou/esp/esp-adf/examples/korvo_du1906/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

你好, DU1906 是较复杂的一个 ADF 例程,依赖 特殊IDF 分支和 patch, 请仔细阅读说明文档 README.md ,按照说明步骤操作,再尝试一下,谢谢!

ActonYuan
Posts: 1
Joined: Fri Sep 10, 2021 8:23 am

Re: korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby ActonYuan » Fri Sep 10, 2021 8:26 am

发现使用idf.py工具编译就会报这个错,通过make命令可以正常编译并烧录,供参考!

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: korvo_du1906实例无法编译成功 Unknown CMake command "add_prebuilt_library"

Postby ESP_HengYC » Mon Sep 13, 2021 9:14 am

audio/stack_on_psram_v3.3 这个分支,请使用 GNU make 方式来编译。

Who is online

Users browsing this forum: No registered users and 26 guests