官网:Download | CMake
镜像:https://cmake.org/files/
github网站:OpenCV · GitHub
cmake时如果装了cuda会自动检测cuda版本,编opencv-cuda的库时记得把WITH_CUDA的勾打上
1. Downloading opencv_ffmpeg.dll,opencv_ffmpeg64.dll,ffmpeg_version.cmake失败
2. Downloading ippicv_windows_20151201.zip 失败
1.vgg_generated_48.i,vgg_generated_64.i...
2.boostdesc_bgm_bi.i,boostdesc_binboost_064.i...
3....
原因是这些东西在外网没下载下来,我开了软件,但还是失败
解决办法:
1.去cmake里找到具体路径,复制到浏览器去下载,但我还是失败
2.去csdn或其它地方找别人挂上去的文件替换路径下的,太麻烦了
3.cmake的下载路径是:https://raw.githubusercontent.com,访问不了
解决raw.githubusercontent.com无法访问的问题_哇咔君i的博客-CSDN博客_raw.githubusercontent.com
https://www.ipaddress.com这个网站中的查询框中输入:raw.githubusercontent.com,找到ipv4的地址,然后修改C盘里hosts文件,在最后加上185.199.108.133 raw.githubusercontent.com。我一开始加了一个ip但后面还是有下不下来的,就把四个都加上,然后又把软件开启就成功了
CMake Error at cmake/OpenCVCompilerOptions.cmake:21 (else):
CMake Error at cmake/OpenCVCompilerOptions.cmake:21 (else):_风行者199765的博客-CSDN博客
找到该文件的21行,把else()注释就好了
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev
linked by target "opencv_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory D:/Cproject/opencv/opencv/sources/modules/core
...
OpenCV3.3+CUDA9.0+Cmake3.9 环境搭建_Kmiracler的博客-CSDN博客
照着做就好
nvcc fatal : Unsupported gpu architecture 'compute_20'
最先是报了这句,后面是cmake error,然后是一堆lib找不到
vs2015+opencv3.3.0+cuda9.1编译,出现nvcc fatal : Unsupported gpu architecture 'compute_20' - 氕氘钏 - 博客园
cuda10不支持2.0计算架构,在cmake时把CUDA_ARCH_BIN中的2.0去掉,重新Configure和Generate生成opencv.sln。
如果是cuda8.0则不会有这个问题,或者你不用cuda直接cmake时把WITH_CUDA的勾去掉再重新生成
“std::tuple
Win10+cuda9.0+tbb+cmake编译opencv3.1.0_jstzwjr的博客-CSDN博客
Cmake OpenCV源码中出现的问题_会飞的深海鱼的博客-CSDN博客_cmake编译opencv出错
既然编不过,索性在cmake时就把BUILD_PERF_TESTS以及BUILD_TESTS两个不必要的选项去除。另外WITH_MATLAB和WITH_TBB用不上也去掉。编译opencv.sln时速度快一点。