Patrick Gelin wrote:
Hi,
this is my problem:
[EMAIL PROTECTED]:~/Desktop/lilidab$ cmake .
-- Check for working CXX compiler: CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER_FULLPATH-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_FULLPATH-NOTFOUND --
broken
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeTestCXXCompiler.cmake:25:
MESSAGE The C++ compiler "CMAKE_CXX_COMPILER_FULLPATH-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.
Current CMake
stack:
/home/gelinp/Desktop/lilidab/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInformation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/usr/share/CMake/Modules/CMakeTestCXXCompiler.cmake
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND" was
not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.
-- Configuring done
I installed g++ and gcc packages but it is the same problem.
What can I do?
Thank you for your help.
Find out what gcc/g++ are called on your machine. Then set CC to gcc
and CXX to g++. My guess is on your OS gcc was installed as gcc-4.0.1
or some other version appended to the name. CMake only looks for
standard names for compilers.... cc, gcc, g++, c++, CC, etc. Some
linux distros have been installing the executables with versions
appended to the names, and cmake can't keep up with the names. I would
think that autoconf would have the same issue. So, you can either set
CC and CXX before running cmake, or put a symlink from gcc-some-version
to gcc in your bin directory.
-Bill
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake