[ 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
jetson nano编译安装opencv3.4.5+opencv_contrib-3.4.5时,能通过编译,但是安装时报错,错误信息如下:
最新推荐文章于 2024-08-21 09:03:48 发布
在Jetson Nano上编译安装OpenCV3.4.5+opencv_contrib-3.4.5时遇到问题,虽然编译过程大部分成功,但在安装阶段报错。错误源于使用了内部头文件device_functions.h,该文件在未来的CUDA版本中将被移除,提示需改用cuda_runtime_api.h或cuda_runtime.h。编译过程中出现多个警告,最终导致生成文件失败,CMake返回错误。
摘要由CSDN通过智能技术生成