Skip to content

Windows Compilation

Dan Meliza edited this page Apr 11, 2014 · 4 revisions

Steps to compile libtfr on Windows. Works on Windows XP, 32-bit, Service Pack 3. I have been unable to get LAPACK to link correctly, so the functions to generate DPSS tapers are not active.

  1. Install Python 2.7.6 (http://www.python.org/getit/)
  2. Install the appropriate numpy binary for your version of Windows (see http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)
  3. Install MinGW (http://www.mingw.org/)
  4. Update your PATH system variable (under Control Panel/System) to include C:\MinGW\bin and C:\Python27\Scripts, and your PATHEXT variable to include .py
  5. Create/edit C:\Python27\Lib\distutils\distutils.cfg and set
[build_ext]
compiler = mingw32
  1. Download fftw3 binary libraries (http://www.fftw.org/install/windows.html). Create a directory fftw3 in the libtfr source directory and unzip downloaded file there.
  2. Run python setup.py install. The install script should copy the fftw3 dll to the install directory.

Anaconda alternative

This works on Windows 7, 64-bit.

  1. Install anaconda. It includes numpy and gcc.
  2. Download fftw3 binaries as described in step 6 above.
  3. Run python setup.py install
Clone this wiki locally