Windows build » History » Version 68

pospelov, 16 Jul 2015 10:00

1 1 herck
h1. Windows build
2 1 herck
3 61 pospelov
4 1 herck
BornAgain compilation under Windows using Microsoft Visual Studio 2013.
5 68 pospelov
> see also [[Obsolete instruction for MSVC2012]]
6 1 herck
7 1 herck
8 68 pospelov
9 68 pospelov
h1. To install x86
10 68 pospelov
11 63 pospelov
h5. Install VS.NET2013
12 47 pospelov
13 47 pospelov
* Install Visual Studio using our VS.NET2012 package
14 66 pospelov
> Download and install Microsoft Visual Studio 2013 Language Pack from http://www.microsoft.com/en-US/download/details.aspx?id=40783
15 66 pospelov
> Set English in Tools -> Optionen -> Internationale
16 67 pospelov
17 67 pospelov
18 67 pospelov
h5. Install cmake
19 67 pospelov
20 67 pospelov
* Install cmake from http://www.cmake.org/download 
21 67 pospelov
> by running cmake-3.2.3-win32-x86.exe
22 67 pospelov
> select option "add cmake to the system PATH for all users"
23 67 pospelov
24 67 pospelov
25 67 pospelov
h5. Install NSIS
26 67 pospelov
27 67 pospelov
* Install NSIS from http://nsis.sourceforge.net/Download 
28 1 herck
> version NSIS 3.0b1
29 67 pospelov
30 68 pospelov
h5. Install Qt5.5
31 1 herck
32 68 pospelov
* Use online installer
33 68 pospelov
> Deselect 5.4, select 5.5 and msvc2013 32-bit and msvc2013 64-bit
34 68 pospelov
> Add to path c:\Qt\5.5\msvc2013\bin
35 68 pospelov
36 67 pospelov
h5. Create directory C:\opt\local_x86
37 67 pospelov
> C:\opt\local_x86\include
38 67 pospelov
> C:\opt\local_x86\lib
39 67 pospelov
40 67 pospelov
41 67 pospelov
h5. Install boost
42 67 pospelov
43 67 pospelov
* Install boost from http://sourceforge.net/projects/boost/files/boost-binaries
44 67 pospelov
> by running boost_1_58_0-msvc-12.0-32.exe
45 67 pospelov
> Install in the temporary directory C:\temp\boost_1_58_0
46 67 pospelov
> Copy content of the directory C:\temp\boost_1_58_0\lib32-msvc-12.0\* in the C:\opt\local_x86\lib\.
47 67 pospelov
> Copy whole directory C:\temp\boost_1_58_0\boost into C:\opt\local_x86\include\.
48 67 pospelov
49 67 pospelov
50 67 pospelov
h5. Install fftw3
51 67 pospelov
52 67 pospelov
* Install fftw3 from http://www.fftw.org/install/windows.html
53 67 pospelov
> download  fftw-3.3.4-dll32.zip and unpack into temporary directory C:\temp\fftw3
54 67 pospelov
> generate lib file
55 67 pospelov
>> open "VS2013 x86 Native Tools Command Prompt" from Windows menu All Programs/Microsoft Visual Studio 2013/Tools
56 67 pospelov
>> cd C:\temp\fftw3
57 67 pospelov
>> lib /def:libfftw3-3.def
58 67 pospelov
59 67 pospelov
> copy c:\temp\fftw3\fftw3.h to C:\opt\local_x86\include\.
60 67 pospelov
> copy c:\temp\fftw3\libfftw3-3.lib to C:\opt\local_x86\lib\.
61 1 herck
> copy c:\temp\fftw3\libfftw3-3.def to C:\opt\local_x86\lib\.
62 1 herck
> copy c:\temp\fftw3\libfftw3-3.dll to C:\opt\local_x86\lib\.
63 68 pospelov
64 68 pospelov
h5. Install GSL
65 68 pospelov
66 68 pospelov
* All previous recepies disappeared from internet
67 68 pospelov
* Found out that one
68 68 pospelov
> Download gsl-1.16_winbin.zip from https://azylstra.net/blog/post/building-gsl-on-windows
69 68 pospelov
> Unpack to C:\temp\gsl-1.16
70 68 pospelov
> Copy directory C:\temp\gsl-1.16\gsl\x86\include\gsl to  C:\opt\local_x86\include\.
71 68 pospelov
> Copy content C:\temp\gsl-1.16\gsl\x86\lib\* to  C:\opt\local_x86\lib\.
72 68 pospelov
73 68 pospelov
h5. PATH
74 68 pospelov
75 68 pospelov
* Add c:\opt\local_x86\lib to PATH
76 68 pospelov
77 68 pospelov
78 68 pospelov
 “Visual Studio 12 2013 Win64”