jetson nano编译安装opencv3.4.5+opencv_contrib-3.4.5时,能通过编译,但是安装时报错,错误信息如下:

在Jetson Nano上编译安装OpenCV3.4.5+opencv_contrib-3.4.5时遇到问题,虽然编译过程大部分成功,但在安装阶段报错。错误源于使用了内部头文件device_functions.h,该文件在未来的CUDA版本中将被移除,提示需改用cuda_runtime_api.h或cuda_runtime.h。编译过程中出现多个警告,最终导致生成文件失败,CMake返回错误。
摘要由CSDN通过智能技术生成

[ 92%] Built target pch_Generate_opencv_cudaoptflow
[ 92%] Building NVCC (Device) object modules/cudaoptflow/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_pyrlk.cu.o
In file included from /home/agent/opencv-3.4.5/modules/core/include/opencv2/core/cuda/functional.hpp:50:0,
                 from /home/agent/opencv-3.4.5/modules/cudaoptflow/src/cuda/pyrlk.cu:47:
/usr/local/cuda-10.0/include/device_functions.h:54:2: warning: #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
In file included from /home/agent/opencv-3.4.5/modules/core/include/opencv2/cor

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值