Wednesday, January 9, 2013

How to get the Haskell vector-fftw package working under Windows

Just a simple thing I thought I'd share, as it might help others in the future: to get the vector-fftw package working on Windows, you will need the DLLs available at http://www.fftw.org/. So far so good, but when I tried to install the package using cabal install vector-fftw --extra-include-dir=$FFTW --extra-lib-dir=$FFTW, where $FFTW is the path to the fftw DLLs, cabal told me it couldn't find them. It turns out the DLL was called fftw3-3, but the extra-libraries field of the vector-fftw cabal package asks for fftw3. So I renamed that field to fftw3-3, and all worked fine. You'll still need the DLLs to be in your PATH, though.

No comments: