Hi all,
I also built the latest version (2.2.5.14) of libphoto2 and gphoto2 in
cygwin 64-bit.
I could install all other dependencies from the cygwin repository.
My camera (Sony Nex-6) also gets recognized in MTP mode:

----------------------------------------------------------
$ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Sony NEX-6                     usb:002,013
----------------------------------------------------------

However if I try to list the files I get an error:

----------------------------------------------------------
$ env LANG=C gphoto2 --debug --debug-logfile=my_logfile.txt --list-files

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'):
Could not claim interface 0 (No such  process). Make sure no other program
(unknown libgphoto2 using program) or kernel module (such as sdc2xx, stv680,
spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***
----------------------------------------------------------

The debug log file can be found here: https://pastebin.com/6rFnS4nG
In the log file I can spot these lines:

----------------------------------------------------------
8.803883 gp_port_set_error [gphoto2-port.c:1190](0): Could not query kernel
driver of device.
8.803883 gp_libusb1_open             (2): claiming interface 0
8.804883 gp_libusb1_open [libusb1.c:414](0): 'libusb_claim_interface
(port->pl->dh, port->settings.usb.interface)' failed: Access denied
(insufficient permissions) (-3)
8.804883 gp_port_set_error [gphoto2-port.c:1190](0): Could not claim
interface 0 (No such process). Make sure no other program (unknown
libgphoto2 using program) or kernel module (such as sdc2xx, stv680, spca50x)
is using the device and you have read/write access to the device.
8.804883 gp_context_error            (0): An error occurred in the
io-library ('Could not claim the USB device'): Could not claim interface 0
(No
such process). Make sure no other program (unknown libgphoto2 using program)
or kernel module (such as sdc2xx, stv680, spca50x) is using the device and
you have read/write access to the device.
----------------------------------------------------------

However the --list-files command is working in mass storage mode.
Is it intended behaviour?

Regards,
Timo



--
View this message in context: 
http://gphoto-software.10949.n7.nabble.com/Successful-cygwin-compilation-tp9022p16761.html
Sent from the gphoto-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to