I tried various ways to install opencv-cuda on my jetson-xavier (jetpack 4.6 coming with opencv 4.5.5 dirty).
this script from mdegans installed opencv4.4-cuda for python 2.7, but no support for python3.6.
i tried several ways to get python3.6 working with opencv-cuda
copying so-files
deinstall python2 & relink to python3
even when I
sudo apt remove python2.7-minimal
- linked /usr/bin/python and /usr/bin/pip to their python3 counterparts
- removed all installation commands for python2-packages from the script
- startet the modified script
I still got no working python3 bindings (this destroyed the working python2.7 bindings as well).
in my dispair,
- I hardcore removed all opencv pieces:
sudo su
rm /usr/local/lib/libopencv*.*
find /usr/loca/share -iname "*opencv*" -exec rm -irf {} \;
find /usr/loca/lib -iname "*opencv*" -exec rm -irf {} \;
find /usr/loca/include -iname "*opencv*" -exec rm -irf {} \;
find /usr/loca/bin -iname "*opencv*" -exec rm -irf {} \;
find /home/<user>/.local -iname "*opencv*" -exec rm -irf {} \;
- removed my previous created links from /usr/bin/python and /usr/bin/pip to their python3 counterparts
- started the original script again
but now I get segmentation faults:
modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/build.make:110: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/fundamental.cc.o' failed
modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/build.make:86: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/euclidean_resection.cc.o' failed
make[2]: *** [modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/euclidean_resection.cc.o] Error 4
CMakeFiles/Makefile2:6650: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all' failed
[ 27%] Built target IlmImf
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Finally, I am running out of (internet-search)-ideas how to get jetson-xavier jetpack 4.6 a running python3(.6) opencv-cuda system. can anyone please give me some further hints?