KillXp兄是对的,我查到这片文章
http://www.faqs.org/docs/Linux-HOWTO/USB-Digital-Camera-HOWTO.html中讲到
Other cameras support a protocol called PTP or USB Imaging Devices that has been developed by Kodak and other. gphoto2 does not support PTP yet, but jPhoto does. Here is a short list of cameras that use this protocol:
Killxp兄,在安装gtkam,发现出错:
configure: error: Library requirements (gtk+-2.0 libgphoto2 >= 2.1.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
于是先安装libgphoto2-2.1.6.
在得到以下的消息后后(configure时),make and make install倒是没有什么错误。
Configuration (libgphoto2_port)
Source code location: .
Compiler: gcc
SERIAL support: yes
Locking mechanism (for serial ports):
Use resmgr: no
Use baudboy: yes
Use ttylock: no
Use lockdev: no
USB support: yes, from /usr
Build API documentation: no (not requested)
Use ltdl.h: no
Build API documentation: no (not requested)
pkg-config: yes
EXIF support: yes (version 0.5.12 from /usr), (>= 0.5.4)
JPEG mangling support: yes
Use ltdl.h: no
/proc/meminfo: available
Please check whether the configuration I detected matches what you
would like to have. E.g. make sure that USB support is there if you
intend to use USB cameras with libgphoto2.
Please also check that PKG_CONFIG_PATH contains ${libdir}/pkgconfig
before compiling any libgphoto2 frontend.
再次安装gtkam,出错
checking for gtk+-2.0 libgphoto2 >= 2.1.4... Package libgphoto2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found
用locate知道:
/usr/local/lib/pkgconfig/libgphoto2.pc
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/libgphoto2.pc
再次configure gtkam,出错
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found
configure: error: Library requirements (gtk+-2.0 libgphoto2 >= 2.1.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.