Cmake: The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
Bonjour,
J'ai travaillé avec cmake sur un projet sur un ordinateur, et désormais j'essaye de retravailler sur ce projet sur un autre ordinateur, j'ai donc installé cmake avec apt-get, mais voilà ce qu'il se passe lorsque je l'utilise.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
cmake .
-- The C compiler identification is unknown
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:176 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- The CXX compiler identification is unknown
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:181 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Check for working C compiler: /usr/bin/gcc
CMake Error: Unknown extension ".c" for file "/home/ijatsu/Documents/test_sources/build/CMakeFiles/CMakeTmp/testCCompiler.c". TRY_COMPILE only works for enabled languages.
Currently enabled languages are: C CXX
See PROJECT command for help enabling other languages.
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE):
The C compiler "/usr/bin/gcc" 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.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred! |
Je m'arrache les cheveux aucune solution sur le net que j'ai trouvé ne semble y faire quoi que ce soit, pourriez vous m'aider s'il vous plait?