2021-08-08

重装ROS后打开usb摄像头报错:Failed to load nodelet [/image_view] of type [image_view/image] even after refreshing the cache: Failed to load library /opt/ros/melodic/lib//libimage_view.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_core.so.3.2: cannot open shared object file: No such file or directory)

服了又是和opencv有关!

查找libopencv_core.so.3.2位置:locate libopencv_core.so
在这里插入图片描述发现我没有libopencv_core.so.3.2
mxy@mxy-laptop:~$ locate libimage_view.so
/opt/ros/melodic/lib/libimage_view.so

看了这个回答:https://answers.ros.org/question/355571/missing-file-librqt_image_viewso/
感觉我又要重装opencv3.2了。。。。。。。。。。。。。。。。。。

ok 重装opencv3.2
从官网下载压缩包
https://opencv.org/releases/

pkg-config --modversion opencv


版权声明:本文为weixin_49227107原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。