opencv missing shared objects causes run time error

asked 2017-07-12 05:08:08 -0500

I've recently updated my installation of ros kinetic, and installed the grid_map plugin. Since then I've been having problems with an existing code base that was compiling and executing without any problems with the earlier ros kinetic installation.

The core compiles without any problems but when any of the nodes are executed I get the following error because a required shared object cannot be found:

/home/user/smart_rover_ws/devel/lib/smart_fusion_sensor/opal_fusion: error while loading shared libraries: cannot open shared object file: No such file or directory

looking in the /opt/ros/kinetic/lib path at the shared objects there all the opencv shared objects are version 3.2 so the file exists, there are no version 3.1 shared objects there at all. It seems to be compiling the nodes with one version of the shared objects and trying to execute them with another, but I can't find where the other shared objects are or what has changed suddenly to cause this problem.

If anyone has any ideas what has changed and how to fix it that would be great.

Thanks, Pete

edit retag flag offensive close merge delete


Did you happen to find a solution to this?

eric_cartman gravatar image eric_cartman  ( 2018-03-19 19:31:54 -0500 )edit

I made a link from 3.1 to 3.2 and it is workable.

(just a temperate way to solve this issue)

FrozenCh gravatar image FrozenCh  ( 2018-05-21 04:32:47 -0500 )edit

@FrozenCh Yes this is the solution that I ended up on too. It doesn't seem that elegant but it works!

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-05-21 05:34:04 -0500 )edit