在Ubuntu(VM)中无法使用gphoto2检测摄像头

时间:2018-09-22 14:11:36

标签: ubuntu virtual-machine libgphoto2

我正在尝试使用gphoto2控制EOS 1000D。 但是用gphoto2无法检测到它。 enter image description here

使用lsusb我可以找到相机。 enter image description here

有什么想法吗?

我的设置: VirtualBox版本5.2.18 r124319(Qt5.6.2),Ubuntu 18.04.1 LTS, gphoto2 2.5.15,libgphoto2 2.5.17,libgphoto2_port 0.12.0

1 个答案:

答案 0 :(得分:0)

apt-get install libusb-1.0-0-dev 

+编译,请手动安装libgphoto和gphoto2。

由于某些原因,libgphoto2_port 0.12.0没有支持USB(可以使用gphoto --version进行检查)。它需要libusb(see here)。 libusb-1.0-0已安装。看来您需要libusb-1.0-0-dev才能正常运行。