CMake Error at /Users/Documents/opencv/source/opencv-3.2.0/cmake/OpenCVUtils.cmake:1045 (file):
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
CMake Error at /Users/Documents/opencv/source/opencv-3.2.0/cmake/OpenCVUtils.cmake:1049 (message):
Failed to download . Status=
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
在用cmake编译opencv3.1以及配套的opencv_contrib模块的时候,遇到了以上错误,解决办法是在错误提示的.cmake文件中找到FILENAME这个词,然后用PACKAGE 替换之即可。记录下来对自己是一个提醒,也许也有人看到这个会少走些弯路。<
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
CMake Error at /Users/Documents/opencv/source/opencv-3.2.0/cmake/OpenCVUtils.cmake:1049 (message):
Failed to download . Status=
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
在用cmake编译opencv3.1以及配套的opencv_contrib模块的时候,遇到了以上错误,解决办法是在错误提示的.cmake文件中找到FILENAME这个词,然后用PACKAGE 替换之即可。记录下来对自己是一个提醒,也许也有人看到这个会少走些弯路。<

在Ubuntu中尝试编译OpenCV3.1.0并添加opencv_contrib模块时遇到问题。参考了github上的issue 1100和StackOverflow上的相关问题讨论,但编译仍然未能成功。该问题可能涉及到依赖库的安装、配置文件的设置等多方面因素。
最低0.47元/天 解锁文章
2662

被折叠的 条评论
为什么被折叠?



