Skip to content
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

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

Open
cwm9cwm9 opened this issue Oct 2, 2023 · 2 comments
Open

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

cwm9cwm9 opened this issue Oct 2, 2023 · 2 comments

Comments

@cwm9cwm9
Copy link

cwm9cwm9 commented Oct 2, 2023

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
Copy link

danfrist commented Dec 8, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants