ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

source install + opencv source install

asked 2016-06-28 07:22:04 -0500

Maya gravatar image

I'm installing ROS Indigo from source on Fedora 23 and I also have a source install of openCV 2.4.12.

After I compiled everything when I try to run rosrun rviz rviz

I have this error :

rosrun rviz rviz
/home/malcolm/ros_catkin_ws/source_indigo/install_isolated/lib/rviz/rviz: error while loading shared libraries: cannot open shared object file: No such file or directory

But it is installed :

$ pwd

$ ls -la | grep libopencv_videostab
lrwxrwxrwx.  1 root root      26 Jun 20 12:53 ->
lrwxrwxrwx.  1 root root      29 Jun 20 12:53 ->
-rwxr-xr-x.  1 root root  297416 Jun 28 12:06

I found this very similar question but I already reinstalled opencv and reinstalled ros and it didn't change anything. It worked before with the repo install.

Any idea on what is happening ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-28 07:32:03 -0500

Maya gravatar image

So I don't understand why exactly but this seems to be the answer :

$ sudo sh -c 'echo "/usr/local/lib" > /etc/'
$ sudo ldconfig

Found the solution from here

edit flag offensive delete link more


Yes, this is something to understand when compiling on Fedora. Unless you manually specify a lib prefix when calling configure/cmake, the result will go to /usr/local/lib or /usr/local/lib64. You need to add both of those the lib search path using ldconfig, i.e. sudo ldconfig path1 path2

BrannonKing gravatar image BrannonKing  ( 2016-06-30 11:29:12 -0500 )edit

Question Tools



Asked: 2016-06-28 07:22:04 -0500

Seen: 179 times

Last updated: Jun 28 '16