Hello,我这边目前使用jetpack 6.0 (r36.3)+basic rootfs on our custom board . 运行上层应用程序时出现和opencv相关的报错,麻烦各位专家指导一下哪里有问题,万分感谢。
[09/04/2024-00:09:26] [V] [TRT] CUDA lazy loading is enabled.
[2024-09-04 00:09:30.414] [info] 初始化参数
[2024-09-04 00:09:30.415] [info] 反序列化engine
[2024-09-04 00:09:30.415] [info] read trtFile into engineFile
[2024-09-04 00:09:30.415] [info] fsize: 126217220
[2024-09-04 00:09:30.415] [info] new char[fsize]
[2024-09-04 00:09:30.547] [info] engineFile.read(engineString, fsize)
[2024-09-04 00:09:30.547] [info] createInferRuntime
[2024-09-04 00:09:30.618] [info] 生成trt的context
[2024-09-04 00:09:30.910] [info] mallocMemory
[2024-09-04 00:09:30.921] [info] l3_tol4 init complete
unknown file: Failure
C++ exception with description "OpenCV(4.8.0) /home/ubuntu/opencv_build/opencv/modules/core/include/opencv2/core/private.cuda.hpp:106: error: (-216:No CUDA support) The library is compiled without CUDA support in function 'throw_no_cuda'
" thrown in the test body.
[ FAILED ] L04Ttest.ProcessTest (5190 ms)
[----------] 1 test from L04Ttest (5190 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (5190 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] L04Ttest.ProcessTest
1 FAILED TEST
Hi,
(-216:No CUDA support) The library is compiled without CUDA support in function 'throw_no_cuda'
Based on the error, the test reports the installed OpenCV doesn’t build with CUDA support.
The OpenCV from JetPack doesn’t have CUDA support.
To enable it, you can build OpenCV from the source. Below is an auto-script for your reference:
Thanks.
Hello,AastaLLL ,想再请教下6.0可以装4.8.0版本的吗,上面这个是4.9.0的安装脚本,我可以把里面的verion修改下
Hi,
You will need the below patch to make it work:
Thanks.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.