Windows build » History » Version 10

« Previous - Version 10/98 (diff) - Next » - Current version
pospelov, 04 Sep 2013 10:44


Windows build

Experimental compilation under Windows using Mingw or Microsoft Visual Studio.
To be updated.

Install packages for happier life
  • Atlassian SourceTree (v0.9.2.3)

https://www.atlassian.com/software/sourcetree/overview

  • Kate from KDE

http://download.kde.org/stable/kdewin/installer/kdewin-installer-gui-latest.exe.mirrorlist

  • far manager

http://www.farmanager.com/download.php?l=en

  • WinSCP

http://winscp.net/eng/index.php

Mingw build

Install Qt, cmake
  • Install Qt 5.1.0, MinGW is part of this installer

http://qt-project.org/downloads

  • install cmake

http://www.cmake.org/cmake/resources/software.html by running cmake-2.8.11.2-win32-x86.exe

Comment about installation of additional libraries

All further installations are done into C:\opt\local

Install gsl, fftw3
  • Install gsl

using corresponding gnuwin32 setup file from http://gnuwin32.sourceforge.net/packages.html
Into C:\Program Files (x86)\GnuWin32

  • Install fftw3

from http://www.fftw.org/install/windows.html
moved fftw3.h to C:/Program Files (x86)/Libraries/fftw-3.3.3-dll32/include
move libfftw3-3.dll to C:/Program Files (x86)/Libraries/fftw-3.3.3-dll32/lib

install BOOST
  • install zlib and bzip2 from

http://www.zlib.net/ into C:/zlib-1.2.8
http://www.bzip.org/downloads.html into C:/bzip2-1.0.6

  • Download and compile boost_1_54_0

from http://sourceforge.net/projects/boost/files/boost/1.54.0/ and unpack
cd <BOOSTDIR>
bootstrap.bat mingw
b2 install --prefix=c:/boost toolset=gcc -sBZIP2_SOURCE="C:\bzip2-1.0.6" -sZLIB_SOURCE="C:\zlib-1.2.8" address-model=32 variant=release link=static,shared threading=single,multi
Move c:/boost/include/boost_1.54/boost directory into c:/boost/include/boost

Install Python and Co
  • Install Python

install through http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi into C:/Python27

  • install numpy

from unofficial http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy by running numpy-unoptimized-1.7.1.win32-py2.7.‌exe

  • install matplotlib

from http://matplotlib.org/downloads.html by running matplotlib-1.2.1.win32-py2.7.exe

(alternative install Anaconda pack (python + mingw + numpy) from http://continuum.io/downloads ) Not checked!

PATH
  • Add to PATH C:\Qt\Tools\mingw48_32\bin;C:\Qt\Tools\mingw48_32\lib;C:\Qt\5.1.0\mingw48_32\bin;C:\Qt\Tools\QtCreator\bin
  • Add c:/home/pospelov/development/git/BornAgain/lib;c:/home/pospelov/development/git/BornAgain/windlls to PATH
Where we are?
  • At this point Qt creator should work (except App and GUI)
  • At this point cmake should work too

cmake -G "MinGW Makefiles" ../BornAgain