Building on Win32

This document describes how to get a working autotools build environment that is sufficient to build Posadis and associated tools with. Installing GTK+ is only nessecary to build the graphical tools such as Zoneedit and Dnsquery.

To build on Windows, first install the following packages:

  • Mingw, MSYS and the MSYS Developer Toolkit from here
  • Pthreads for Win32 from here1)

For GTK:

  • Gtk+/Win32 Development Environment from here
  • libglade from here2)
  • intltool from here

Currently, you will need to patch the /usr/share/libtool/ltmain.sh file (otherwise, you may get errors stating that “the real file for library y could not be found”): look for the following lines:

                     if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
                        | ${SED} 10q \
                        | $EGREP "$file_magic_regex" > /dev/null; then
                        newdeplibs="$newdeplibs $a_deplib"
                        a_deplib=""
                        break 2
                     fi

and replace them by

#                     if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
#                        | ${SED} 10q \
#                        | $EGREP "$file_magic_regex" > /dev/null; then
                        newdeplibs="$newdeplibs $a_deplib"
                        a_deplib=""
                        break 2
#                     fi

Currently, copy all files from share/aclocal in the GTK directory to /usr/share/aclocal, and edit the Cflags line in the GTK lib/pkgconfig/gtk+-2.0.pc file to make it read:

Cflags: -mms-bitfields -I${includedir}/gtk-2.0
1) This involves copying the headers from the pre-built/include directory to the Mingw include directory, and copying the libraries from pre-built/lib to lib.
2) Extract the two ZIP files to the directory you installed GTK+ in.
 
  misc/building_on_win32.txt · Last modified: 2005/03/06 11:53
 
Copyright © Meilof Veeningen, 2002-2005 - About Posadis.org