Windows build » History » Version 5

pospelov, 22 Aug 2013 16:18

1 1 herck
h1. Windows build
2 1 herck
3 1 herck
Installed Windows 7 Professional 64 bit on Mac Boot Camp partition and then created a Parallels virtual machine which runs on this partition
4 1 herck
Installed on Windows:
5 1 herck
* Qt (Qt 5.0.2 libraries for MinGW & Qt Creator 2.7.0); MinGW is part of this installer
6 1 herck
* Atlassian SourceTree (v0.9.2.3)
7 1 herck
* Installed gnuwin32 from sourceforge
8 1 herck
* Installed gsl from http://gnuwin32.sourceforge.net/packages.html
9 1 herck
* Downloaded fftw3 library from http://www.fftw.org/install/windows.html and moved fftw3.h to new include folder and libfftw3-3.dll to new lib folder (for compatibility with unix/mac paths in shared.pri)
10 1 herck
* Downloaded boost_1_53_0 from sourceforge
11 1 herck
* Build Boost:
12 1 herck
   0) Adapt <BOOSTDIR>\tools\build\v2\tools\python.jam according to SO:
13 1 herck
14 1 herck
>>   On IRC, we have found the following procedure fixes the problem:
15 1 herck
>>   
16 1 herck
>>   Open tools/build/v2/tools/python.jam
17 1 herck
>>   There, locate the following code:
18 1 herck
>>   
19 1 herck
>>   if [ version.check-jam-version 3 1 17 ] || ( [ os.name ] != NT )
20 1 herck
>>   {
21 1 herck
>>       # Prior to version 3.1.17 Boost Jam's SHELL command did not support
22 1 herck
>>       # quoted commands correctly on Windows. This means that on that
23 1 herck
>>       # platform we do not support using a Python command interpreter
24 1 herck
>>       # executable whose path contains a space character.
25 1 herck
>>       python-cmd = \"$(python-cmd)\" ;
26 1 herck
>>   }
27 1 herck
>>   Remove that code block completely.
28 1 herck
   1) -> cd <BOOSTDIR>\tools\build\v2\engine
29 1 herck
   2) -> build.bat mingw
30 1 herck
   3) copy resulting bjam.exe into <BOOSTDIR>
31 1 herck
   4) -> cd <BOOSTDIR>
32 1 herck
   5) -> bjam - -sZLIB_SOURCE="C:\zlib-1.2.8" toolset=gcc address-model=32 variant=release link=static,shared threading=single,multi install
33 1 herck
   6) renamed all boost libraries to conform with *nix libnames (using powershell)
34 1 herck
-Moved needed dlls to windlls folder which is included in path
35 1 herck
-Installed Eigen-3.1.3 library (headers only)
36 1 herck
-Installed Root:
37 1 herck
   1) -> git clone http://root.cern.ch/git/root.git
38 1 herck
   2) installed and run cmake (CMAKE_INSTALL_PREFIX="c:\root" GSL_DIR="c:\Program Files (x86)\GnuWin32" MSVC_VERSION=1600)
39 1 herck
   3) run mingw32-make in root build directory
40 2 pospelov
41 2 pospelov
42 5 pospelov
h5. From Gennady (will cleanup it later):
43 3 pospelov
44 2 pospelov
* after installation of Qt add mingw into the PATH
45 4 pospelov
> 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
46 4 pospelov
47 4 pospelov
48 4 pospelov
* about git
49 1 herck
> if you install git from http://msysgit.github.io/, it will come with GitBash utility which is nice replacement for çmd shell program
50 5 pospelov
51 5 pospelov
* about boost installation
52 5 pospelov
http://andres.jaimes.net/718/how-to-install-the-c-boost-libraries-on-windows/