Home > Backend Development > C++ > CMake Compiler Not Found: How to Fix the 'No CMAKE_C_COMPILER/CXX_COMPILER' Error on Ubuntu?

CMake Compiler Not Found: How to Fix the 'No CMAKE_C_COMPILER/CXX_COMPILER' Error on Ubuntu?

Linda Hamilton
Release: 2024-12-10 13:28:17
Original
686 people have browsed it

CMake Compiler Not Found: How to Fix the

CMake Compiler Not Found: CMakeLists.txt Line 30

When attempting to configure a Visual Studio solution with CMake for Aseprite compilation, users may encounter the following error:

No CMAKE_C_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found.
Copy after login

This issue arises due to the absence of established C and C compilers.

Solution for Ubuntu

For Ubuntu-based systems, the solution involves installing essential build tools using the following commands:

sudo apt-get update && sudo apt-get install build-essential
Copy after login

Once the installation is complete, CMake will be able to locate the necessary compilers and the compilation process can proceed smoothly.

The above is the detailed content of CMake Compiler Not Found: How to Fix the 'No CMAKE_C_COMPILER/CXX_COMPILER' Error on Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template