其他分享
首页 > 其他分享> > AGX Xavier使用官方例程出错,deepstream_test1_app.c:26:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录

AGX Xavier使用官方例程出错,deepstream_test1_app.c:26:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录

作者:互联网

AGX Xavier使用官方例程出错,deepstream_test1_app.c:26:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录

配置好AGX Xavier 后参考博文:https://blog.csdn.net/mao_hui_fei/article/details/115758630,运行官方例程deepstream-test1出错。Al里插入图片描述
查看Makefile内容:sudo geidt Makefile,发现CUDA_VER?= 没有指出使用的CUDA版本,使用jetson_release -v命令查看相关版本信息,可看到CUDA 版本为10.2.89,然后补充完整CUDA_VER?=10.2(写10.2.89还是10.2,需要根据"/usr/local/cuda-??"目录中??是什么就写什么),保存后退出,sudo make即可编译通过。之后在当前目录下输入:./deepstream-test1-app /opt/nvidia/deepstream/deepstream-5.1/samples/streams/sample_720p.h264即可使用NVIDIA 自带的视频进行目标检测。
在这里插入图片描述
在这里插入图片描述

标签:deepstream,test1,10.2,例程,app,CUDA
来源: https://blog.csdn.net/yixichenai/article/details/121922498