用cygwin运行cmake失败
Fail to run cmake with cygwin
我在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++包。
您可能看到此消息的另一个原因是没有安装Make
相关文章:
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- 生成MRPT库时cmake配置失败
- 使用 cmake 的 LLVM 构建在 tsan_libdispatch_mac.cc 期间失败; "Error: conflicting types for ..."
- Vcpkg Pango CMake 构建失败缺少头文件
- CMake 错误:链接器命令失败,退出代码为 1 和 cpp.o 文件
- google-cloud-cpp CMake 生成失败
- CMake + Qt,moc 编译失败,无法实现 QMetaObject 方法(编译器找不到基本 ui 对象的标头?
- CMake链接库在Docker映像中失败
- 成功的生成文件失败,在 CLion 中出现"identical" CMake
- Bgslibrary Cmake 因 pip 而失败
- 包含 libpqxx 会导致使用 CMake 在 WSL 上生成失败
- C++在Linux机器上使用cmake Qt5 Webkit进行交叉编译,使用mingw针对Windows,失败了
- 为什么这个 CMake 脚本找到"alloca"但仍然失败?
- 基于CMAKE的CUDA应用程序的构建失败 - 没有传递给链接器的文件
- MAKE/CMAKE子目录链接到外部库的链接失败
- 与 CMAKE 的静态链接失败
- CMake 在尝试编译简单测试程序时失败
- 除非在 target_link_directories() 命令上调用 pthread,否则 CMake 构建将失败
- Googletest 在 bazel test 中永远不会失败(在它应该失败的地方),但与 cmake & clion 一起工作
- 编译iOS版OpenCV失败-Cmake失败