2011-12-15 141 views
11

我在cygwin下有cmake問題。我安裝了Cygwin的CMake的封裝和標準的CMake包(在Windows)我每次運行CMake的時間來配置它顯示以下項目:無法與cygwin一起運行cmake

$ 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. 

這是什麼問題呢?任何人都可以幫助解決這個問題?

+0

發現問題。 我需要安裝cygwin的setup.exe附帶的make,gcc和gcc-C++包。 – RenatoUtsch 2011-12-15 02:50:59

+0

您應該將其作爲回答發佈(您可能需要等待一段時間)。 – 2011-12-15 02:56:37

回答

18

發現問題。我需要安裝cygwin的setup.exe附帶的make,gcc和gcc-g ++軟件包。

2

您可能會看到此消息的另一個原因是,如果沒有安裝製造商