cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: FFTW 3.3.8: Installation on Unix cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167:
cannam@167:

cannam@167: Next: , Previous: , Up: Installation and Customization   [Contents][Index]

cannam@167:
cannam@167:
cannam@167: cannam@167:

10.1 Installation on Unix

cannam@167: cannam@167:

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

cannam@167:
cannam@167:
./configure
cannam@167: make
cannam@167: make install
cannam@167: 
cannam@167: cannam@167:

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

cannam@167:

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

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

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

cannam@167:
./configure CFLAGS="<write your CFLAGS here>"
cannam@167: 
cannam@167:

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

cannam@167:

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

cannam@167: cannam@167: cannam@167: cannam@167:

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

cannam@167:
cannam@167:
cannam@167:

cannam@167: Next: , Previous: , Up: Installation and Customization   [Contents][Index]

cannam@167:
cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: