cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: FFTW 3.3.5: Installation on Unix cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127:
cannam@127:

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

cannam@127:
cannam@127:
cannam@127: cannam@127:

10.1 Installation on Unix

cannam@127: cannam@127:

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

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

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

cannam@127:

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

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

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

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

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

cannam@127:

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

cannam@127: cannam@127: cannam@127: cannam@127:

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

cannam@127:
cannam@127:
cannam@127:

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

cannam@127:
cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: