Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: FFTW 3.3.8: Installation on Unix Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82:
Chris@82:

Chris@82: Next: , Previous: , Up: Installation and Customization   [Contents][Index]

Chris@82:
Chris@82:
Chris@82: Chris@82:

10.1 Installation on Unix

Chris@82: Chris@82:

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

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

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

Chris@82:

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

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

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

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

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

Chris@82:

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

Chris@82: Chris@82: Chris@82: Chris@82:

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

Chris@82:
Chris@82:
Chris@82:

Chris@82: Next: , Previous: , Up: Installation and Customization   [Contents][Index]

Chris@82:
Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: