Coder Social home page Coder Social logo

Comments (6)

jim-easterbrook avatar jim-easterbrook commented on July 23, 2024

Does the output of the command pkg-config --libs-only-l libgphoto2 include -lexif? If so, this confirms that the libexif is required by any program that uses libgphoto2, so it should have been installed automatically when you installed libgphoto2. Try installing libexif directly before installing python-gphoto2.

from python-gphoto2.

scoob-x13x avatar scoob-x13x commented on July 23, 2024

Yes this is the output
-lgphoto2 -lm -lgphoto2_port -lm -lexif
I installed libexif over Macport and its the same error

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 23, 2024

Unfortunately I don't know much about MacOS X.
libexif is installed but the python-gphoto2 linking isn't finding it, suggesting it isn't in a "standard" location (if MacOS X has such a thing). On my Linux boxes it's in /usr/lib64/ so the link has no trouble finding it.
Does the output of pkg-config --libs-only-L libgphoto2 show anything? (On my Linux boxes it's blank.)

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 23, 2024

Are you able to download the tar.gz (or zip) file from PyPI and edit setup.py? If so, can you try changing the line
libraries = list(map(lambda x: x.replace('-l', ''), gphoto2_libs))
to
libraries = ['gphoto2']
before running python setup.py build and sudo python setup.py install. If that works then it appears I needn't bother using pkg-config to get the list of libraries to link with.

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 23, 2024

Can you try release 0.11.1 - I've added a 'library_dirs' parameter to the compilation that might help.

from python-gphoto2.

scoob-x13x avatar scoob-x13x commented on July 23, 2024

Thank you
Now it works

from python-gphoto2.

Related Issues (20)

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.