From 61f32fc11e1f5682b8e42e4c39eec1ab7d956657 Mon Sep 17 00:00:00 2001 From: Chiel ten Brinke Date: Tue, 3 Jan 2017 14:09:22 +0100 Subject: [PATCH] Add newer build instructions to winbuild.html. --- doc/winbuild.html | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/winbuild.html b/doc/winbuild.html index 82e9bbfa9..01aecbf4c 100644 --- a/doc/winbuild.html +++ b/doc/winbuild.html @@ -4,6 +4,39 @@

Graphviz Build Instructions for Windows

+For building on Windows: +

+(Graphviz versions ≥ 2.41) +

+First, in the root of the repository, perform git submodule update --init. This will download all submodules, which are mostly the dependencies for the Windows build. +Next, add the windows\dependencies\graphviz-build-utilities directory to your PATH (and restart Visual Studio or the prompt with which you execute msbuild after that). This folder contains the tools Bison, Flex and SED (and future additions) with versions that are tested. +The final step is building libgd from the source (they do not provide Windows releases), this is a bit of a hassle. The script used in the Appveyor build assumes 7-zip is installed and in the path and that Visual Studio 14.0 is installed. +In Powershell, cd to windows\dependencies\libgd in the Graphviz repo and run the following lines: + +

+mkdir deps
+cd deps
+wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/archives/freetype-2.6.2-vc14-x86.zip -O freetype.zip
+wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libiconv-1.14-vc14-x86.zip -O iconv.zip
+wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libjpeg-9b-vc14-x86.zip -O jpeg.zip
+wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/libpng-1.6.21-vc14-x86.zip -O png.zip
+wget http://windows.php.net/downloads/php-sdk/deps/vc14/x86/zlib-1.2.8-vc14-x86.zip -O zlib.zip
+7z x freetype.zip
+7z x iconv.zip
+7z x jpeg.zip
+7z x png.zip
+7z x zlib.zip
+
+Then, using the cmd command prompt, cd to the same directory and run the following lines (change the path in the first line if you use a different Visual Studio version): + +
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
+set WITH_DEVEL=deps
+set WITH_BUILD=build
+nmake /f windows/Makefile.vc build_libs
+
+If all went right, the dependencies are now set up and you can build Graphviz. +

(Graphviz versions ≥ 2.30)

-- 2.40.0