[flext] compiling a flext external using dynamic libraries

dev scrime scrime.dev at gmail.com
Mon Sep 19 15:28:47 CEST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20110919/4ab34cc9/attachment.htm>


More information about the flext mailing list