ros-perception / ar_track_alvar

AR tag tracking library for ROS
www.ros.org/wiki/ar_track_alvar
141 stars 129 forks source link

error while loading shared libraries: libopencv_core3.so.3.3: cannot open shared object file #72

Closed rfzeg closed 5 years ago

rfzeg commented 5 years ago

I am running ROS Kinetic and Gazebo 7.8.1 on Ubuntu 16.04. on VMWare Player 14. First I installed ar_track_alvar: $ sudo apt-get install ros-kinetic-ar-track-alvar As running $ pkg-config --modversion opencv showed the following message: "Package opencv was not found in the pkg-config search path. I installed openCV with this command: $ sudo apt-get install libopencv-dev But when launching ar_track_alvar I get this error message: "/opt/ros/kinetic/lib/ar_track_alvar/individualMarkersNoKinect: error while loading shared libraries: libopencv_core3.so.3.3: cannot open shared object file: No such file or directory"

Inside my /opt/ros/kinetic/lib folder I see libopencv_core3.so, libopencv_core3.so.3.2, and libopencv_core3.so.3.2.0, but not libopencv_core3.so.3.3

Related issues that I found are:

I also tried: $ sudo apt install --reinstall ros-kinetic-opencv3 but the problem still persists.

Any help would be greatly appreciated.

rfzeg commented 5 years ago

Running:

$ sudo apt-get update
$ sudo apt-get dist-upgrade

Solved the issue.