find_libusb_device(). libusb device(s) are all unavalable.

别等时光非礼了梦想. 提交于 2020-02-28 07:16:02

问题:

        Wmware  ubuntu 18.04  Azure Kinect DK 摄像头驱动,error :[2020-02-26 22:39:38.407] [critical] [t=2928] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/usbcommand/usbcommand.c (360): find_libusb_device(). libusb device(s) are all unavalable. Is the device being used by another application?

解决方式:

    创建99-k4a.rules:

# Bus 002 Device 116: ID 045e:097a Microsoft Corp. 
# Bus 001 Device 015: ID 045e:097b Microsoft Corp. 
# Bus 002 Device 118: ID 045e:097c Microsoft Corp. 
# Bus 002 Device 117: ID 045e:097d Microsoft Corp. 
# Bus 001 Device 016: ID 045e:097e Microsoft Corp. 

BUS!="usb", ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="k4a_logic_rules_end"

ATTRS{idVendor}=="045e", ATTRS{idProduct}=="097a", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="097b", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="097c", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="097d", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="097e", MODE="0666", GROUP="plugdev"

LABEL="k4a_logic_rules_end"

结果:

$ ll /etc/udev/rules.d/99-k4a.rules
-rw-r--r-- 1 root root 771 Okt 28 12:08 /etc/udev/rules.d/99-k4a.rules

重启成功!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!