[ERROR] [1618811104.099891119]: PluginlibFactory: The plugin for class ‘jsk_rviz_plugin/BoundingBoxArray’ failed to load. Error: Failed to load library /opt/ros/kinetic/lib//libjsk_rviz_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libopencv_core3.so.3.3: cannot open shared object file: No such file or directory)
解决办法:
Find the folder containing the shared library libopencv_core.so.3.2 using the following command line.
sudo find / -name “libopencv_core.so.3.2*”
Then I got the result: /usr/local/lib/libopencv_core.so.3.2.
-
Create a file called /etc/ld.so.conf.d/opencv.conf and write to it the path to the folder where the binary is stored.For example, I wrote /usr/local/lib/ to my opencv.conf file.
-
Run the command line as follows:
sudo ldconfig -v
Try to run the test binary again.
Reference
- https://github.com/cggos/DIPDemoQt/issues/1