You should just build FFTW the normal way and then add the compiled library (e.g. libfftw3.a
) and header (fftw3.h
) to your Xcode project.
E.g. to build and install FFTW from the command line for single precision (float) (libfftw3f.a
):
$ ./configure --enable-float --enable-sse
$ make
$ sudo make install
For double precision (libfftw3.a
):
$ ./configure --enable-sse2
$ make
$ sudo make install
Alternatively you can just use the excellent homebrew package manager which takes care of everything for you:
$ sudo brew install fftw
Note: simd-altivec.h
is for PowerPC builds with AltiVec SIMD.