【发布时间】:2011-12-15 02:09:11
【问题描述】:
我在 cygwin 下遇到 cmake 问题。我安装了 cygwin 的 CMake 包和普通的 CMake 包(在 Windows 中),每次我运行 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.
这是什么问题?谁能帮忙解决这个问题?
【问题讨论】:
-
发现问题。我需要从 cygwin 安装 setup.exe 附带的 make、gcc 和 gcc-c++ 软件包。
-
您应该将其发布为答案(您可能需要等待一段时间)。