<commit_before><html>
<head>
<title>Graphviz Build Instructions for Windows</title>
</head>
<body bgcolor=#ffffff>
<h2>Graphviz Build Instructions for Windows</h2>
<P>
<b>(Graphviz versions &ge; 2.30)</b>
<P>
The current build process for Windows using Visual Studio is fairly 
simple <b>assuming all of the necessary files are available and have<commit_msg>Add newer build instructions to winbuild.html.<commit_after><html>
<head>
<title>Graphviz Build Instructions for Windows</title>
</head>
<body bgcolor=#ffffff>
<h2>Graphviz Build Instructions for Windows</h2>
For building on Windows:
<P>
<b>(Graphviz versions &ge; 2.41)</b>
<P>
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:

<pre>
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
</pre>
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):

<pre>
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
</pre>
If all went right, the dependencies are now set up and you can build Graphviz.

<P>
<b>(Graphviz versions &ge; 2.30)</b>
<P>
The current build process for Windows using Visual Studio is fairly 
simple <b>assuming all of the necessary files are available and have
{'fraction_non_alphanumeric': 0.09992401215805471, 'fraction_numerical': 0.031534954407294834, 'mean_word_length': 4.5665961945031714, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2048769', 'n_tokens_mistral': 919, 'n_tokens_neox': 861, 'n_words': 328}