Qengineering / Install-OpenCV-Jetson-Nano

OpenCV installation script with CUDA and cuDNN support
https://qengineering.eu/install-opencv-on-jetson-nano.html
BSD 3-Clause "New" or "Revised" License
137 stars 47 forks source link

Running script didn't actually install the software... #15

Open cwm9cwm9 opened 9 months ago

cwm9cwm9 commented 9 months ago

Hi.

Using Jetson Orin Nano and a copy of the script OpenCV-4-8-0.sh, once the script finished I had to:

cd opencv/build 'make install'

...and I don't really understand why... but I'm thinking maybe because the script does a sudo make install and thus the python bindings are installed for the root user rather than the current user? Perhaps it needs to be run once to install the libraries as root, and a second time as the user to set up the python bindings? Or changed so the bindings affect all users and not just the root user?

Thanks.

(Also had to sudo apt remove libopencv libopencv-python to get rid of the previous python bindings and opencv library.)

danfrist commented 7 months ago

I had a similar issue. I found out that the install script (4.8) stopped on line 122: sudo rm -r /usr/include/opencv4/opencv2. It said the directory didn't exist. I had to manually run the rest of the script:

sudo make install
sudo ldconfig
make clean
sudo apt-get update

Hope this helps someone.

Qengineering commented 7 months ago

I've adapted the script. Now it checks whether the /usr/include/opencv4/opencv2 directory exists before deleting.