Git Product home page Git Product logo

Comments (2)

JonnyJD avatar JonnyJD commented on June 27, 2024

This blocks #16

from python-discid.

JonnyJD avatar JonnyJD commented on June 27, 2024

On Linux find_library finds a system-wide library and returns the (base) filename.
./libdiscid.so.0 is needed to access the file in the current folder ("local") (on a probably "standard" setup).

On Darwin find_library will give a full path if it finds a system-wide library, but will also find a local library already.
(installing libdiscid per cmake with sudo make install works fine, by the way)
Local libraries don't need ./ prepended, and the current folder is already preferred!

On Windows find_library will find the library (given actual file names) in the Windows system32 folder/PATH and give the full path. It also finds a library in the current folder (and gives the filename), but system-wide is preferred.
Local libraries don't need .\ prepended, but both .\ and ./ prepended work.

On Cygwin find_library finds the library system-wide (with "discid", found when in /usr/local/bin/) and returns the (base) filename. find_library will also find a "local" library and will prefer it. Libdiscid's cmake make install will install into /usr/local/lib, which is not found by cygwin.
However, ./cygdiscid-0.dll and .\cycdiscid-0.dll still find a system-wide library, but only when no local library is found.

sunos5 needs ./ prepended. No further testing available.

BSD was not tested, but I guess they work the same as Linux and SunOS.

See also:
http://docs.python.org/2/library/ctypes.html#finding-shared-libraries

from python-discid.

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.