Próbuję skompilować projekt git i mam pewne problemy z CMake. Początkowo, nie znaleziono kompilatora C++ i skłoniła błąd:Błędy podczas kompilacji z 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.
Więc zrobiłem:
CXX="gcc" cmake ..
Ale inny błąd został poproszony:
-- 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.
Jak mogę rozwiązać ten błąd i skompilować projekt?
Próbujesz użyć CMake na systemie Linux lub Mac OS? Program CMake powinien automatycznie wykryć domyślny kompilator na komputerze. Co zwraca polecenie 'g ++ -v' w terminalu? – Antwane
System Linux. O 'g ++ -v', rzuca" polecenie nie znaleziono ". – Patrick