No CMAKE_C_COMPILER could be found

GrandRiver
Posts: 9
Joined: Thu Dec 03, 2020 1:18 am

No CMAKE_C_COMPILER could be found

Postby GrandRiver » Fri Dec 04, 2020 9:41 am

请教请教,我遇到这个编译问题,好似是CMAKE 编译器没有,我是用esp-idf-tools-setup-2.3.exe安装的工具; 不晓得如何单独安装呢


E:\ESP32\esp-adf\examples\get-started\play_mp3\main>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory e:\esp32\esp-adf\examples\get-started\play_mp3\main\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=1 e:\esp32\esp-adf\examples\get-started\play_mp3\main"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.


CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.13)

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.

-- Configuring incomplete, errors occurred!
See also "E:/ESP32/esp-adf/examples/get-started/play_mp3/main/build/CMakeFiles/CMakeOutput.log".
See also "E:/ESP32/esp-adf/examples/get-started/play_mp3/main/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

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

Re: No CMAKE_C_COMPILER could be found

Postby ESP_HengYC » Tue Dec 15, 2020 9:35 am

GrandRiver wrote:
Fri Dec 04, 2020 9:41 am
请教请教,我遇到这个编译问题,好似是CMAKE 编译器没有,我是用esp-idf-tools-setup-2.3.exe安装的工具; 不晓得如何单独安装呢


E:\ESP32\esp-adf\examples\get-started\play_mp3\main>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory e:\esp32\esp-adf\examples\get-started\play_mp3\main\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=1 e:\esp32\esp-adf\examples\get-started\play_mp3\main"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.


CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.13)

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.

-- Configuring incomplete, errors occurred!
See also "E:/ESP32/esp-adf/examples/get-started/play_mp3/main/build/CMakeFiles/CMakeOutput.log".
See also "E:/ESP32/esp-adf/examples/get-started/play_mp3/main/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1


我注意到你是使用 windows 环境, 建议你参考这个链接重新配置下环境 :https://docs.espressif.com/projects/esp ... nvironment

Who is online

Users browsing this forum: No registered users and 91 guests