[PD-dev] osx/intel: 'expected in: flat namespace' loading external

2008-05-08 Thread Damian Stewart
hello,

i'm trying to get pvoc~ to work on osx/intel. it compiles fine, with no 
errors, but then trying to load the external in Pd I get:

/Library/PD/pvoc~.d_fat: dlopen(/Library/PD/pvoc~.d_fat, 10): Symbol not 
found: _fftw_malloc
   Referenced from: /Library/PD/pvoc~.d_fat
   Expected in: flat namespace

i've tried hacking the makefile to pull out the -flat_namespace switch but 
that causes symbol undefined problems. i've also tried various combinations 
of setting CFLAGS and LDFLAGS to -flat_namespace and -twolevel_namespace, 
again with no luck.

... and trying similar steps with partconv~ i get the same problem.

any advice?

thanks
d
-- 
damian stewart | +44 7500 543 766 | [EMAIL PROTECTED]
frey | live art with machines | http://www.frey.co.nz

___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] osx/intel: 'expected in: flat namespace' loading external

2008-05-08 Thread Damian Stewart
Damian Stewart wrote:
 hello,
 
 i'm trying to get pvoc~ to work on osx/intel. it compiles fine, with no 
 errors, but then trying to load the external in Pd I get:
 
 /Library/PD/pvoc~.d_fat: dlopen(/Library/PD/pvoc~.d_fat, 10): Symbol not 
 found: _fftw_malloc
Referenced from: /Library/PD/pvoc~.d_fat
Expected in: flat namespace
 
 i've tried hacking the makefile to pull out the -flat_namespace switch but 
 that causes symbol undefined problems. i've also tried various combinations 
 of setting CFLAGS and LDFLAGS to -flat_namespace and -twolevel_namespace, 
 again with no luck.
 
 ... and trying similar steps with partconv~ i get the same problem.

fixed it myself.

the problem was i wasn't linking against fftw. i had fftw3 installed (via 
fink) and was just assuming dlopen would know how to find it, but nope.

altering the makefile to add -lfftw3 fixed it, using otool -L and 
install_name_tool to point it to the correct binary location.

thanks
d


___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev