undefined reference to `udev_device_get_action'

/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
(.text+0x17): undefined reference to `udev_device_get_action'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
(.text+0x3d): undefined reference to `udev_device_get_devnode'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
(.text+0x4b): undefined reference to `udev_device_get_sysname'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
(.text+0x8b): undefined reference to `udev_device_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
(.text+0x108): undefined reference to `udev_device_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_event_thread_main':
(.text+0x285): undefined reference to `udev_monitor_receive_device'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x2c2): undefined reference to `udev_new'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x2df): undefined reference to `udev_monitor_new_from_netlink'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x304): undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x319): undefined reference to `udev_monitor_enable_receiving'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x330): undefined reference to `udev_monitor_get_fd'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x3ed): undefined reference to `udev_monitor_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
(.text+0x413): undefined reference to `udev_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_stop_event_monitor':
(.text+0x633): undefined reference to `udev_monitor_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_stop_event_monitor':
(.text+0x654): undefined reference to `udev_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x748): undefined reference to `udev_enumerate_new'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x768): undefined reference to `udev_enumerate_add_match_subsystem'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x770): undefined reference to `udev_enumerate_scan_devices'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x778): undefined reference to `udev_enumerate_get_list_entry'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x78c): undefined reference to `udev_list_entry_get_name'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x7a7): undefined reference to `udev_device_new_from_syspath'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x7b1): undefined reference to `udev_device_get_devnode'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x7bf): undefined reference to `udev_device_get_sysname'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x81f): undefined reference to `udev_device_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x827): undefined reference to `udev_list_entry_get_next'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
(.text+0x83d): undefined reference to `udev_enumerate_unref'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_hotplug_poll':
(.text+0x8b9): undefined reference to `udev_monitor_receive_device'

解决办法

-ludev
posted @ 2017-06-06 18:14  thomas_blog  阅读(558)  评论(0编辑  收藏  举报