Sorry, FFTW support isn't working at all in the current version of Pd (they changed the API and I haven't had the patience to try to deal with it yet.)
Miller
On Sat, Aug 18, 2007 at 10:27:48AM -0700, Sergei Steshenko wrote:
Hello All,
I'm trying to build pd-0.40-2 in the framework of my AppsFromScratch.
For starters, 'gcc' complains about 'logn' on line #44 and 'inverse' on on line #47 of 'pd-0.40-2/src/d_fft_fftw.c' file:
42 static fftw_plan fftw_getplan(int n, int dir) 43 { 44 logn = ilog2(n); 45 if (logn < MINFFT || logn > MAXFFT) 46 return (0); 47 int indx = 2*(logn-MINFFT) + inverse); 48 if (!fftw_pvec[indx] 49 fftw_pvec[indx] = fftw_create_plan(N, dir, FFTW_MEASURE); 50 return (fftw_pvec[indx]); 51 }
- the two variables are undeclared, so 'gcc' is correct.
The situation is the same in build/pd-0.40-3/src/d_fft_fftw.c .
What should I do in order to build FFTW-enabled 'pd' ?
In case anybody is interested, here's how I've run 'configure':
" cd /maxtor5/sergei/AppsFromScratchWD/build/pd-0.40-2/src; PATH=/maxtor5/sergei/AppsFromScratchWD/install/autoconf-2.61/bin:/maxtor5/sergei/AppsFromScratchWD/install/autogen-5.8.7/bin:/maxtor5/sergei/AppsFromScratchWD/install/bash-3.0/bin:/maxtor5/sergei/AppsFromScratchWD/install/dejagnu-1.4.4/bin:/maxtor5/sergei/AppsFromScratchWD/install/expect-5.44.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/bin:/maxtor5/sergei/AppsFromScratchWD/install/gperf-3.0.2/bin:/maxtor5/sergei/AppsFromScratchWD/install/guile-1.8.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/jack-audio-connection-kit-0.103.0/bin:/maxtor5/sergei/AppsFromScratchWD/install/libavc1394-0.5.3/bin:/maxtor5/sergei/AppsFromScratchWD/install/libiec61883-1.1.0/bin:/maxtor5/sergei/AppsFromScratchWD/install/libraw1394-1.2.1/bin:/maxtor5/sergei/AppsFromScratchWD/install/libsndfile-1.0.17/bin:/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/bin:/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/bin:/maxtor5/sergei/AppsFromScratchWD/install/m4-1.4.10/bin:/max tor5/sergei/AppsFromScratchWD/install/make-3.80/bin:/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/bin:/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/bin:/maxtor5/sergei/AppsFromScratchWD/install/texinfo-4.9/bin:/maxtor5/sergei/AppsFromScratchWD/install/tk-8.4.15/bin:/maxtor5/sergei/AppsFromScratchWD/install/pkg-config-0.21/bin:/opt/kde3/bin:/home/sergei/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/sergei/bin; export PATH; LD_LIBRARY_PATH=/maxtor5/sergei/AppsFromScratchWD/install/autogen-5.8.7/lib:/maxtor5/sergei/AppsFromScratchWD/install/fftw-2.1.5/lib:/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/lib:/maxtor5/sergei/AppsFromScratchWD/install/gmp-4.2.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/guile-1.8.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/jack-audio-connection-kit-0.103.0/lib:/maxtor5/sergei/AppsFromScratchWD/install/libavc1394-0.5.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/libfreebob-1.0.3/lib:/maxtor5/sergei/AppsFromScratchWD/install/libiec61883-1.1.0/lib:/maxtor5/sergei/AppsFromScratchWD/install/libraw1394-1.2.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/libsndfile-1.0.17/lib:/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/lib:/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib:/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/lib:/maxtor5/sergei/AppsFromScratchWD/install/pa_snapshot_v18/lib:/maxtor5/sergei/AppsFromScratchWD/install/read line-5.1/lib:/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/lib:/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/lib/expect5.44.1:/maxtor5/sergei/AppsFromScratchWD/install/tk-8.4.15/lib:/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/lib; export LD_LIBRARY_PATH; PKG_CONFIG_PATH=/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libsndfile-1.0.17/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libraw1394-1.2.1/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libiec61883-1.1.0/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libfreebob-1.0.3/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/libavc1394-0.5.3/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/jack-audio-connection-kit-0.103.0/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/lib/pkgconfig:/maxtor5/sergei/AppsFromScratchWD/install/autogen-5.8.7/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig; export PKG_CONFIG_PATH; LDFLAGS='-L/maxtor5/sergei/AppsFromScratchWD/install/autogen-5.8.7/lib -L/maxtor5/sergei/AppsFromScratchWD/install/fftw-2.1.5/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/gmp-4.2.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/guile-1.8.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/jack-audio-connection-kit-0.103.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libavc1394-0.5.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libfreebob-1.0.3/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libiec61883-1.1.0/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libraw1394-1.2.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libsndfile-1.0.17/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/lib -L/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/lib -L/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/lib -L/maxtor5/sergei/AppsFromScratchWD/install/pa_snapshot_v18/lib -L/maxtor5/sergei/AppsFromScratchWD/install/readline-5.1/lib -L/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/lib -L/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/lib/expect5.44.1 -L/maxtor5/sergei/AppsFromScratchWD/install/tk-8.4.15/lib -L/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/lib'; export LDFLAGS; CPPFLAGS='-I/maxtor5/sergei/AppsFromScratchWD/install/autoconf-2.61/include -I/maxtor5/sergei/AppsFromScratchWD/install/autogen-5.8.7/include -I/maxtor5/sergei/AppsFromScratchWD/install/bash-3.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/dejagnu-1.4.4/include -I/maxtor5/sergei/AppsFromScratchWD/install/expect-5.44.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/fftw-2.1.5/include -I/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/include -I/maxtor5/sergei/AppsFromScratchWD/install/gmp-4.2.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/gperf-3.0.2/include -I/maxtor5/sergei/AppsFromScratchWD/install/guile-1.8.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/jack-audio-connection-kit-0.103.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/libavc1394-0.5.3/include -I/maxtor5/sergei/AppsFromScratchWD/install/libfreebob-1.0.3/include -I/maxtor5/sergei/AppsFromScratchWD/install/libiec61883-1.1.0/include -I/maxtor5/sergei/AppsFromScratchWD/install/libraw1394-1.2.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/libsndfile-1.0.17/include -I/maxtor5/sergei/AppsFromScratchWD/install/libtool-1.5.24/include -I/maxtor5/sergei/AppsFromScratchWD/install/libxml2-2.6.26/include/libxml2 -I/maxtor5/sergei/AppsFromScratchWD/install/m4-1.4.10/include -I/maxtor5/sergei/AppsFromScratchWD/install/make-3.80/include -I/maxtor5/sergei/AppsFromScratchWD/install/mpfr-2.2.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/ncurses-5.6/include -I/maxtor5/sergei/AppsFromScratchWD/install/pa_snapshot_v18/include -I/maxtor5/sergei/AppsFromScratchWD/install/readline-5.1/include -I/maxtor5/sergei/AppsFromScratchWD/install/tcl-8.4.15/include -I/maxtor5/sergei/AppsFromScratchWD/install/texinfo-4.9/include -I/maxtor5/sergei/AppsFromScratchWD/install/tk-8.4.15/include -I/maxtor5/sergei/AppsFromScratchWD/install/zlib-1.2.3/include'; export CPPFLAGS; ./configure --prefix=/maxtor5/sergei/AppsFromScratchWD/install/pd_fftw2-0.40-2 --enable-fftw --enable-alsa --enable-jack --enable-portaudio 1>configure.log 2>&1 "
- from the above one can also see versions of other libraries I'm using.
Thanks, Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=...
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev