-
Notifications
You must be signed in to change notification settings - Fork 9
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.
- Install Python 2.7.6 (http://www.python.org/getit/)
- Install the appropriate numpy binary for your version of Windows (see http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)
- Install MinGW (http://www.mingw.org/)
- Update your PATH system variable (under Control Panel/System) to include
C:\MinGW\bin
andC:\Python27\Scripts
, and your PATHEXT variable to include.py
- Create/edit
C:\Python27\Lib\distutils\distutils.cfg
and set
[build_ext]
compiler = mingw32
- 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. - Run
python setup.py install
. The install script should copy the fftw3 dll to the install directory.
This works on Windows 7, 64-bit.
- Install anaconda. It includes numpy and gcc.
- Download fftw3 binaries as described in step 6 above.
- Run
python setup.py install