问题描述
我有一个巨大的问题在CMake和,但它没有帮助。
我不断收到不合理的错误,我和我的合作伙伴不能解决它。以下是文件:
我使用的是Visual Studio 2010我收到以下错误:
任何人都有任何想法如何解决这个问题?
'CMake错误:无法打开缓存文件进行保存。 C:/ Program Files / CMake 2.8 / bin / CMakeCache.txt
CMakeLists.txt中的CMake错误:4(FIND_PACKAGE):
找不到模块FindOpenCV.cmake或包$ b $的配置文件b OpenCV。
调整CMAKE_MODULE_PATH以查找FindOpenCV.cmake或将OpenCV_DIR设置为
目录,其中包含OpenCV的CMake配置文件。该文件将
具有以下名称之一:
OpenCVConfig.cmake
opencv-config.cmake
OpenCV_DIR-NOTFOUND
配置不完整,发生错误!
CMake错误:无法打开缓存文件进行保存。 C:/ Program Files / CMake 2.8 / bin / CMakeCache.txt
CMake错误:系统错误:权限被拒绝
CMake错误:系统错误:权限被拒绝'
您可以从控制面板>系统>高级系统设置>环境变量
执行此操作
查看它们是否存在正确的路径),否则只是创建它们...
I have a huge problem in CMake and I posted a question but it didn't help.
I keep getting unreasonable errors and me and my partners just can't solve it. Here are the files:
http://dl.dropbox.com/u/62218293/royshil-FoodcamClassifier-4ba20bb.zip
I'm using Visual Studio 2010 on Windows 7. I'm getting the following errors: does anyone have any idea how can I fix this problem ?
'CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt CMake Error at CMakeLists.txt:4 (FIND_PACKAGE): Could not find module FindOpenCV.cmake or a configuration file for package OpenCV. Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the directory containing a CMake configuration file for OpenCV. The file will have one of the following names: OpenCVConfig.cmake opencv-config.cmake OpenCV_DIR-NOTFOUND Configuring incomplete, errors occurred! CMake Error: Unable to open cache file for save. C:/Program Files/CMake 2.8/bin/CMakeCache.txt CMake Error: : System Error: Permission denied CMake Error: : System Error: Permission denied'解决方案Have you tried actually setting the environment variables (CMAKE_MODULE_PATH and/or OpenCV_DIR) the error message tells you to set?
You can do that from Control Panel > System > Advanced System Settings > Environment Variables
See if they exist (and point to the correct path), otherwise just create them...
这篇关于CMake仍然不能使用OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!