2011-12-15 22 views
11

Tengo un problema con cmake en virtud de cygwin. He instalado el paquete del cygwin CMake y el paquete normal de CMake (en Windows) y cada vez que funciono CMake para configurar un proyecto que muestra los siguientes:Error al ejecutar 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. 

¿Cuál es el problema? ¿Alguien puede ayudar a resolver este problema?

+0

Ha encontrado el problema. Necesitaba instalar los paquetes make, gcc y gcc-C++ que vienen con setup.exe de cygwin. – RenatoUtsch

+0

Deberías publicar eso como respuesta (es posible que tengas que esperar un momento). –

+0

Lo hizo. ¡Gracias! – RenatoUtsch

Respuesta

18

Encontró el problema. Necesitaba instalar los paquetes make, gcc y gcc-g ++ que vienen con setup.exe de cygwin.

+0

Por favor, marque la respuesta (se acepta su propia respuesta). –

+1

¿Quiere decir 'gcc-g ++'? 'gcc-C++' no existe. – nn0p

+0

tal vez? Han pasado 5 años desde la última vez que utilicé Cygwin, podría haber cometido un error en ese momento. – RenatoUtsch

2

Otra razón por la que puede ver este mensaje es si Make no está instalado

Cuestiones relacionadas