-
Notifications
You must be signed in to change notification settings - Fork 8
Building on Windows
##Prerequisites
The following tools are required to manage and build the sources
- git: https://git-for-windows.github.io/
- tortoiseGit: https://tortoisegit.org/
- cmake 3.8.1: https://cmake.org/ (add to path during install)
- VS2015: https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx (Make sure you choose to install C++ during the installation process. If you did not do that, you can execute the install again, click on modify, and under languages, choose C++)
##Create development folder
-
Open a "git bash" shell:
mkdir ~/git cd ~/git
##Add digital signature passphrase file it can be left blank for development
-
Open a "git bash" shell:
cd ~/git mkdir sign echo "" > ./sign/passphrase.txt
##Download and build
###boost v1.60.0
-
Download the sources from:
-
Extract the boost_1_60_0 folder from the zip file and copy to your development folder (~/git).
-
Open a "MSBuild Command Prompt for VS2015" shell found under Start / All Apps / Visual Studio 2015:
cd %UserProfile%\git\boost_1_60_0 bootstrap b2 variant=debug variant=release runtime-link=shared runtime-link=static
###expat v2.0.1
-
Open a "git bash" shell:
cd ~/git git clone https://github.com/libexpat/libexpat.git expat cd expat git checkout tags/R_2_0_1 -b R_2_0_1
-
In VS2015 open git\expat\expat\expat.dsw (VS2015 Will upgrade the project files)
- Select Build/Batch Build...
- Select All and Build
###freeType v2.4.8
- Download the sources from:
- Extract the freetype-2.4.8 folder from the zip file and copy to your development folder (~/git).
- In VS2015 open git\freetype-2.4.8\builds\win32\vc2010\freetype.sln (VS2015 Will upgrade the project files)
- Select Build/Batch Build...
- Select All and Build
###agg candidate-6.0.0
-
Open a "git bash" shell:
cd ~/git git clone https://github.com/GordonSmith/agg.git cd agg git checkout candidate-6.0.0 cd ..
###AT&T Graphviz v2.26.3
-
Open a "git bash" shell:
cd ~/git curl -O https://netix.dl.sourceforge.net/project/distrobuild/sources/graphviz-2.26.3.tar.gz tar xf graphviz-2.26.3.tar.gz rm graphviz-2.26.3.tar.gz
###firebreath candidate-6.0.0
-
Open a "git bash" shell:
cd ~/git git clone https://github.com/GordonSmith/FireBreath.git cd FireBreath git checkout candidate-6.0.0 cd ..
###GraphControl candidate-6.0.0
-
Open a "git bash" shell:
cd ~/git git clone https://github.com/hpcc-systems/GraphControl.git cd GraphControl git checkout candidate-6.0.0 cd ..
###Create build folder
-
Open a "git bash" shell:
cd ~/git mkdir build cd build mkdir GraphControl cd GraphControl
###Generate GraphControl make files
-
Open a "git bash" shell:
cd ~/git/build/GraphControl cmake -DCMAKE_BUILD_TYPE=Release -DWITH_SYSTEM_BOOST=1 -DFB_PROJECTS_DIR:PATH=../GraphControl -DAGGSRC_DIR:PATH=../../agg -DATL_INCLUDE_DIR:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/atlmfc/include" -DATL_LIBRARY_DIR:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/atlmfc/lib" -DBOOST_INCLUDEDIR:PATH=../../boost_1_60_0 -DBOOST_LIBRARYDIR:PATH=../../boost_1_60_0/stage/lib -DEXPAT_INCLUDE_DIRS=../../expat/expat -DFREETYPE_INCLUDE_DIR_freetype2=../../freetype-2.4.8/include -DFREETYPE_INCLUDE_DIR_ft2build=../../freetype-2.4.8/include -DFREETYPE_LIBRARY=../../freetype-2.4.8/objs/win32/vc2010/freetype248MT.lib -DGRAPHVIZSRC_DIR=../../graphviz-2.26.3 ../../FireBreath cmake ../../FireBreath
###Compile the sources
-
Open a "git bash" shell:
cd ~/git/build/GraphControl cmake --build . --config RelWithDebInfo -- -m
###To install the plugin
-
Open a "Command Prompt" shell with administrator privileges:
cd %UserProfile%\git\build\GraphControl\bin\HPCCSystemsGraphViewControl\RelWithDebInfo regsvr32 npHPCCSystemsGraphViewControl.dll