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

[35.2.1][35.3.1]["20.04"] Nvidia packages for OpenCV not compatible with focal #3

Open
bmegli opened this issue Aug 17, 2023 · 3 comments

Comments

@bmegli
Copy link
Collaborator

bmegli commented Aug 17, 2023

Nvidia forums:

Problem:

  • Nvidia installs own OpenCV version with Jetpack at 4.5.
  • this is only OpenCV and not OpenCV contrib package which comes from focal ppa at 4.2.
  • this brings conflicts in package manager/prevents LTS software dependent on OpenCV contrib package to install
@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

OpenCV focal packages are available on Jetson (by default)

To switch to them you need to remove Nvidia's package (different naming) and install focal versions.

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

Workaround

Warnings:

  • doing below will mark packages dependent on OpenCV for removal!
    • ideally this should be combined in single instruction to prevent side effect
  • Nvidia's OpenCV is newer version
    • side effects are possible if you use software that depends explicitly on newer version
# this is Nvidia's package
sudo apt remove libopencv
# those are Focal LTS packages
sudo apt install libopencv-core4.2
sudo apt install libopencv-dev=4.2.0+dfsg-5
sudo apt install libopencv-contrib-dev
# prevent system reinstalling Nvidia's version on upgrade (pin Focal variant)
sudo apt-mark hold libopencv-dev libopencv-core4.2

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

Some software affected by Nvidia's OpenCV variant:

  • ROS

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

1 participant