cannam@95: cannam@95: cannam@95: Installation on Unix - FFTW 3.3.3 cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95:
cannam@95: cannam@95:

cannam@95: Next: , cannam@95: Previous: Installation and Customization, cannam@95: Up: Installation and Customization cannam@95:


cannam@95:
cannam@95: cannam@95:

10.1 Installation on Unix

cannam@95: cannam@95:

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

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

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

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

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

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

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

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

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

cannam@95: cannam@95:

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