Ошибка при вызове "make -j2", неопределенная ссылка во время catkin_make - PullRequest
0 голосов
/ 30 октября 2018

Привет, я работаю над hector_slam с sick_tim, датчик tim571 на Raspberry Pi 3 B +. У меня есть эта ошибка, когда catkin_make. После проверки я понимаю, что мой / home / ubuntu / catkin_ws / devel / lib / sick_tim / файл пуст. Там нет файлов библиотеки. Как мне решить это?

Команды, которые я запускаю:

cd ~ / catkin_ws / src

мерзавец клон https://github.com/uos/sick_tim.git

cd ~ / catkin_ws /

catkin_make

Это ошибка, которую я получаю. Я не могу решить эту ошибку, кто-то, пожалуйста, помогите мне.

[ 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/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_mrs1000.dir/build.make:219: recipe for target '/home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_mrs1000' failed
make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/sick_tim/sick_mrs1000] Error 1
CMakeFiles/Makefile2:1518: recipe for target 'sick_tim/CMakeFiles/sick_mrs1000.dir/all' failed
make[1]: *** [sick_tim/CMakeFiles/sick_mrs1000.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2" failed

1 Ответ

0 голосов
/ 30 октября 2018

Я решил эту проблему. Любой, кто сталкивается с подобными проблемами, может захотеть проверить мое Решение ^ _ ^

...