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

来源:互联网 发布:linux守护进程编写 编辑:程序博客网 时间:2024/05/22 09:51

因为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.vs工程文件错误如下:

cmd.exe exit with code 1

Cmake修改CUDA_HOST_COMPILER参数

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


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


3.vs工程文件错误:

C2610 等有关tuple的错误

Cmake去掉BUILD_PERF_TESTS和BUILD_TESTS

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


原创粉丝点击