【问题标题】:Fail to run cmake with cygwin无法使用 cygwin 运行 cmake
【发布时间】: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++ 软件包。
  • 您应该将其发布为答案(您可能需要等待一段时间)。

标签: c++ c cygwin cmake


【解决方案1】:

发现问题。我需要从 cygwin 安装 setup.exe 附带的 make、gcc 和 gcc-g++ 软件包。

【讨论】:

  • 你的意思是gcc-g++gcc-c++ 不存在。
  • 也许吧?上次使用cygwin已经5年了,当时可能是我搞错了。
【解决方案2】:

您可能会看到此消息的另一个原因是未安装 Make

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-13
    • 1970-01-01
    • 2013-02-13
    相关资源
    最近更新 更多