Coder Social home page Coder Social logo

lnxbil / gphoto2.framework Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 5.0 879 KB

MacOS umbrella framework (build environment, not binary itself) including all necessary libraries for libgphoto2

Shell 67.21% Objective-C 29.70% Rich Text Format 3.09%

gphoto2.framework's Introduction

GPhoto2.framework

This is an Apple Umbrella Framework (Library) embedding all necessary open source libraries:

This framework itself is released under the Lesser GPL 3.0.

Downloading

Binary version of the framework are occasionally built and uploaded to

Build Requirements

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.

Example Usage

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:

image

If you want to build your own application, you need to use the -flat_namespace linker option in XCode:

image

gphoto2.framework's People

Contributors

lnxbil avatar lpmi-13 avatar orlv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gphoto2.framework's Issues

Do you have the iOS version?

Hello,

Recently I was working on the iOS version of Gphoto2 and had some problems.

After I downloaded the source code for gphoto2, I tried to process it.

Here are my steps:

  1. cd /libgphoto2-2.5.10
  2. ./configure
  3. make
    image

Then I get libgphoto2_port.dylib
image

Am I doing the right thing?
image

Looking forward to your reply.

Siu

Thank you

32bit version

Andreas,
I tried to compile i386 version of framework, but it doesn't work for me correctly. Compilation just went ok, but when I try to link framework to my project it get error: GPhoto2.framework/GPhoto2, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386).

I set ARCH="-arch i386"

Thanks for any advice.

Build Issues

Thanks for this!

Using Xcode 9.2 on High Sierra, I encountered the following issues:

To build pkgconfig, the build script needed to be modified so that --with-internal-glib is passed to configure.

To build libusb-compat, I had to install both autoconf and automake (using HomeBrew).

To build libgphoto2, I had to run the following before executing the build script:

export PATH=${PATH}:/usr/local/opt/gettext/bin

This was all required to build the versions specified in the config file, but I was then also able to build the framework using the latest versions:

pkgconfig 0.29.2
libusb 1.0.22
libgphoto2 2.5.17

Unable to run build.sh

Hi,
I'm trying to run build.sh file which is giving an error. Can you please help me out to resolve it?

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 Tue Jul 20 12:27:18 IST 2021 with 16 threads
    • Building libtool-2.4.6

An error occured
(Full Log at /Users/rohitJft/Downloads/GPhoto2.framework-master 2/download/logs/libtool-2.4.6_buildlog-20210720_122702.log):

==> /Users/rohitJft/Downloads/GPhoto2.framework-master <==
tail: 2/download/logs/libtool-2.4.6_buildlog-20210720_122702.log: No such file or directory

libtool-2.4.6_buildlog-20210720_122702.log is created but it's unable to detect it

Thank you

Is this just a bundle of OS libraries?

Hi Andreas!

I am confused.

Gphoto2 is available via Homebrew (dependencies et al). Do you provide any added value (ex: ready to use Objective C apis suitable for GUI apps) or you just wrap the same opensource libraries?

I was unable to find any code in the repository except the downloader (build.sh).

I was about to start writing such an API myself, but now I am thrilled with an opportunity to avoid effort duplication if you've already implemented it.

Creating framework for iOS

Hi Andreas,
there's a way to create the framework in order to use it for iOS applications?
Many thanks in advance.
Best regards

Angelo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.