<div dir="ltr">fftw2 hasn't been updated since 1999!  I think it is safe to use fftw3 now...</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 18, 2015 at 2:24 PM, Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Chuck -<br>
<br>
It looks like this would then no longer work with fftw2 - is this a<br>
problem, or is fftw3 widely enough distributed now that nobody will<br>
need fftw2 comatibility?<br>
<br>
thanks<br>
<span class="HOEnZb"><font color="#888888">Miller<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sun, Jan 18, 2015 at 12:59:14PM -0600, Charles Z Henry wrote:<br>
> pd-0.45.4 has the right code for FFTW3 but has the wrong <a href="http://configure.ac" target="_blank">configure.ac</a><br>
> code to test for it.<br>
><br>
> fftw_one is a function in FFTW2, which plans a 1D FFT.  The comparable<br>
> function in FFTW3 is fftw_plan_dft_1d<br>
><br>
> To get this to configure properly, you only need to change the name of<br>
> the library and the function it looks for.  For the single precision<br>
> fftw3 library ( libfftw3f.so ) the function is named<br>
> sfftw_plan_dft_1d_ or sfftw_plan_dft_1d__<br>
><br>
> Before filing a bug, I wanted to get another set of eyes on it.  Does<br>
> that function name look suspicious to anyone else?  I've confirmed the<br>
> symbol is the same in the system installed 3.3.3 version of the<br>
> library in ubuntu 14.04 and the custom compiled 3.3.4 version that I'm<br>
> using.<br>
><br>
> To fix:<br>
><br>
> This section of code in <a href="http://configure.ac" target="_blank">configure.ac</a>:<br>
> dnl fftw v2<br>
> AC_ARG_ENABLE([fftw],<br>
>         [AS_HELP_STRING([--enable-fftw],<br>
>                 [use FFTW package])],<br>
>     [fftw=$enableval])<br>
> if test x$fftw = xyes; then<br>
>     AC_CHECK_LIB(fftw, fftw_one, [LIBS="$LIBS -lfftw"],<br>
>         [AC_MSG_NOTICE([fftw package not found - using built-in FFT]); fftw=no])<br>
> fi<br>
> AM_CONDITIONAL(FFTW, test x$fftw = xyes)<br>
><br>
> becomes<br>
><br>
> dnl fftw v3<br>
> AC_ARG_ENABLE([fftw],<br>
>         [AS_HELP_STRING([--enable-fftw],<br>
>                 [use FFTW package])],<br>
>     [fftw=$enableval])<br>
> if test x$fftw = xyes; then<br>
>     AC_CHECK_LIB(fftw3f, sfftw_plan_dft_1d_, [LIBS="$LIBS -lfftw3f"],<br>
>         [AC_MSG_NOTICE([fftw package not found - using built-in FFT]); fftw=no])<br>
> fi<br>
> AM_CONDITIONAL(FFTW, test x$fftw = xyes)<br>
><br>
> Then, I run:<br>
> ./autogen.sh<br>
><br>
> and<br>
><br>
> ./configure --enable-jack --prefix=/home/chenry/pd-0.45.4<br>
> --enable-fftw CFLAGS=-I/home/chenry/linalg/include<br>
> LDFLAGS=-L/home/chenry/linalg/lib<br>
><br>
> Chuck<br>
><br>
> _______________________________________________<br>
> Pd-dev mailing list<br>
> <a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
> <a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</div></div></blockquote></div><br></div>