ecplise编译play_mp3出现错误

angertohome
Posts: 1
Joined: Mon Feb 07, 2022 6:49 am

ecplise编译play_mp3出现错误

Postby angertohome » Mon Feb 07, 2022 7:09 am

用ecplise编译例程的时候,跳出这个错误:

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': 系統找不到指定的檔案。
用cmd编译时是正常的,感觉应该是eclipse的环境有问题吗?

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-idf中的Eclipse ide
esp32版本:esp32-4.3.1

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

Re: ecplise编译play_mp3出现错误

Postby ESP_HengYC » Wed Mar 09, 2022 2:52 am

你好,

建议你使用 vscode IDF, 有很多插件。 ecplise 使用的人比较少,遇到问题也不方便解决。

Who is online

Users browsing this forum: No registered users and 21 guests