Chris@10: Chris@10: Chris@10: Installation on Unix - FFTW 3.3.3 Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10:
Chris@10: Chris@10:

Chris@10: Next: , Chris@10: Previous: Installation and Customization, Chris@10: Up: Installation and Customization Chris@10:


Chris@10:
Chris@10: Chris@10:

10.1 Installation on Unix

Chris@10: Chris@10:

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

     ./configure
Chris@10:      make
Chris@10:      make install
Chris@10: 
Chris@10:

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

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

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

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

     ./configure CFLAGS="<write your CFLAGS here>"
Chris@10: 
Chris@10:

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

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

Chris@10: Chris@10:

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