[转]OPENCV3.3+CUDA9.0 环境搭建若干错误总结

因为CUDA9.0的若干改动,在Window环境下编译opencv源码时会产生若干错误,先将错误整合如下:

1. Cmake生成vs工程文件发生错误如下

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)

解决方案见:点击打开链接

2.Visual Studio工程文件错误如下

cmd.exe exit with code 1

Cmake修改CUDA_HOST_COMPILER参数

类似于/vs2015/VC/bin/x86_amd64/cl.exe

原因好像是无法自动检测出compiler

3.Visual Studio工程文件错误

C2610 等有关tuple的错误

Cmake去掉BUILD_PERF_TESTS和BUILD_TESTS

同时也可以减少编译源码时间。

参考链接:OPENCV3.3+CUDA9.0 环境搭建若干错误总结

其它链接:OpenCV3.3+CUDA9.0+Cmake3.9 环境搭建

猜你喜欢

转载自www.cnblogs.com/rainbow70626/p/9071764.html
今日推荐