ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Invoking :make -j2" fail and undefined reference to 'libusb

asked 2018-10-29 20:30:29 -0600

rui gravatar image

updated 2018-10-30 01:41:39 -0600

Hi I am working on hector_slam with sick_tim, sensor tim571 on a raspberry pi 3 B+. i have this error when catkin_make. After checking i realise my /home/ubuntu/catkin_ws/devel/lib/sick_tim/ file is empty. There is no libary files. How do i solve this?

command:

cd ~/catkin_ws/src

git clone https://github.com/uos/sick_tim.git

cd ~/catkin_ws/

catkin_make

Error:

 [ 38%] Linking CXX executable /home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_tim310_1130000m01
[ 41%] Linking CXX executable /home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_mrs1000
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_device_descriptor'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_config_descriptor'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_set_debug'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_close'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_init'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_detach_kernel_driver'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_open'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_release_interface'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_device_list'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_exit'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_unref_device'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_kernel_driver_active'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_ref_device'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_bulk_transfer'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_free_device_list'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_claim_interface'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_free_config_descriptor'
collect2: error: ld returned 1 exit status
sick_tim/CMakeFiles/sick_tim310_1130000m01.dir/build.make:141: recipe for target '/home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_tim310_1130000m01' failed
make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_tim310_1130000m01] Error 1
CMakeFiles/Makefile2:1715: recipe for target 'sick_tim/CMakeFiles/sick_tim310_1130000m01.dir/all' failed
make[1]: *** [sick_tim/CMakeFiles/sick_tim310_1130000m01.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_device_descriptor'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_config_descriptor'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_set_debug'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_close'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_init'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_detach_kernel_driver'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_open'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_release_interface'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_get_device_list'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_exit'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_unref_device'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_kernel_driver_active'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_ref_device'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_bulk_transfer'
/home/ubuntu/catkin_ws/devel/lib/libsick_tim_3xx.so: undefined reference to `libusb_free_device_list'
/home ...
(more)
edit retag flag offensive close merge delete

Comments

have you installed libusb-1.0-0-dev? This is required for this package.

mgruhler gravatar image mgruhler  ( 2018-10-30 01:56:07 -0600 )edit

yes i installed i just make a very stupid mistake :"""D i didnt clean the build space

rui gravatar image rui  ( 2018-10-30 02:42:59 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-30 02:23:50 -0600

rui gravatar image

I have solved this problem. Anyone that face similar problems may want to check out my Solution ^_^

edit flag offensive delete link more

Comments

1

Instead of leaving your solution on an external website, can you please update your answer with the relevant information so that the answer will be self-contained

jayess gravatar image jayess  ( 2019-01-09 01:43:39 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-29 20:30:29 -0600

Seen: 2,651 times

Last updated: Oct 30 '18