我正在从此[非常过时]教程中安装OpenCV 。
我完成了配置步骤,一切似乎都很好,但是当我尝试构建OpenCV.sln时,出现了很多这样的错误:
Checking Build System
'"C:\Program Files (x86)\CMake\bin\cmake.exe"' is not recognized as an internal or external command,
operable program or batch file.
... (etc)
========== Build: 0 succeeded, 63 failed, 0 up-to-date, 6 skipped ==========
它正在尝试查找cmake.exe文件,而该目录仅包含cmake-gui.exe(似乎cmake-gui.exe是Windows的Cmake 3.0.1附带的唯一内容)。
我该怎么办?安装旧版本的cmake?重命名可执行文件?还是有某种方法可以指向Visual Studio改用cmake-gui.exe?
PS我在Windows 7上,使用Visual Studio 2010 Pro
编辑
哇。在David的帮助下,我在正确的位置下载并安装了cmake.exe。现在,当我去构建ZERO_CHECK项目时,我得到了:
CustomBuild:
Checking Build System
Access is denied.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 5.
Build FAILED.
并且(这里是启动程序),cmake.exe文件已被删除。它消失了。有没有搞错?我以管理员身份运行Visual Studio,为什么会拒绝访问?
cmake.exe
不见了zip文件cmake-3.0.1-win32-x86.zip
从http://www.cmake.org/cmake/resources/software.html包含了以下文件bin
的子目录:
9,035,264 cmake-gui.exe
3,283,456 cmake.exe <------
156,160 cmcldeps.exe
3,218,944 cpack.exe
3,696,640 ctest.exe
1,177,088 libeay32.dll
524 Microsoft.VC90.CRT.manifest
224,768 msvcm90.dll
568,832 msvcp90.dll
655,872 msvcr90.dll
270,336 ssleay32.dll
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句