6/11/2014

Chapter 3. Frequently Asked Questions (FAQ)

Home :: News :: Projects :: Documentation :: Developers :: Mailing lists :: Download :: Feedback :: About Manufacturers ::
Links
User's manual :: API :: PTP/IP :: FAQ :: Remote control

Chapter 3. Frequently Asked Questions (FAQ)
Prev

Next

Chapter 3. Frequently Asked Questions (FAQ)
3.1. Questions about camera support
3.1.1. Is my camera supported?
3.1.2. Is my webcam supported by libgphoto2 ? How can I use it ?
3.2. Generic libgphoto2 FAQs (frontend-independent)
3.2.1. What can I do about the error message "Could not find USB device"?
3.2.2. Why do I get the error message "Could not claim the USB device"?
3.2.3. Why do I get the error message "Could not lock the device"?
3.2.4. gphoto2 does not find my camera. What shall I do?
3.2.5. I just downloaded the libgphoto2-2.1.1 distribution off sourceforge and it builds
"libgphoto2.so.2.0.3". Has anyone else reported this?
3.2.6. I run Linux 2.4.x and I can't get USB to work at all. I keep getting this error message in the syslog:
3.3. Questions about specific cameras
3.3.1. I have a special problem with CameraXYZ. Where can I find information about it?
3.3.2. I have a Kodak EasyShare™ camera, and gphoto2 can't detect it. What shall I do ?
3.3.3. Why does my Canon PowerShot G1/G2/Pro 90 IS not work with gphoto2 when using the AC
adapter?
3.3.4. The PTP driver crashes on my Linux 2.4.18 system. What should I do?
3.3.5. I've got a serial camera, but gphoto2 doesn't work on SuSE 7.0 (or greater). You told me that my
camera is supported! Fix it!
3.4. Questions about administrativa
3.4.1. I wanna have CVS/SVN write access. How do I get one?
3.4.2. You took away my SVN/CVS write access! What did I do wrong?
3.5. Miscellanous Questions
3.5.1. What's the best way to rotate downloaded JPEG images without losses?
3.5.2. Dudes, Windows is the way to go. How do I compile gphoto2 for that environment?
3.6. Installation FAQs
3.6.1. I've just compiled and installed a new version of gphoto2, libgphoto2, gtkam, etc. and now I just
get a “relocation error” complaining about “undefined symbol: gp_library_version”
3.6.2. gphoto2 does not work, the driver reports some error messages. What shall I do?
3.6.3. I want to use GNU stow, but that fails.
3.6.4. I just sucessfully compiled and installed libgphoto2-2.2.1. But when configuring gphoto2-2.1.1 I
get Library requirements (libgphoto2 >= 2.1.1) not met

3.1. Questions about camera support
http://www.gphoto.org/doc/manual/FAQ.html

1/7

no (and will never be) We will not support cameras in USB mass storage mode.org/doc/manual/FAQ. I just downloaded the libgphoto2-2. Why do I get the error message "Could not lock the device"? 3. What can I do about the error message "Could not find USB device"? 3.4.gphoto.2. You should contact the developers at [ gphoto minus devel at lists dot sourceforge dot net ]to coordinate your efforts with others who may already working it. gphoto2 does not find my camera.1. What shall I do? 3.2. but it is listed as PictBridge(tm) or PTP compatible Then the camera will likely work without changes to the sourcecode. I keep getting this error message in the syslog: 3.teaser.6/11/2014 Chapter 3. You'll have to write your own driver or modify an existing one. Check http://www. and is designed to fetch images out of the internal storage of these cameras.0.html 2/7 . Is my camera supported? 3.1. See the USB Digital Camera HOWTO and the digicam web site.2.2.1. no. Your operating system already has drivers for these. it the camera has support for it and if the driver can do it. and others.x which haven't been ported to libgphoto2 because there was no one to test them. 3.2. gphoto2 --auto-detect will detect it as USB PTP Class camera and it will work (depending on permissions problems perhaps only as root user).2. Is my webcam supported by libgphoto2 ? How can I use it ? libgphoto2 is not meant in any way to use webcams.1. Frequently Asked Questions (FAQ) 3.3". not any more There have been few drivers in gphoto 0. There are other solutions for that.1.2.php for camera support in the latest libgphoto2 release.3. Has anyone else reported this? 3.1. But not at all libgphoto2 has been designed to be tool to operate webcams nor do we support these devices. What can I do about the error message "Could not find USB device"? The exact error message looks like Could not find USB device (vendor 0x0000. Try searching Google.2.6.1.2.x. Is my webcam supported by libgphoto2 ? How can I use it ? 3. product 0x0000).2.1.1. Why do I get the error message "Could not claim the USB device"? 3. Generic libgphoto2 FAQs (frontend-independent) 3. BSD.so.x and I can't get USB to work at all. please coordinate your efforts with the rest of the world at [ gphoto minus devel at lists dot sourceforge dot net ].2. you can either port the driver yourself or ask whether a developers wants to do it. Just use the cameras like you would use a USB disk drive or USB flash disk.5. But now that you have entered the stage. Have fun! not yet Not so good.1 distribution off sourceforge and it builds "libgphoto2.2. Make sure this device is connected to the computer http://www. 3. Check http://gphoto. It also eventually can be used to remote control the camera to take pictures.4.html for general information about digicam support under Linux. In either case.org/proj/libgphoto2/support. It only works with still image cameras. Is my camera supported? Possible answers: yes Very nice.fr/~hfiguiere/linux/digicam. I run Linux 2.

To detect if this is the case. *** Error (-60: 'Could not lock the device') *** This means another process on the system is using the camera already.6/11/2014 Chapter 3.g.3. How to set this up. Why do I get the error message "Could not lock the device"? The exact message looks like *** Error *** An error occurred in the io-library ('Could not lock the device'): Camera is already in use. 3. This can also happen with cameras that works as USB Mass Storage devices. Then try to run gphoto2 --list-portsand look whether the ports you want to use are listed there: For serial devices. See Section 4. Some of these Olympus supports to be switched to "PC Control" mode in order to be remote controlled with an external program like one using libgphoto2. Make sure no other program or kernel module (e.3. “Setting up permissions for USB ports”. If this reports GPhoto device. If you don't see it. In this case. dc2xx or stv680) is using the device and you have read/write access to the device. Verify with gvfs-mount -lif it is really unmounted.2. You have to make sure that no such kernel module is loaded and that you have set up the permissions on your USB device correctly. your camera is likely blocked by it. try this user supplied tool https://github. you need the "usb:" port in the list. One major system in use is the GNOME virtual filesystem gvfs. It is a process called PTPCamerawhich can be found using the UNIX pscommand and killed with the UNIX killcommand. and you still get "Could not claim the device" errors. it is not a recommended solution.org/doc/manual/FAQ. 3. Why do I get the error message "Could not claim the USB device"? The exact message looks like *** Error ('Could not claim the USB device') *** Could not claim interface 0 (Operation not permitted). to remove the usb-storage kernel module and attempt to use libgphoto2 with it. such that you have (non-root) write access to the camera device. if you run Linux. check whether you compiled gphoto2 with libusb support and that you have mounted the usbfs(or usbdevfs) on /proc/bus/usb(usbfs applies to Linux systems only). 3.4.com/mejedi/mac-gphoto-enabler which does slightly more intrusive changes to MacOS to avoid it grabbing the camera. What shall I do? First check that your camera is supported.gphoto. you can run gvfs-mount -l.detected as an Olympus C-2040Z. gphoto2 does not find my camera.2.2. But.2. If this does not help. “Setting up permissions for USB ports”. http://www.3.html 3/7 . Frequently Asked Questions (FAQ) You have to set up the permissions on your USB device correctly. unless you want to control the camera (not all the model supports it). is described at Section 4. you can try. In that case you can try using gvfs-mount -s gphoto2to umount the virtual filesystem and replugin the camera. the port with the appropriate device must be listed For USB devices. On MacOS X the built-in PTP camera tool might block libgphoto2 usage. Keeps using USB Mass Storage. A notable example is if you have an Olympus Camera that gets auto. Cameras supported by libgphoto2 can be accessed by file managers like Nautilus or Dolphin via their virtual file filesystem and their technology opens the cameras as soon as they are plugged in.

Donate a camera (G3 anyone? :-) to one of the active Canon driver developers. Where can I find information about it? You can look into the READMEfile of your driver driver. The PTP driver crashes on my Linux 2. that is bad luck up to and including release 2. Sometimes it works and sometimes it doesn't.3. updated his G2's firmware). I have a Kodak EasyShare™ camera.3. It is located in camlibs/driver/in your source tree. If you know a solution.3.xy. in descending order of preference: Fix it and send us a patch. 3.3.1.gphoto.org/fredrik/gp/canon-g1-ac-problem/.3.6. Your options are as follows.3. please stop bugging us with that “problem”.18 USB driver which may result in random crashes of the libgphoto2 PTP driver.0.1 distribution off sourceforge and it builds "libgphoto2. 3. I have a special problem with CameraXYZ.1. I just downloaded the libgphoto2-2. Frequently Asked Questions (FAQ) Then try to run gphoto2 --auto-detectand look whether the camera is detected. Where can I find information about it? 3.3.3. The release number ("2.org/doc/manual/FAQ.0 worked.we will install the READMEfiles in a future release.1.so.x and I can't get USB to work at all.5. 3.0 does not).4.2. Run the camera on battery instead of the AC adapter. I have a special problem with CameraXYZ.18 system. Good luck.2. Why does my Canon PowerShot G1/G2/Pro 90 IS not work with gphoto2 when using the AC adapter? This is a longstanding bug with the G1 and Pro 90 IS. but gphoto2 doesn't work on SuSE 7. And no other libgphoto2 frontend either. See Section 4.2. http://www. What should I do? There is a bug in the Linux 2.3. “Setting up permissions for USB ports” for details.0 (or greater).1") and the library version ("2.1.4. I've got a serial camera. What shall I do ? 3. What should I do? 3. and gphoto2 can't detect it. With the G2. I run Linux 2. 3. and gphoto2 can't detect it. If your gphoto2 cannot access the USB device as non-root users. As we won't “fix” a problem which is not there. Questions about specific cameras 3.3.6/11/2014 Chapter 3.1.2.5.3".1 . Why does my Canon PowerShot G1/G2/Pro 90 IS not work with gphoto2 when using the AC adapter? 3. You told me that my camera is supported! Fix it! 3.1.0. We haven't fixed this bug yet since none of the active gphoto2 developers owned one of these cameras until recently (i.4. Please upgrade to a more recent kernel.18 system. If you do not have a source tree.e. many times. please let us know. I have a Kodak EasyShare™ camera.3. Has anyone else reported this? Yes.4. What shall I do ? Just press the button on the dock so that the USB device gets detected by the system and that gphoto2 software can detect it. 3. AND DO NOT RUN gphoto2 AS ROOT. you have to set up hotplugging correctly.4. There is some more info regarding this at http://krixor. The PTP driver crashes on my Linux 2.3. though.html 4/7 . I keep getting this error message in the syslog: kernel: usb_control/bulk_msg: timeout kernel: usbdevfs: USBDEVFS_BULK failed dev 3 ep 0x81 len 64 ret -110 How can I make USB work? No idea. 3.4.0.3.0. it was introduced with a new camera firmware (G2 1.0. and a relatively new bug with the G2. 1.2.3") are by their respective definitions completely unrelated.

We are using Subversion (SVN) since 2006-03-14.4. please contact one of the project admins.html 5/7 . a camera driver). Joe. buy Windows and Visual C and some manuals on how to access USB or serial ports on Windows. and you will need to turn it off.2. Dudes. If this is not the case. We are using Subversion (SVN) since 2006-03-14.5. but gphoto2 doesn't work on SuSE 7.2.1. and if we haven't heard from you lately.4. 3.5.sentex.4. ] 3. Windows is the way to go.msgfile for the following entry near the end: ] *This package use the ttyS0 device by default. You have two choices (at least): Buy a fast computer. How do I compile gphoto2 for that environment? We don't have the money to buy Windows and something like Visual C.net/~mwandel/jhead. You told me that my camera is supported! Fix it! Cool down.4. Note that CVS has been discontinued.4.5. I wanna have CVS/SVN write access. Windows is the way to go. What's the best way to rotate downloaded JPEG images without losses? alice@host:~$ # If you do not care about preserving EXIF information alice@host:~$ jpegtran -copy all -rotate 90 alice@host:~$ alice@host:~$ # If you want to preserve EXIF information alice@host:~$ jhead -cmd 'jpegtran -rotate 90 -outfile &o &i' my-pic.5. check your /var/log/boot.2.gphoto.5.1. Send all that including a blank cheque to us (ask for the address on [ gphoto minus devel at lists dot sourceforge dot net ]). Therefore. If there is already a person maintaining this specific part of gphoto2 (i. Questions about administrativa 3.0 (or greater). we can't provide you a gphoto2 for Windows. and listen to the wise words of Linda MacPhee-Cobb: [ If you are not getting a response from a camera plugged into the serial port. The installation of this package only makes sense if you use a braille display. Dudes.1. I've got a serial camera.jpg You can get the jpegtran from the libjpeg package and jhead from http://www. we assume that you finished your work on gphoto2 and that you don't need write access any longer. I wanna have CVS/SVN write access.1. Miscellanous Questions 3.5.6/11/2014 Chapter 3. http://www. Try to figure out how to get gphoto2 working on Windows and send us the patches. 3.3.e.org/doc/manual/FAQ. we prefer you submit patches to the maintainer who will then check them in or request modifications. 3. How do I get one? We provide SVN write access to persons that show continued interest in a specific part of gphoto2. What's the best way to rotate downloaded JPEG images without losses? 3. or better. Frequently Asked Questions (FAQ) 3. How do I compile gphoto2 for that environment? 3. Note that CVS has been discontinued. You took away my SVN/CVS write access! What did I do wrong? If your name is not listed in libgphoto2/MAINTAINERS. uninstall it. How do I get one? 3.2. You took away my SVN/CVS write access! What did I do wrong? 3. [ This is from blinx.

or configure your dynamic loader ld. gtkam. and now I just get a “relocation error” complaining about “undefined symbol: gp_library_version” You are running your libgphoto2 frontend (gphoto2.g. go through the following list. you may make the changed library search path permanent. libgphoto2. Either set LD_LIBRARY_PATHby default in your shell init scripts. But when configuring gphoto2-2.6. I've just compiled and installed a new version of gphoto2. http://www. I don't know what stow is. but have a look at https://sourceforge. digikam.html 6/7 . 3. gtkam. 3.1.6. Make sure that ldd `which gphoto2` now shows the correct library and that gphoto2 --version displays the library version without any errors.1.so. I want to use GNU stow. Frequently Asked Questions (FAQ) 3. do not run ldconfig without any parameters. etc. then you may do (as root): host:~# rm -rf /usr/local/lib/gphoto2* /usr/local/lib/libgphoto2* host:~# rm -rf /usr/lib/gphoto2* /usr/lib/libgphoto2* Above applies especially if you use both pre-packaged and CVS/SVN versions.2.6. To solve that problem. If you want to. I just sucessfully compiled and installed libgphoto2-2. Unless you know what you're doing you should remove all gphoto2 installation. This will make your system unusable! Also make sure you don't open a security hole by loading libraries from a location where anybody can write libraries to. gtkam.1. /usr/local/lib).3. and now I just get a “relocation error” complaining about “undefined symbol: gp_library_version” 3.so permanently. I want to use GNU stow. After that. What shall I do? First of all make sure.2.6.2 or later. Important Messing up your ld.so configuration may make your system unusable! On BSD systems. I've just compiled and installed a new version of gphoto2. even though you compiled it with a newer libgphoto2! Probably you have an old libgphoto2 in /usr/liband the newer one in /usr/local/lib. What shall I do? 3. 5. 3.1. gphoto2 does not work.6. ld.6. install the newest version of libgphoto2 and gphoto2 and test whether it works now.net/tracker/index.2. but that fails.1) not met 3.org/doc/manual/FAQ. gphoto2 does not work.confand running ldconfig.) with an old version of libgphoto2.1.4. libgphoto2.php? func=detail&aid=553647&group_id=8874&atid=108874" Sourceforge bug #553647 . 1. Make sure that you have compiled and installed libgphoto2 2. the driver reports some error messages. Find out which library files you are using for the gphoto2 command with the ldd `which gphoto2` command. the driver reports some error messages. Installation FAQs 3. On GNU/Linux systems. 2.1 I get Library requirements (libgphoto2 >= 2.6. 4.6/11/2014 Chapter 3. that you have only one instance of gphoto2 and libgphoto2 installed on your system.1. etc. etc. but that fails.so is configured by adapting /etc/ld.3. Set the LD_LIBRARY_PATHto the libdirectory into which you installed your new libgphoto2 (e.6.gphoto. 3.

run alice@host:~$ PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig alice@host:~$ export PKG_CONFIG_PATH and now run the gphoto2 . I just sucessfully compiled and installed libgphoto2-2.gphoto.4. your PKG_CONFIG_PATH variable doesn't contain the pkgconfig/directory in the lib/ directory of your libgphoto2 installation.1./configureagain.6/11/2014 Chapter 3. Setting up your system for use with libgphoto2and gphoto2 7/7 .1 I get Library requirements (libgphoto2 >= 2. Prev 2.5.org/doc/manual/FAQ.1. But when configuring gphoto2-2. Frequently Asked Questions (FAQ) 3. then please install it.1) not met If you don't have pkg-config installed yet.2. For a default installation. Using kioslave (kamera) http://www.1. Otherwise.html Home Next Chapter 4.6.