From: erg Date: Thu, 5 Mar 2009 21:01:45 +0000 (+0000) Subject: Add new windows build instructions for 2.22 X-Git-Tag: LAST_LIBGRAPH~32^2~2320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa094baff349893229216f3dc454e913f604437d;p=graphviz Add new windows build instructions for 2.22 --- diff --git a/doc/winbuild.html b/doc/winbuild.html index 7972cd181..44a0d5791 100644 --- a/doc/winbuild.html +++ b/doc/winbuild.html @@ -5,7 +5,94 @@

Graphviz Build Instructions for Windows

-(Graphviz versions > 2.14) +(Graphviz versions >= 2.22) +

+We now build both Visual Studio and MinGW versions of Graphviz. +In addition, the source package comes with project files for Visual Studio, +so building from source should be fairly simple in either case. +

+Let $ROOT be the root directory (folder) +in which you stored the Graphviz source. +

Building with Visual Studio

+
    +
  1. +Copy the file $ROOT/windows/config.h into $ROOT. +
  2. +Copy the folder $ROOT/windows/FEATURE into $ROOT. +
  3. +Start Visual Studio and read in $ROOT/graphviz.sln. +There are project files for all of the parts of Graphviz. +
  4. +Modify the various settings for include file and library directories to find +the third-party software. +
  5. +Modify the settings as to where you want the software installed. +
  6. +Build Graphviz. +
+

Building with MinGW

+
    +
  1. Install MinGW and Msys. This gives a mini GNU-like compile environment +
  2. Set environment variables based on your machine, giving values to the +first six below: + +
    +export INSTALLROOT           # Root install directory
    +export GTKDIR                # Root of GTK tree
    +export FONTCONFIGINCLUDEDIR  # Path of fontconfig include dir
    +export FONTCONFIGLIBDIR      # Path of fontconfig lib dir
    +export FREETYPEINCLUDEDIR    # Path of freetype2 include dir
    +export FREETYPELIBDIR        # Path of freetype2 lib dir
    +
    +export CFLAGS="-DGVDLL=1"
    +export CPPFLAGS="-I$GTKDIR/include -I$GTKDIR/include/freetype2 "
    +export LDFLAGS="-L$GTKDIR/lib -no-undefined"
    +export FONTCONFIG_CFLAGS=-I$GTKDIR/include/
    +export FONTCONFIG_LIBS="-L$FONTCONFIGLIBDIR -lfontconfig"
    +export FREETYPE2_CFLAGS=-I$FREETYPEINCLUDEDIR
    +export FREETYPE2_LIBS="-L$FREETYPELIBDIR
    +export PKG_CONFIG=$GTKDIR/bin/pkg-config
    +export PKG_CONFIG_PATH=$GTKDIR/lib/pkgconfig
    +
    +export PANGOFLAGS="--with-fontconfig --with-fontconfiglibdir$FONTCONFIGLIBDIR --with-fontconfigincludedir=$FONTCONFIGINCLUDEDIR --with-pangocairo"
    +
    +
    +
    +
  3. Change directory to $ROOT and run configure:
    + +
    +./configure -C --prefix=$INSTALLROOT --without-gdk-pixbuf --with-mylibgd --disable-swig --without-x  --disable-tcl --without-ipsepcola --with-codegens --enable-shared --disable-static --with-freetype=$GTKDIR/lib --enable-ltdl $PANGOFLAGS --without-gtk --without-gtkgl
    +
    +
    +
    +When configure finishes, it lists all of the Graphviz features that have been +enabled. If there are problems, you can check for errors in config.log. +You may have to add or modify +other flags and environment variables for configure to give you the +settings you want. Run configure --help +to see the allowed options and environment variables. +
  4. Run make +
  5. Run make install +
+These builds create a feature-full version of Graphviz. You can tailor +them to your wants. This is fairly simple for MinGW: just remove or reset +the flag of the option you don't want. For Visual Studio, you will probably +need to reset some of the values in config.h and some of the +compile-time options. +
+

+(2.21 >= Graphviz versions > 2.14)

To simplify our build process, especially as most Windows users only want a binary version of the software, the Graphviz build for Windows @@ -46,11 +133,11 @@ Build Graphviz:

make install

-Presumably, a similar approach would work with Cygwin or Mingw. +Presumably, a similar approach would work with Cygwin or MinGW. The following are some notes by Steve Roush describing how he -made a static build of the libraries on Mingw. +made a static build of the libraries on MinGW.

  • Install MinGW and Msys. This gives a mini GNU-like compile environment that produces Windows-compatible results. @@ -120,8 +207,9 @@ If you desire to build directly using Visual Studio or other non-Unix-based environment, you will need to derive the necessary information from the supplied Makefiles. +

    -(2.14 >= Graphviz versions >= 2.3) +(2.14 >= Graphviz versions >= 2.3)

    We build Graphviz on Windows using the MS Visual C++ 6.0 compiler only. The simplest way to build the software from source on Windows is as