关于ESPRESSIF编译工程问题

goodboya
Posts: 2
Joined: Wed Jun 15, 2022 11:18 am

关于ESPRESSIF编译工程问题

Postby goodboya » Wed Jun 15, 2022 11:23 am

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

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.

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

Re: 关于ESPRESSIF编译工程问题

Postby ESP_HengYC » Tue Jul 19, 2022 12:07 pm

"MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

这个提示看下,似乎是 MinGW 这个工具缺少 CMAKE_MAKE_PROGRAM 环境变量,我没有使用过 windows 环境,不太好给出直接的解决办法, 你可以搜索下,或者直接使用 step-by-step 来重新设置编译环境。

Who is online

Users browsing this forum: No registered users and 4 guests