Ich versuche, ein Git-Projekt zu kompilieren, und ich habe einige Probleme mit CMake. Am Anfang ist es nicht den C++ Compiler und aufgefordert, einen Fehler gefunden:Fehler beim Kompilieren mit CMake
cmake ..
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.
Also, ich tat:
CXX="gcc" cmake ..
Aber ein anderer Fehler ausgelöst wurde:
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/gcc
-- Check for working CXX compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/gcc" is not able to compile a simple test program.
Wie kann ich diesen Fehler beheben und das Projekt kompilieren?
Versuchen Sie CMake auf einem Linux oder Mac OS-System zu benutzen? CMake sollte in der Lage sein, automatisch den Standard-Compiler auf Ihrem Computer zu erkennen. Was gibt der Befehl "g ++ -v" in einem Terminal zurück? – Antwane
Linux-System. Über das 'g ++ -v' wird ein" Befehl nicht gefunden "geworfen. – Patrick