-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opencv 4.6.0 Complire fail in Ubuntu 18 - with tim-vx CPU A311D #22210
Comments
Hi @ctcx, Can you share your environments HW/SW, CMake output and detailed compilation script for OpenCV + TimvX? |
|
root@orbbec:/opt/opencv/build# sudo lsb_release -a |
It seems CMake failed to configure tim-vx. Could you go to cd /opt/opencv/build/3rdparty/libtim-vx/TIM-VX-1d9c7ab941b3d8d9c4d28d80058402725731e3d6
cmake -B build -DEXTERNAL_VIV_SDK=/opt/aarch64_A311D_6.4.8 -DVIV_SDK_DRIVER_PREFIX=lib . By the way, we have official mirror support for OpenCV in gitcode.net for users in China. You don't have to pre download 3rdparty files, but run with an extra CMake option: cd opencv
cmake -DOPENCV_DOWNLOAD_MIRROR_ID=gitcode . |
|
It looks like CMake can configure TIM-VX, which should have tim-vx as install target. I tried on my side but cannot reproduce your issue. Can you try delete the old build and try to redo congfigure? If it still does not work, attach |
你好,我是按照 https://github.com/opencv/opencv/wiki/TIM-VX-Backend-For-Running-OpenCV-On-NPU 一步一步安装的; |
Hi @ctcx, this may be caused by the cmake -B opencv-build \
-D CMAKE_BUILD_TYPE=RELEASE \
-D BUILD_opencv_gapi=OFF \
-D CMAKE_INSTALL_PREFIX=opencv-install \
-D WITH_TIMVX=ON opencv
cmake --build opencv-build --target install -j 4 |
你好,我是加上参数: -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF |
You need to do this, which can also be found in the wiki: export LD_LIBRARY_PATH=/path/to/<VIVANTE_SDK_path>/lib:$LD_LIBRARY_PATH
export VIVANTE_SDK_DIR=/path/to/<VIVANTE_SDK_path> |
感谢,现在提示新的错误: opencv_zoo# python3 ./models/face_detection_yunet/demo.py |
不好意思,我发现是我没有进入到目录;我 cd ./models/face_detection_yunet/ 感谢所有对我的帮助。 |
By the way, if you want to use NPU, be sure to run the demo with options |
Detailed description
===== END =====
The text was updated successfully, but these errors were encountered: