2011-12-15 16 views
11

Ho un problema con cmake sotto cygwin. Ho installato il pacchetto cygwin CMake e il normale pacchetto di CMake (in Windows) e ogni volta che corro CMake per configurare un progetto viene visualizzato il seguente:Impossibile eseguire cmake con cygwin

$ CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 
Missing variable is: 
CMAKE_C_COMPILER_ENV_VAR 
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. 
Missing variable is: 
CMAKE_C_COMPILER 
CMake Error: Could not find cmake module file:/home/LordEvil/build/CMakeFiles/CMakeCCompiler.cmake 
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. 
Missing variable is: 
CMAKE_CXX_COMPILER_ENV_VAR 
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. 
Missing variable is: 
CMAKE_CXX_COMPILER 
CMake Error: Could not find cmake module file:/home/LordEvil/build/CMakeFiles/CMakeCXXCompiler.cmake 
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage 
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage 
-- Configuring incomplete, errors occurred! 
CMake Error: The source directory "/home/LordEvil/build/tool." does not exist. 
Specify --help for usage, or press the help button on the CMake GUI. 

Cos'è questo problema? Qualcuno può aiutare a risolvere questo problema?

+0

Trovato il problema. Avevo bisogno di installare i pacchetti make, gcc e gcc-C++ forniti con setup.exe da cygwin. – RenatoUtsch

+0

Dovresti postarlo come risposta (potresti dover aspettare un po '). –

+0

Fatto. Grazie! – RenatoUtsch

risposta

18

Trovato il problema. Avevo bisogno di installare i pacchetti make, gcc e gcc-g ++ forniti con setup.exe da cygwin.

+0

Si prega di contrassegnare la risposta (la propria risposta però) accettata. –

+1

Vuoi dire 'gcc-g ++'? 'gcc-C++' non esiste. – nn0p

+0

forse? Sono passati 5 anni dall'ultima volta che ho usato Cygwin, avrei potuto commettere un errore all'epoca. – RenatoUtsch

2

Un altro motivo per cui è possibile visualizzare questo messaggio è se Make non è installato