[SciPy-user] Installing scipy with fftw in non-standard location

George Nurser agn at noc.soton.ac.uk
Tue Nov 21 10:20:37 CST 2006

On 21 Nov 2006, at 15:55, Joris De Ridder wrote:

> Thanks, George. This seemed to solve the problem of finding the  
> libraries:
> fftw2_info:
>   libraries rfftw,fftw not found in /software/fftw-2.1.5/
>   libraries rfftw,fftw not found in /software/fftw-2.1.5/include
>   FOUND:
>     libraries = ['rfftw', 'fftw']
>     library_dirs = ['/software/fftw-2.1.5/lib']
>     define_macros = [('SCIPY_FFTW_H', None)]
>     include_dirs = ['/software/fftw-2.1.5/include']
> I'm not sure that they're really included though. I guess (nowhere  
> documented)
> that I should be importing the FFTW functionality by
>>>> from scipy.fftw import *
> but there is no such (sub)module, only the standard fftpack module.  
> Hence my doubts...

It seems to build a shared library _fftpack.so in the fftpack  
directory of scipy. This _fftpack.so is linked to the fftw2  
libraries. E.g.
scipy/fftpack> ldd _fftpack.so
         librfftw.so.2 => /noc/users/agn/ext/Linux/fftw2/lib/ 
librfftw.so.2 (0x0000002a95662000)
         libfftw.so.2 => /noc/users/agn/ext/Linux/fftw2/lib/ 
libfftw.so.2 (0x0000002a95795000)
         libg2c.so.0 => /usr/local/lib64/libg2c.so.0  

so just calling fftpack might be using fftw.

hope it works! George.

More information about the SciPy-user mailing list