Building Dynagraph for Windows
Because Graphviz is not tuned for building on Windows, it takes a few abnormal steps to get Dynagraph for Windows to build.
- Download Graphviz, Dynagraph, and Dynagraph for Windows. Currently Dynagraph for Windows only compiles with the 1.0 branch of Dynagraph.
- Put them in sibling directories named
graphviz
, dynagraph
, and dgwin
.
- Download Boost and add it to the "Include files" directories and the "Library files" directories in Tools/Options—Projects/VC++ Directories.
Because it is very time consuming to compile the Boost libraries, you may want to download the compiled version at Boost Consulting's version. Currently you will need the "Multithread, static runtime" and/or "Multithread Debug, static runtime" variants of the Thread library.
Alternately, you can follow the instructions here to build the Boost libraries yourself.
- Copy the contents of
dgwin\gvbuild
to the parent directory. This will add Visual C++ projects to some of the graphviz\lib
directories and create a fauxunix
directory with some unix-like headers.
- (Only necessary if building directly from repository sources.) Generate the incrface and graphsearch parsers. To do this you will need a set of GNU tools such as cygwin or mingw/msys.
In dynagraph/incrface
make incrscan.cpp incrgram.cpp
(If you want to try dinograph:) In dynagraph/graphsearch
make gsscan.cpp gsgram.cpp
- Delete
graphviz\lib\agraph\malloc.h
. Yes, this is weird - don't worry, it's empty.
- Open
dgwin.sln
(or dgwin.7.1.sln
for MSVC++ 2003) and build it. This may take several tries because Visual C++ does not understand the proper build order.
- If you want to build the installer, the WiX-based installer is in
dgwin\installer
. Build it with compile.bat
, which requires a version number #.#.# as a parameter. You will also need to modify the batch file to point to your WiX installation.
Comments? Improvements? Please contact me.