FFTWInstall: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Imported from Redmine)
 
(Update formatting)
 
Line 22: Line 22:
=== Notes: ===
=== Notes: ===


* you can use a directory other than /usr/src if you prefer
* You can use a directory other than <code>/usr/src</code> if you prefer
* to install FFTW somewhere other than <code>/usr/local</code> use the <code>--prefix=</code> option on <code>./configure</code> (but be sure that GNU Radio's <code>./configure</code> can find it)
* To install FFTW somewhere other than <code>/usr/local</code> use the <code>--prefix=</code> option on <code>./configure</code> (but be sure that GNU Radio's <code>./configure</code> can find it)
* newer versions of FFTW should work as they become available
* Newer versions of FFTW should work as they become available
* for more information on FFTW see http://www.fftw.org
* For more information on FFTW see http://www.fftw.org

Latest revision as of 07:35, 20 March 2017

Building and Installing FFTW for GNU Radio

GNU Radio requires a shared, single-precision version of FFTW. Many contemporary GNU/Linux systems come with FFTW suitably packaged. Systems using pkgsrc can install math/fftwf. In the event that no package is readily available on your platfrom, FFTW is easily built from source on any Linux, Cygwin, or MinGW/MSYS system. These instructions were written for Cygwin and MinGW, but should work on any of these systems.

(1) Download fftw-3.2.2.tar.gz from http://www.fftw.org/download.html to /usr/src (i.e., C:\cygwin\usr\src on a default Cygwin installation or C:\msys\1.0\src on a default MSYS installation).

(2) Build and install with (see note below for MinGW):

$ cd /usr/src
$ tar zxf fftw-3.2.2.tar.gz
$ cd fftw-3.1.2
$ ./configure --enable-float --enable-sse --enable-3dnow --enable-shared --disable-static
$ make
$ make check
$ make install

For MinGW you need more options on the ./configure command:

$ ./configure --with-our-malloc16 --enable-threads --with-combined-threads --enable-float --enable-sse --enable-shared --disable-static

FFTW is installed under /usr/local/* by default.

Notes:

  • You can use a directory other than /usr/src if you prefer
  • To install FFTW somewhere other than /usr/local use the --prefix= option on ./configure (but be sure that GNU Radio's ./configure can find it)
  • Newer versions of FFTW should work as they become available
  • For more information on FFTW see http://www.fftw.org