Skip to content

Setting up Windows build enviroment

Matus Kysel edited this page Aug 21, 2018 · 4 revisions

Dependencies

First download the following software:

Visual Studio 2017 Community

CMake

Git

7zip

ActivePerl

Python3

Doxygen

Boost1.60

openssl-1.0.2p

Building

Building openssl

Run following commands in x64 Native Tools Command Prompt for VS 2017:

perl Configure VC-WIN64A 
ms\do_win64a
nmake -f ms\nt.mak

Building boost

Run following commands in x64 Native Tools Command Prompt for VS 2017: bootstrap.bat

Then edit project-config.jam to something like this:

import option ; 
 
using msvc : 14.1 : "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\cl.exe"; 
 
option.set keep-going : false ; 

and then build boost b2 -a toolset=msvc-14.1 address-model=64 link=static variant=release --build-type=complete stage

Building SPHTX

cmake -G "Visual Studio 15 2017 Win64" . -DBOOST_ROOT= -DOPENSSL_ROOT_DIR= -DFULL_STATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=