d@0: d@0: d@0: Installation on Unix - FFTW 3.2.1 d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0:
d@0:

d@0: d@0: Next: , d@0: Previous: Installation and Customization, d@0: Up: Installation and Customization d@0:


d@0:
d@0: d@0:

9.1 Installation on Unix

d@0: d@0:

FFTW comes with a configure program in the GNU style. d@0: Installation can be as simple as: d@0: d@0:

     ./configure
d@0:      make
d@0:      make install
d@0: 
d@0:

This will build the uniprocessor complex and real transform libraries d@0: along with the test programs. (We recommend that you use GNU d@0: make if it is available; on some systems it is called d@0: gmake.) The “make install” command installs the fftw d@0: and rfftw libraries in standard places, and typically requires root d@0: privileges (unless you specify a different install directory with the d@0: --prefix flag to configure). You can also type d@0: “make check” to put the FFTW test programs through their paces. d@0: If you have problems during configuration or compilation, you may want d@0: to run “make distclean” before trying again; this ensures that d@0: you don't have any stale files left over from previous compilation d@0: attempts. d@0: d@0:

The configure script chooses the gcc compiler by default, d@0: if it is available; you can select some other compiler with: d@0:

     ./configure CC="<the name of your C compiler>"
d@0: 
d@0:

The configure script knows good CFLAGS (C compiler flags) d@0: for a few systems. If your system is not known, the configure d@0: script will print out a warning. In this case, you should re-configure d@0: FFTW with the command d@0:

     ./configure CFLAGS="<write your CFLAGS here>"
d@0: 
d@0:

and then compile as usual. If you do find an optimal set of d@0: CFLAGS for your system, please let us know what they are (along d@0: with the output of config.guess) so that we can include them in d@0: future releases. d@0: d@0:

configure supports all the standard flags defined by the GNU d@0: Coding Standards; see the INSTALL file in FFTW or d@0: the GNU web page. d@0: Note especially --help to list all flags and d@0: --enable-shared to create shared, rather than static, libraries. d@0: configure also accepts a few FFTW-specific flags, particularly: d@0: d@0:

d@0: d@0:

To force configure to use a particular C compiler foo d@0: (instead of the default, usually gcc), pass CC=foo to the d@0: configure script; you may also need to set the flags via the variable d@0: CFLAGS as described above. d@0: d@0: d@0: d@0: d@0: