乐鑫技术交流
直播中

张桂兰

7年用户 1294经验值
私信 关注
[问答]

使用espressif打开工程编译时报错是哪里出了问题?

如下提示,使用espressif打开工程编译时出现以下提示,但是使用shell的idf.py build命令可以正常编译代码,请问是什么问题,还需要配置什么吗?谢谢
CMake Warning (dev) in CMakeLists.txt:

  No project() command is present.  The top-level CMakeLists.txt file must

  contain a literal, direct call to the project() command.  Add a line of

  code such as



    project(ProjectName)



  near the top of the file, but after cmake_minimum_required().



  CMake is pretending there is a "project(Project)" command on the first

  line.

This warning is for project developers.  Use -Wno-dev to suppress it.



CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.-- Configuring incomplete, errors occurred!



CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

CMake Warning (dev) in CMakeLists.txt:

  No cmake_minimum_required command is present.  A line of code such as



    cmake_minimum_required(VERSION 3.20)



  should be added at the top of the file.  The version specified may be lower

  if you wish to support older CMake versions for this project.  For more

  information run "cmake --help-policy CMP0000".

This warning is for project developers.  Use -Wno-dev to suppress it.

更多回帖

发帖
×
20
完善资料,
赚取积分