On Sep 19, 3:38 pm, Kornel Benko <[email protected]> wrote: > > Say, your main CMakeLists.txt for a project is in "/x/source" > Normally one only creates a directory, say "/x/build" > > cd /x/build > cmake /x/source > make > make install # this one as a superuser
I tried that. I made a directory cmake_build in the source directory, changed into that, and called cmake .. Maybe you can figure out what problem I have if I give you the actual output I get when I do that: [begin of cmake output] $ cmake .. CMake Warning at CMakeLists.txt:52 (project): To use the NMake generator, cmake must be run from a shell that can use the compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Warning at C:/MinGW/share/cmake-2.8/Modules/Platform/Windows- cl.cmake:28 ( ENABLE_LANGUAGE): To use the NMake generator, cmake must be run from a shell that can use the compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work. Call Stack (most recent call first): C:/MinGW/share/cmake-2.8/Modules/CMakeCInformation.cmake:58 (INCLUDE) CMakeLists.txt:52 (project) CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Ple ase set CMAKE_RC_COMPILER to a valid compiler path or name. -- Check for CL compiler version -- Check for CL compiler version - failed -- Check if this is a free VC compiler -- Check if this is a free VC compiler - yes -- Using FREE VC TOOLS, NO DEBUG available -- Check for working C compiler: cl CMake Warning at CMakeLists.txt:3 (PROJECT): To use the NMake generator, cmake must be run from a shell that can use the compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work. CMake Warning at C:/MinGW/share/cmake-2.8/Modules/Platform/Windows- cl.cmake:28 ( ENABLE_LANGUAGE): To use the NMake generator, cmake must be run from a shell that can use the compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work. Call Stack (most recent call first): C:/MinGW/share/cmake-2.8/Modules/CMakeCInformation.cmake:58 (INCLUDE) CMakeLists.txt:3 (PROJECT) CMake Error at C:/MinGW/share/cmake-2.8/Modules/ CMakeRCInformation.cmake:22 (GET _FILENAME_COMPONENT): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): C:/MinGW/share/cmake-2.8/Modules/Platform/Windows-cl.cmake:28 (ENABLE_LANGUAGE ) C:/MinGW/share/cmake-2.8/Modules/CMakeCInformation.cmake:58 (INCLUDE) CMakeLists.txt:3 (PROJECT) CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage CMake Error: your C compiler: "cl" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Check for working C compiler: cl -- broken CMake Error at C:/MinGW/share/cmake-2.8/Modules/ CMakeTestCCompiler.cmake:52 (MES SAGE): The C compiler "cl" 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:52 (project) CMake Error: your C compiler: "cl" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "cl" was not found. Please set CMAKE_CXX_COMPI LER to a valid compiler path or name. -- Configuring incomplete, errors occurred! [end of cmake output] I do not know what these variables refer to and where I should set them. My compiler is not cl, since I'm not using MSVC, it's gcc and g+ + like in a Linux system. Somehow cmake does not seem to figure out what system I am using. Now either it tries to detect what I have and fails, or something makes it have a preconceived notion, and I don't know how to change that. I think that the CMakeLists.txt is maybe insufficient for my purpose. Maybe it would help you to look at that as well? with regards KFJ -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
