[prev in list] [next in list] [prev in thread] [next in thread]
List: squeak-vm-dev
Subject: Re: [Vm-dev] Linking dynamic library into a Squeak plugin on Mac
From: Bert Freudenberg <bert () freudenbergs ! de>
Date: 2007-08-26 0:31:10
Message-ID: 9F2F4942-130A-4D7D-B852-C5E28A485357 () freudenbergs ! de
[Download RAW message or body]
On Aug 25, 2007, at 16:54 , Simon Holland wrote:
>
>
> Can anyone point to any examples or info on how to
> link a dynamic library into a Squeak plugin build on Mac Intel?
>
> None of the following work
>
> PLIBS=$PLIBS
> /Users/simon/squeak/platforms/unix/plugins/PortMidiLitePlugin/i386/
> libportmidi.dylib
> PLIBS=$PLIBS /usr/local/lib/libportmidi.dylib
> PLIBS=$PLIBS -dynamiclib -Wl,-single_module -Wl,-install_name,
> /usr/local/lib/libportmidi.dylib
> PLIBS=$PLIBS -dynamiclib -Wl,-single_module -Wl,-install_name,
> lportmidi
> PLIBS=$PLIBS lportmidi
>
> (They compile fine but fail to load)
>
> libportmidi.dylib is installed in /usr/lib
> and the environment variable
> DYLD_LIBRARY_PATH is set to /usr/local/lib
>
> Recasting the plugin as a command line C application,
> and dropping the relevant dylib into the XCode window
> works with no bother.
>
> Cheers
> Simon
Last time I needed to do this I started with the XCode project for
another plugin from SVN, modified it for my plugin, and just added
the libs to it. Don't remember the details though.
- Bert -
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic