newbie: plugin loaded?

Bert Freudenberg bert at impara.de
Sat Nov 12 11:52:00 UTC 2005


Am 12.11.2005 um 01:12 schrieb Brad Fuller:

> Bert Freudenberg wrote:
>
>>
>> Am 11.11.2005 um 22:46 schrieb Brad Fuller:
>>
>>>
>>> $ ioLoadModule(/usr/local/lib/squeak/3.7-7/SoundPAPlugin):
>>>  /usr/local/lib/squeak/3.7-7/SoundPAPlugin: undefined symbol:   
>>> Pa_GetDeviceInfo
>>>
>>> Pa_GetDeviceInfo  is in a library accessible to all (usr/local/ 
>>> lib/ libportaudio.so).
>>
>>
>> You need to link libportaudio.so into SoundPAPlugin.
>
> doh! I was wrong.
> And, I can't figure out how slip in a library link so that I don't  
> have to create a custom makefile.
> I see from the documentation that you can use m4 macros or a  
> makefile.inc file. But, I can't figure out how to do it.
> Any pointers to docs would be much appreciated. Do you have any  
> examples?

Sure:

platforms/unix/plugins % grep PLIBS */Makefile.inc
ObjectiveCPlugin/Makefile.inc:PLIBS=    -Wl,-framework -Wl,Foundation

... which is used in:

platforms/unix/plugins %  egrep -v '^(#|$)' ../config/Makefile.plg.in
[make_cfg]
[make_plg]
XINCLUDES       = [includes]
OBJS            = [targets]
TARGET          = [target]
PLIBS           = [plibs]
[make_inc]
$(TARGET) : $(OBJS) Makefile
         $(LINK) $(TARGET) $(OBJS) $(PLIBS)
         $(RANLIB) $(TARGET)
[make_targets]
.force :

- Bert -




More information about the Vm-dev mailing list