Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: FFTW 3.3.5: Installation on Unix Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42:
Chris@42:

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

Chris@42:
Chris@42:
Chris@42: Chris@42:

10.1 Installation on Unix

Chris@42: Chris@42:

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

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

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

Chris@42:

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

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

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

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

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

Chris@42:

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

Chris@42: Chris@42: Chris@42: Chris@42:

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

Chris@42:
Chris@42:
Chris@42:

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

Chris@42:
Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: