Windows build » History » Version 8

pospelov, 29 Aug 2013 16:49

1 1 herck
h1. Windows build
2 1 herck
3 6 pospelov
Experimental compilation under windows using Mingw.
4 6 pospelov
To be updated.
5 1 herck
6 1 herck
7 6 pospelov
h5. Install packages for happier life
8 1 herck
9 6 pospelov
* Atlassian SourceTree (v0.9.2.3) 
10 6 pospelov
> https://www.atlassian.com/software/sourcetree/overview
11 6 pospelov
* Kate from KDE 
12 6 pospelov
> http://download.kde.org/stable/kdewin/installer/kdewin-installer-gui-latest.exe.mirrorlist 
13 6 pospelov
* far manager
14 6 pospelov
> http://www.farmanager.com/download.php?l=en
15 1 herck
16 6 pospelov
h5. Install Qt, cmake
17 1 herck
18 6 pospelov
* Install Qt 5.1.0, MinGW is part of this installer
19 6 pospelov
> http://qt-project.org/downloads
20 1 herck
21 6 pospelov
* install cmake
22 6 pospelov
> http://www.cmake.org/cmake/resources/software.html by running cmake-2.8.11.2-win32-x86.exe
23 1 herck
24 6 pospelov
h5. Install gsl, fftw3
25 6 pospelov
26 6 pospelov
* Install gsl 
27 6 pospelov
> using corresponding gnuwin32 setup file from http://gnuwin32.sourceforge.net/packages.html
28 6 pospelov
> Into C:\Program Files (x86)\GnuWin32
29 6 pospelov
30 6 pospelov
* Install fftw3 
31 6 pospelov
> from http://www.fftw.org/install/windows.html 
32 6 pospelov
> moved fftw3.h to C:/Program Files (x86)/Libraries/fftw-3.3.3-dll32/include
33 6 pospelov
> move libfftw3-3.dll to C:/Program Files (x86)/Libraries/fftw-3.3.3-dll32/lib
34 6 pospelov
35 6 pospelov
h5. install BOOST
36 6 pospelov
37 6 pospelov
* install zlib and bzip2 from
38 6 pospelov
>   http://www.zlib.net/ into C:/zlib-1.2.8
39 6 pospelov
>   http://www.bzip.org/downloads.html into C:/bzip2-1.0.6
40 6 pospelov
41 6 pospelov
* Download and compile boost_1_54_0 
42 6 pospelov
> from http://sourceforge.net/projects/boost/files/boost/1.54.0/ and unpack
43 6 pospelov
> cd <BOOSTDIR>
44 6 pospelov
> bootstrap.bat mingw
45 6 pospelov
> 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
46 6 pospelov
> Move c:/boost/include/boost_1.54/boost directory into c:/boost/include/boost
47 6 pospelov
48 6 pospelov
49 6 pospelov
h5. Install Python and Co
50 6 pospelov
51 6 pospelov
* Install Python
52 6 pospelov
> install through http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi into C:/Python27
53 6 pospelov
54 6 pospelov
* install numpy 
55 6 pospelov
> from unofficial http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy   by running   numpy-unoptimized-1.7.1.win32-py2.7.‌exe
56 6 pospelov
57 6 pospelov
* install matplotlib 
58 6 pospelov
> from http://matplotlib.org/downloads.html  by running matplotlib-1.2.1.win32-py2.7.exe
59 6 pospelov
60 6 pospelov
> (alternative install Anaconda pack (python + mingw + numpy) from http://continuum.io/downloads ) Not checked!
61 6 pospelov
62 6 pospelov
63 6 pospelov
h5. %PATH%
64 7 pospelov
65 6 pospelov
* 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
66 6 pospelov
* Add c:/home/pospelov/development/git/BornAgain/lib;c:/home/pospelov/development/git/BornAgain/windlls to PATH
67 6 pospelov
68 6 pospelov
h5. Where we are?
69 6 pospelov
70 6 pospelov
* At this point Qt creator should work (except App and GUI)
71 6 pospelov
72 6 pospelov
* At this point cmake should work too
73 8 pospelov
> cmake -G "MinGW Makefiles"  ../BornAgain