[vm-dev] Linking dynamic library into a Squeak plugin on Mac Intel?

Simon Holland s.holland at open.ac.uk
Sun Aug 26 01:23:38 UTC 2007




Bert Freudenberg-2 wrote:
> 
>  
> 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 -
> 
> 
> 

Aha - at first I couldnt see how an xcode project could merge with a VM
configure/build
but this starts to fill in the picture
http://lists.squeakfoundation.org/pipermail/vm-dev/2005-November/000353.html
Worth a try - I'll have a play
Thanks, Bert!

Simon

-- 
View this message in context: http://www.nabble.com/Newbie-problem-porting-PortMidi-to-Squeak--%28Mac-Intel%29-tf4324379.html#a12331281
Sent from the Squeak vm-dev mailing list archive at Nabble.com.



More information about the Vm-dev mailing list