Compilation of libgphoto2 under Cygwin
March 3, 2013 10 Comments
Gphoto2, and its library libgphoto2 is a Linux application enables controlling cameras and downloading images through USB PTP or serial cable. It is of importance if you would like to build a remote controlled camera or automate the time lapse photography with advanced setting, such as altering the shutter speed during sunset with a predefined value, or make exposure at precise moment for solar eclipse. Another feature will be turning on service mode to enable uncooked RAW image download for Nikon DSLRs. Cameras from almost all vendor are supported.
But this package is for Linux, we will need a emulator to work in Windows. Cygwin is one great linux emulator with a core cygwin1.dll to link basic windows API with the Linux API. Application compiled in Cygwin will be saved as a Windows executable (.exe), and can be run from Cygwin command line or directly in windows with DLLs in the same folder. To help newbie who don’t know much about Linux and want quick compilation, here’s a list of package you need to install in order to get a working libgphoto2.
I’m working with the following combination. Unlike Windows and Mac, Linux is a collection of open source package, compatibility is really a big issue. It’s like in the old days when they quote TIFF as Thousands of Incompatible File Format!
Cygwin Setup v2.774 & libgphoto2 v184.108.40.206
Except for “GNU make”, make sure you installed the source code for the other packages. Then it should be fine to follow the install procedure.