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

cannot install vision_opencv from binaries with libopencv-contrib-dev installed. #522

Open
JHeuverRiwo opened this issue Mar 7, 2024 · 1 comment

Comments

@JHeuverRiwo
Copy link

I need to have the aruco functionality provided in libopencv-contrib-dev. However the binary for image_geometry depends on libopencv-dev. These two packages conflict on my system and installing the one will uninstall the other.

Compiling image_geometry from source will result in the following error when I have libopencv-contrib-dev installed:

Starting >>> image_geometry                               
--- stderr: image_geometry                                      
CMake Error at CMakeLists.txt:18 (find_package):
  Could not find a package configuration file provided by "OpenCV" (requested
  version 4) with any of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

System:
jetson orin nx 16gb (zedbox)
ubuntu: 20.04 focal
jetpack: 5.1.1
ros2: humble (binaries taken from nvidia isaac ros buildfarm)

@ijnek
Copy link
Member

ijnek commented Nov 16, 2024

Apologise it took a while to get back.

In your case, since you're looking for Aruco functionality, you will need libopencv-contrib-dev, but you'll need to install both libopencv-dev (for the core functionality) and libopencv-contrib-dev (for the extra functionality), not just libopencv-contrib-dev.

I am not sure why you are having issues installing the two libraries side-by-side. In fact, libopencv-dev installs libopencv-contrib-dev as a dependency so installing libopencv-dev is sufficient.

I noticed you have an odd ubuntu / ros distro combo (most likely due to some complications with upgrading the OS on the jetson). Something there may be preventing you from installing to the two libraries side-by-side

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

2 participants