opencv missing shared objects causes run time error
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: libopencv_imgcodecs3.so.3.1: 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 libopencv_imgcodecs3.so.3.2 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
Did you happen to find a solution to this?
I made a link from 3.1 to 3.2 and it is workable.
(just a temperate way to solve this issue)
@FrozenCh Yes this is the solution that I ended up on too. It doesn't seem that elegant but it works!