[flext] compiling a flext external using dynamic libraries

Thomas Grill gr at grrrr.org
Mon Sep 19 16:17:37 CEST 2011


Hi Joseph,
quite obviously, relevant symbols of the fftw library can't be loaded  
by the dynamic linker.
Try adding -lfftw3 to LDFLAGS.
gr~~~

Am 19.09.2011 um 15:28 schrieb dev scrime:

> Hello list,
>
> I'm actually trying to port a spectral sound spatialization  
> algorithm to Pd using flext (the external is called msmSpat~,  
> related to the name of the team who developed the algorithm, Sound  
> and Music Manipulation).
>
> This algorithm is bundled into a library (msm3D-1.0.dylib), which  
> relies on another library (fftw3.3.dylib).
>
> I managed to compile the external by adding a few options in the  
> config-mac-pd-gcc.txt file :
>
> # user defined compiler flags
> UFLAGS += -ffast-math -mmacosx-version-min=10.4 -I/usr/local/include/ 
> msm3D-1.0 -I/opt/local/include
>
> # user defined linker flags
> LDFLAGS += -mmacosx-version-min=10.4 -L/usr/local/lib -lmsm3D-1.0
>
> but it seems to me that it's not a very clean solution, and anyway  
> it doesn't work because the external refuses to load.
> The error message in the Pd console is :
>
> /Applications/Pd-extended-0.42.5.app/Contents/Resources/extra/ 
> msmSpat~.pd_darwin: dlopen(/Applications/Pd-extended-0.42.5.app/ 
> Contents/Resources/extra/msmSpat~.pd_darwin, 10): Symbol not found:  
> _fftw_destroy_plan
>   Referenced from: /Applications/Pd-extended-0.42.5.app/Contents/ 
> Resources/extra/msmSpat~.pd_darwin
>   Expected in: dynamic lookup
>
>  msmSpat~ 8 8
> ... couldn't create
>
> I'm not a very experienced developer so maybe I don't see something  
> evident ...
> But I would greatly appreciate any help on this.
> Is the trick of adding options in the config file a bad technique ?  
> Or does the problem come from somewhere else ?
>
> Thanks,
> Joseph
> _______________________________________________
> http://grrrr.org/ext/flext
>
> flext mailing list
> flext at grrrr.org
> http://grrrr.org/cgi-bin/mailman/listinfo/flext

--
Thomas Grill
http://grrrr.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20110919/19cd83e6/attachment.htm>


More information about the flext mailing list