catkin_make failed after git clone package <pluginlib>

asked 2019-10-31 10:51:24 -0600

ttttthomas gravatar image

updated 2019-11-02 09:07:52 -0600

gvdhoorn gravatar image

I was trying to roslaunch kobuki_node minimal-launch but it showed

[ERROR] [1572536069.831788597]: Failed to load nodelet [/mobile_base] of type [kobuki_node/KobukiNodelet] even after refreshing the cache: Could not find library corresponding to plugin kobuki_node/KobukiNodelet. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.
[ERROR] [1572536069.832042135]: The error before refreshing the cache was: Could not find library corresponding to plugin kobuki_node/KobukiNodelet. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.
[FATAL] [1572536069.833050144]: Failed to load nodelet '/mobile_base` of type `kobuki_node/KobukiNodelet` to manager `mobile_base_nodelet_manager'
[mobile_base-3] process has died [pid 10902, exit code 255, cmd /opt/ros/melodic/lib/nodelet/nodelet load kobuki_node/KobukiNodelet mobile_base_nodelet_manager mobile_base/odom:=odom mobile_base/joint_states:=joint_states __name:=mobile_base __log:=/home/thomas/.ros/log/ea2b8dc2-fbf3-11e9-ad2a-b827eb7c54f5/mobile_base-3.log].
log file: /home/thomas/.ros/log/ea2b8dc2-fbf3-11e9-ad2a-b827eb7c54f5/mobile_base-3*.log

`

I searched it online and maybe because I was missing a packaged called pluginlib. I git cloned it but when I try catkin_make, it shows me this error

[ 39%] Linking CXX shared library /home/thomas/catkin_ws/devel/lib/libamcl_sensors.so
[ 39%] Built target costmap_2d_generate_messages_eus
CMakeFiles/amcl_sensors.dir/src/amcl/sensors/amcl_laser.cpp.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
navigation/amcl/CMakeFiles/amcl_sensors.dir/build.make:148: recipe for target '/home/thomas/catkin_ws/devel/lib/libamcl_sensors.so' failed
make[2]: *** [/home/thomas/catkin_ws/devel/lib/libamcl_sensors.so] Error 1
CMakeFiles/Makefile2:15553: recipe for target 'navigation/amcl/CMakeFiles/amcl_sensors.dir/all' failed
make[1]: *** [navigation/amcl/CMakeFiles/amcl_sensors.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 39%] Built target costmap_2d_generate_messages_lisp
[ 39%] Linking CXX shared library /home/thomas/catkin_ws/devel/lib/libyocs_safety_controller_nodelet.so
[ 39%] Linking CXX shared library /home/thomas/catkin_ws/devel/lib/libkobuki_bumper2pc_nodelet.so
[ 39%] Built target yocs_safety_controller_nodelet
[ 39%] Built target kobuki_bumper2pc_nodelet
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

`

However, I tried rospack find pluginlib, it shows the path, which I assumed the package has installed. So I don't know this catkin_make error is caused by the pluginlib or something else? Before I git cloned pluginlib, my catkin_make was successful.

edit retag flag offensive close merge delete