gpt4 book ai didi

c++ - 无法使用 cygwin 运行 cmake

转载 作者:IT老高 更新时间:2023-10-28 23:11:38 26 4
gpt4 key购买 nike

我在 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-g++ 软件包。

关于c++ - 无法使用 cygwin 运行 cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8514276/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com