【发布时间】:2018-09-10 13:35:18
【问题描述】:
我在我的 Windows 7 机器上安装了最新的 Cygwin:版本 2.893(64 位)。我确保我包含了 cmake,也就是说,在进行第一次安装后,我可以通过再次运行 Cygwin 网络版本安装程序来添加几个包。然后我尝试使用 cmake 并确保我从 bin 目录中调用它:
user008@L0147816 /bin
$ ./cmake
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
//share/cmake-3.6.2
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.
我不知道构建目录可能在哪里。我对 Cygwin 比较陌生。我希望有人找到了在 Cygwin 下安装 cmake 并正常工作的解决方案。
【问题讨论】: