This is an Apple Umbrella Framework (Library) embedding all necessary open source libraries:
- libtool - Necessary part
ltdl
is licensed under LGPL 2.1 - libusb - licensed under LGPL 2.1
- libusb-compat - licensed under LGPL 2.1
- libjpeg-turbo - licensed by three compatible BSD-style open source licenses
- libgphoto2 - licensed under LGPL 2.1
This framework itself is released under the Lesser GPL 3.0.
Binary version of the framework are occasionally built and uploaded to
First, you need to clone the repository:
git clone --recursive https://github.com/lnxbil/GPhoto2.framework.git
Of course, you need XCode
and you also need some other programs too.
Best to install all of there using homebrew
:
automake
autoconf
wget
nasm
Now, you can directly start the build process by running build.sh
and
you may need to fix some errors on the may, but they're indicated.
$ ./build.sh
Build Process of the GPhoto2.framework
https://github.com/lnxbil/GPhoto2.framework
+ Checking permissions on /Library/Frameworks/GPhoto2.framework
+ Download and extracting files
+ Start building at Fri Dec 23 19:05:16 MSK 2016 with 16 threads
- Building libtool-2.4.6
- Building pkg-config-0.29.1
- Building libusb-1.0.21
- Building libusb-compat-0.1-0.1.6-rc2
- Building libjpeg-turbo-1.5.1
- Building libgphoto2-libgphoto2-2_5_11-release
+ Finished building at Fri Dec 23 19:08:58 MSK 2016
+ Cleaning up framework directory
+ Linking headers
+ Building Apple Framework infrastructure
It is also possible to build the SVN version of libgphoto2
, please set
GPHOTO="SVN"
in the config
file, which automatically fetches or updates the local svn working copy.
A working example is provided in the example
directory. You need to have the GPhoto2.framework
to be installed in order to build the example with XCode:
If you want to build your own application, you need to use the -flat_namespace
linker option in XCode: