Oct 22, 2013

HowTo: Install gphoto2 in windows 7

Step1:
download these files
libusb-win32
http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/

gphoto2

https://code.google.com/p/scan-manager/downloads/detail?name=gphoto-2.4.14-win32-build2.zip&can=2&q=

Step2: 

extract both files and put them in drive c:\
-plug-in your camera and turn it on
-open the folder C:\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin
-double click on inf-wizard
-select your camera on the list
-press install button
-press done

Step3:
-open command prompt and type the following
cd c:\gphoto-2.4.14-win32-build2\win32

(Choose between Step4a or Step4b)

Step4a:
set CAMLIBS=./camlibs
set IOLIBS=./iolibs
gphoto2.exe

Step4b:

gphoto2.bat

Step5:

gphoto2.exe --auto-detect

*your camera should be detected by gphoto2*

21 comments:

  1. Please change your template. Can't read half the text.

    ReplyDelete
    Replies
    1. Thanks buddy! I didn't realize that when I updated my overall template. Thanks again!

      Delete
  2. A Windows 7 driver is really amazing product. And it works really awesome. We can install easily ....Keep it up!!!
    windows 7 problems
    Thank you
    Aalia lyon

    ReplyDelete
  3. C:\Users\Hugo>set CAMLIBS=./camlibs

    C:\Users\Hugo>set IOLIBS=./iolibs

    C:\Users\Hugo>gphoto2.exe
    'gphoto2.exe' is not recognized as an internal or external command,
    operable program or batch file.



    can you tell me what i'm doing wrong?

    ReplyDelete
    Replies
    1. I think you did not go to the folder where you extract your files. See step3. =)

      Delete
  4. Thanx works NICE! :)

    ReplyDelete
  5. Nice work! :-]

    I need to insert my usb list port in command like:
    gphoto2.exe --port usb:009,007 --capture-image-and-download -I -1 -F 1000

    but which format should i use to make it work in cmd? when a do a --auto-detect it return me:
    Model Port
    ----------------------------------------------------------
    USB PTP Class Camera usb:bus-0,\\.\libusb0-0001--0x04b0-0x033f

    ReplyDelete
  6. Hello renegadex,
    your work is very useful. Could you please share your experience on building libgphoto2 under Cygwin. I've tried to compile the library and examples as they are, and autodetect does not recognize the connected Canon, while your gphoto2.exe does.
    The reason I'm asking is that I need to build this functionality into a larger application.
    Much appreciated,
    Yuri

    ReplyDelete
  7. Hello yuri, i have no experience in cygwin. i really don't know what cygwin is sorry.

    ReplyDelete
  8. Excellent - thanks for this!

    But is it possible to add a STEP 6: How to write a "camerainfo.txt" instead of displaying it onscreen?
    The following command gives what the program can provide of camera information.
    gphoto2.exe --list-config

    Another command will give all this info onscreen, but the first lines I cannot scroll to.
    gphoto2.exe --list-all-config

    Debugging command will write this info to "my-logfile.txt", but the extent of this file did not [Eureka] my day ;-)
    gphoto2 --debug --debug-logfile=my-logfile.txt

    *****
    I (as many others, I suppose) have written to Canon asking how to get this from my 550D, without playing around with gphoto and e.g. Magic Lantern.
    I'll post the answer here if I get a decent one.

    ReplyDelete
    Replies
    1. Hey ole-johnny,
      Have you tried This,
      gphoto2.exe --list-all-config > mytext.txt

      Delete
  9. Renegadex did you find anything out about your question. I am stuck with the same question.

    ReplyDelete
  10. Really Nice Information,Thank You Very Much For Sharing.Wordpress Development Company

    ReplyDelete
  11. It works very well with: gphoto2.exe --list-all-config > mytext.txt
    You can find the shutter count information in your text file like this:
    main/status/shuttercounter
    Label: Shutter Counter
    Type: TEXT
    Current: your shutter count

    ReplyDelete
  12. Unhandled exception after startup
    Traceback (most recent call last):
    File "gui\shooting.pyc", line 464, in ontimeout
    File "backend\libgphoto2\wrapper.pyc", line 192, in ontimer
    File "Pyro4\core.pyc", line 146, in __call__
    File "Pyro4\core.pyc", line 273, in _pyroInvoke
    Exception: GPhoto Error - Unspecified error (-1)

    sorry sir i am a newby in all this stuff.i have 2 nikon L29 can you please tell me about the error

    ReplyDelete
    Replies
    1. Hi Mr. Anonymous,
      I haven't had the opportunity to try out a Nikon L29, but since that is a CoolPix, I think your camera is not compatible for gphoto2. I think Nikon cameras, including their DSLRs, uses PTP (Photo Transfer Protocol) making them less remote-controllable. Have you tried the gphoto2.exe --auto-detect

      Delete
  13. Hi,

    Thank you for script, is there any way to update gphoto2 or may you tell us how to compile new version in windows?

    New Canon Eos DSLR machines need new version :(

    ReplyDelete
    Replies
    1. Hi Moon Akondo,
      I haven't been able to have a proper research on new gphoto2 version (if any exist for windows). Honestly I myself is having problem with this. I bought the latest Canon 80D and it cannot be detected. If I found a solution, I'll let you know... If you found a solution, please let us know. Salamat ng Marami! (Many Thanks)

      Delete
  14. I keep getting "X is not recognized as an internal or external command. I get as far as 4b, then it gives me this.

    ReplyDelete