win10 +opencv3.4.1-Contrib+Cuda Cmake编译

opencv源码与opencv_contrib版本号一定要一样!!

(在这卡了好久 = =)
opencv3.4.1与opencv_contrib3.4.1下载链接:
https://github.com/opencv/opencv/tree/3.4
https://github.com/opencv/opencv_contrib/tree/3.4

win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第1张图片

win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第2张图片

CMake :
win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第3张图片

【注意】:
选上WITH_TBB、WITH_CUDA、WITH_EIGEN
(在此之前先装好TBB,CUDA,EIGEN)
TBB链接:https://github.com/01org/tbb/releases
EIGEN链接:http://eigen.tuxfamily.org/index.php?title=Main_Page,
安装参考:https://blog.csdn.net/u013354805/article/details/48247413
CMake
1、填写opencv_contrib/modules路径:
win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第4张图片
2、填写TBB路径:
win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第5张图片

参考链接:
https://blog.csdn.net/cosmispower/article/details/60601151
https://blog.csdn.net/gggttt222/article/details/79482033

按Configure:
win10 +opencv3.4.1-Contrib+Cuda Cmake编译_第6张图片
按Generate生成OPENCV.sln

你可能感兴趣的:(opencv)