Gtkam连接Kodak 7590DC为何只有root能用?
ML1.2+KDE3.4, BX440主板, USB的硬盘可以热插.使用没有问题,为何插入Kodak7590系统没有发现任何SCSI设备?安装了libgphoto和gtkam之后终于能够认出kodak 7590, 但是现在只有root能用,普通用户说是“Could not initialize camera.” 那一般就是木有驱动了
Magic会自动加载硬件驱动的
如果有驱动而没有加载,你可以手动加载一下 网上查过了,没有驱动,不知道如何手动加载。 那就自己写驱动吧 kodak的相机不是完全遵循mass storage 协议的,有其自己的驱动啊! Killxp兄,能不能给个连接? 找到一个,不知道是否支持,回去试试,相机不在手边.
http://gphoto.org/proj/libgphoto2/ 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:
就是Kodak相机要使用jPhoto这个程序。 用gtkam即可,记得红帽子9.0里是自带的.
自己下载源码编译吧.
http://sourceforge.net/project/showfiles.php?group_id=8874&release_id=337127 回家编译了一下gtkam,我的kodak DX6340工作很正常,不过LZ的7590不在支持列表里,只有楼主自己试了阿!
最好是UDEV直接支持PTP协议,就解决这个问题了. 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
Configuration (libgphoto2):
Source code location: .
Version: 2.1.6
Compiler: gcc
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.
现在我该如何作呢? 我把/usr/local/lib/pkgconfig/libgphoto2.pc copy 到/usr/lib/pkgconfig,正在make中。 做完了,运行gtkam,出错/usr/local/bin/gtkam: error while loading shared libraries: libgphoto2.so.2: cannot open shared object file: No such file or directory。 cp /usr/local/lib/libgphoto2.so.2 /usr/lib/
cp /usr/local/lib/libgphoto2.so.0 /usr/lib/
gtkam算是起来了。 有个问题,难道只有root才能用,普通用户说是“Could not initialize camera.”
页:
[1]