GithubHelp home page GithubHelp logo

libdir's Introduction

------
libdir
------

This package provides support for the libdir format of libraries that is used
in Pd-extended.  It should work with any version of Pd 0.40 or newer.

The 'libdir' loader is a Pd loader which supports the libdir library
format.  The libdir library format aims to be a common library format
for Pd which works with objects written in any language, including
Pd. This library format was designed to be easy to create, install,
and use. It should work when installed into the global path
(i.e. pd/extra) or when copied locally into a project folder. It
should work with objects written in any supported language
(i.e. binaries, .pd, and the various loaders like pdlua and
tclpd). Also, starting with Pd 0.43 and Pd-extended 0.42, the Help
Browser dynamically builds itself based on the libraries that are
installed.

To install, copy the files for your platform into your "extra" folder and the
help patches to the "doc/5.reference" folder.  You will need to load the
libdir.dll/libdir.pd_linux/libdir.pd_darwin as a library before trying to load
any libdirs.  The libdirs have to be in the global classpath in order to be
found.

You can add a library two ways:
 - add this text to one of the fields in the "Startup" prefs:  libdir
 - load it on the command line with this:  -lib libdir

For more info on the structure of libdirs, see this webpage:

http://puredata.org/docs/developer/Libdir

libdir's People

Contributors

katjav avatar umlaeute avatar danomatika avatar

Stargazers

고아침 avatar

Watchers

Chris McCormick avatar  avatar  avatar James Cloos avatar Peter Brinkmann avatar Miller Puckette avatar

libdir's Issues

adding help-path?

the original code adds doc/5.reference/<LIBRARY>/ (unconditionally) to the help-path.

for now, this has been disabled in the 0.47-version, but I wonder if this breaks anything

load libraries *declare*d in -meta file

it would be great if the libdir mechanism could support multi-binary libraries better.

e.g. right now Gem duplicates quite some code from libdir (searching for a specially named file and adding the path to it), but still requires for the actual Gem.dll to be dlopen()ed.

it would be great if a libdir-loaded Gem would make sure that the Gem.dll is opened as well.

draft

i think this could work, if libdir could do some additional steps:

  • check for meta-file
  • add the path to meta-file to the canvas-local search path
  • parse the meta-file for declare lines
  • load any libs (and add paths) mentioned in declare.

in practice this is not trivial (my feeble attempts to implement this failed so far)

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.