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=...
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
On Sat, 18 Aug 2007, Miller Puckette wrote:
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.)
Sorry, FFTW 3 was released several years before pd 0.40 and you decided to use the FFTW 2 API anyway.
FFTW 3 is still missing some features that are in FFTW 2, but AFAIK, those features are irrelevant to Pd.
Both libraries are available at the same time in several Linux distributions, and are completely separate APIs: you write for one or the other. It's difficult to say that the API of FFTW 2 changed to become FFTW 3, especially as upgrading your distribution doesn't replace FFTW 2 by FFTW 3 and won't ever, and none of the filenames are the same, etc.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
Oops, if FFTW3 was out when I tried to adapt Pd to use FFTW, it's my mistake. If the FFTW2 API is still supported, I should just go on and finish the job of adapting Pd to use it. If only FFTW3 is to be supported in the future, I have to re-work the FFTW code.
Anyway, since there are two other FFT pacakges that Pd works fine with, I don't feel that fixing the Pd FFTW support is the most urgent thing I need to deal with right now.
cheers M
On Sat, Aug 18, 2007 at 03:11:51PM -0400, Mathieu Bouchard wrote:
On Sat, 18 Aug 2007, Miller Puckette wrote:
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.)
Sorry, FFTW 3 was released several years before pd 0.40 and you decided to use the FFTW 2 API anyway.
FFTW 3 is still missing some features that are in FFTW 2, but AFAIK, those features are irrelevant to Pd.
Both libraries are available at the same time in several Linux distributions, and are completely separate APIs: you write for one or the other. It's difficult to say that the API of FFTW 2 changed to become FFTW 3, especially as upgrading your distribution doesn't replace FFTW 2 by FFTW 3 and won't ever, and none of the filenames are the same, etc.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - t?l:+1.514.383.3801, Montr?al QC Canada
--- Mathieu Bouchard matju@artengine.ca wrote:
On Sat, 18 Aug 2007, Miller Puckette wrote:
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.)
Sorry, FFTW 3 was released several years before pd 0.40 and you decided to use the FFTW 2 API anyway.
FFTW 3 is still missing some features that are in FFTW 2, but AFAIK, those features are irrelevant to Pd.
Both libraries are available at the same time in several Linux distributions, and are completely separate APIs: you write for one or the other. It's difficult to say that the API of FFTW 2 changed to become FFTW 3, especially as upgrading your distribution doesn't replace FFTW 2 by FFTW 3 and won't ever, and none of the filenames are the same, etc.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
I saw and applied a FFTW3 patch - just to check that it can be applied cleanly.
The patch applies cleanly, but, as I have just written in another reply, the problem occurs before the FFTW2/FFTW3 piece of code.
If anybody is interested, the patch was found as
http://sourceforge.net/tracker/index.php?func=detail&aid=1055258&gro... -> http://sourceforge.net/tracker/download.php?group_id=55736&atid=478072&a... .
Thanks, Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki...
--- Miller Puckette mpuckett@imusic1.ucsd.edu wrote:
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
Just to make thing clear - I mean FFTW2, not yet FFTW3. Since FFTW3 is around for a couple of years, I expected FFTW2 to work. Maybe not the last FFTW2 version ?
Did I expect too much ?
I even saw a FFTW3 patch, but it applies below the problematic piece of code, so I don't think applying it and using FFTW3 would solve the problem.
...
Anyway, web search engines give matches WRT pd and FFT. Is there an older pd version supporting FFT of any kind ?
Thanks, Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
On Sat, 18 Aug 2007, Sergei Steshenko wrote:
Just to make thing clear - I mean FFTW2, not yet FFTW3. Since FFTW3 is around for a couple of years, I expected FFTW2 to work. Maybe not the last FFTW2 version ? Did I expect too much ?
Let's call it a non-feature. Miller bundled a piece of functionality that isn't functioning. It's ok because it's disabled by default, even when you have the actual library installed. I do that a lot too, because I don't want to bother to separate sketches and scaffolds into separate folders that don't get distributed and stuff. After all, if one wants to pick up the sketch and finish it, good for them.
I even saw a FFTW3 patch, but it applies below the problematic piece of code, so I don't think applying it and using FFTW3 would solve the problem.
The FFTW3 patch is independent: you don't do --enable-fftw for it. I think it's a separate option. I don't have the time to look at what the actual diff looks like, but I've seen some parts of the diff a while ago.
Anyway, web search engines give matches WRT pd and FFT. Is there an older pd version supporting FFT of any kind ?
The devel_0_39, devel_0_38, ... branches contain code for FFT that has been submitted to Miller several years ago, before he started working on FFTW2 support. Those branches contained an already-patched pd with most of the submitted diffs, and actually were the original branches from which those diffs got created.
My branch also has the FFTW3 code in it, but it can't be enabled at the moment: it would need some more work to get there.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
--- Mathieu Bouchard matju@artengine.ca wrote:
[snip]
The FFTW3 patch is independent: you don't do --enable-fftw for it. I think it's a separate option. I don't have the time to look at what the actual diff looks like, but I've seen some parts of the diff a while ago.
Thanks - if your statement is correct, then it's the way I have to try.
Probably that's why the patch requires -DHAVE_LIBFFTW3F to be set at compile time.
Thanks, Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki...