Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: FFTW 3.3.8: Installation on non-Unix systems 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.2 Installation on non-Unix systems

Chris@82: Chris@82:

It should be relatively straightforward to compile FFTW even on non-Unix Chris@82: systems lacking the niceties of a configure script. Basically, Chris@82: you need to edit the config.h header (copy it from Chris@82: config.h.in) to #define the various options and compiler Chris@82: characteristics, and then compile all the ‘.c’ files in the Chris@82: relevant directories. Chris@82:

Chris@82:

The config.h header contains about 100 options to set, each one Chris@82: initially an #undef, each documented with a comment, and most of Chris@82: them fairly obvious. For most of the options, you should simply Chris@82: #define them to 1 if they are applicable, although a few Chris@82: options require a particular value (e.g. SIZEOF_LONG_LONG should Chris@82: be defined to the size of the long long type, in bytes, or zero Chris@82: if it is not supported). We will likely post some sample Chris@82: config.h files for various operating systems and compilers for Chris@82: you to use (at least as a starting point). Please let us know if you Chris@82: have to hand-create a configuration file (and/or a pre-compiled binary) Chris@82: that you want to share. Chris@82:

Chris@82:

To create the FFTW library, you will then need to compile all of the Chris@82: ‘.c’ files in the kernel, dft, dft/scalar, Chris@82: dft/scalar/codelets, rdft, rdft/scalar, Chris@82: rdft/scalar/r2cf, rdft/scalar/r2cb, Chris@82: rdft/scalar/r2r, reodft, and api directories. Chris@82: If you are compiling with SIMD support (e.g. you defined Chris@82: HAVE_SSE2 in config.h), then you also need to compile Chris@82: the .c files in the simd-support, Chris@82: {dft,rdft}/simd, {dft,rdft}/simd/* directories. Chris@82:

Chris@82:

Once these files are all compiled, link them into a library, or a shared Chris@82: library, or directly into your program. Chris@82:

Chris@82:

To compile the FFTW test program, additionally compile the code in the Chris@82: libbench2/ directory, and link it into a library. Then compile Chris@82: the code in the tests/ directory and link it to the Chris@82: libbench2 and FFTW libraries. To compile the fftw-wisdom Chris@82: (command-line) tool (see Wisdom Utilities), compile Chris@82: tools/fftw-wisdom.c and link it to the libbench2 and FFTW Chris@82: libraries 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: