cuda10 does not provide dynlink_nvcuvid.h any more.
解决方法:
查看出错在modules/cudacodec/src/precomp.hpp
#if CUDA_VERSION >= 9000
#include <dynlink_nvcuvid.h>
#else
#include <nvcuvid.h>
#endif
所以可以用头文件nvcuvid.h
下载 nvidia-sdk 将其中的 nvcuvid.h copy 到 /usr/local/cuda/include/,同时将上面的代码改为:
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#include <dynlink_nvcuvid.h>
#else
#include <nvcuvid.h>
#endif
或者copy到modules/cudacodec/src/下, 同时将上面代码改为:
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#include <dynlink_nvcuvid.h>
#else
#include “nvcuvid.h”
#endif
相关文章
- 03-13fatal error: openssl/sha.h: No such file or directory 解决方案
- 03-13fatal error: dynlink_nvcuvid.h: No such file or directory
- 03-13【Git远程协作】Pull Request成功,并解决报错error: cannot spawn sh: No such file or directory
- 03-13Git报错 error: cannot spawn more: No such file or directory
- 03-13fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Dev
- 03-13DLL项目报错:fatal error lnk1104: cannot open file "...\xxx.dll"
- 03-13链接程序的时候遇到问题:fatal error LNK1104: cannot open file 'rctrl-d.lib'
- 03-13VS2008链接错误fatal error LNK1104: cannot open file '*.obj'
- 03-13LINK : fatal error LNK1104: cannot open file "mfc42d.lib"
- 03-13VS2008 LINK : fatal error LNK1104: cannot open file 'atls.lib'错误解决方案