Code: Select all
CMake Error at E:/ESP32-V4.3.1/tools/cmake/build.cmake:191 (message):
Failed to resolve component 'audio_sal'.
Call Stack (most recent call first):
E:/ESP32-V4.3.1/tools/cmake/build.cmake:222 (__build_resolve_and_add_req)
E:/ESP32-V4.3.1/tools/cmake/build.cmake:441 (__build_expand_requirements)
E:/ESP32-V4.3.1/tools/cmake/project.cmake:399 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
See also "E:/project/play_mp3/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': 系統找不到指定的檔案。
cmakelists如下
Code: Select all
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
#include($ENV{ADF_PATH}/CMakeLists.txt)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(play_mp3)
Code: Select all
set(COMPONENT_SRCS "play_mp3_example.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
set(COMPONENT_EMBED_TXTFILES adf_music.mp3)
register_component()
esp32版本:esp32-4.3.1