#1 Le 23/11/2007, à 18:02
- no404
CMake Error: your CXX compiler was not found
Bonjour,
je tente de faire un build de projet avec cmake, mais j'obtiens une erreur dont je ne parviens pas à trouver la signification :
$ cmake ../dossier_source/
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done
Apparemment mon cmake est mal configuré et ne trouve pas mon compilateur gcc. Pourtant ce dernier est bien installé. Avez-vous une idée pour résoudre ce problème ? Merci
#2 Le 03/04/2008, à 10:58
- Monsieur Casque
Re : CMake Error: your CXX compiler was not found
Ca fait un peu déterrage mais ça pourra toujours servir à quelqu'un d'autre. En fait c'est le compilateur c++ qu'il ne trouve pas. Il faut donc installer le package g++
sudo apt-get install g++
Et voilà
Hors ligne
#3 Le 15/05/2008, à 21:13
- xasoft
Re : CMake Error: your CXX compiler was not found
Merci, ca marche pour moi.
Et hop vidalia sur mon ubuntu
#4 Le 20/02/2010, à 13:27
- Elringer
Re : CMake Error: your CXX compiler was not found
Sur Kubuntu 9.10 :
sudo apt-get install g++-multilib
Le mot liberté n‘admet, par définition, aucune restriction.
Hors ligne
#5 Le 03/02/2017, à 16:22
- Laloi
Re : CMake Error: your CXX compiler was not found
Sur Kubuntu 9.10 :
sudo apt-get install g++-multilib
Merci ! Sur une Xubuntu 16.04 fraîchement, installée, la commande a réglé mon problème de
No CMAKE_CXX_COMPILER could be found
Hors ligne