Home | Blog | Recent Changes | Page Index | Site Map
History: Home > Building gtkmathview on Windows

Building gtkmathview on Windows


What You Need
MinGW/MSYS (See Setting Up a Build Environment - you need pkg-config too)
Building libxml2 on Windows - install this
glib and glib-dev (I used 2.14.4 from ftp://ftp.gnome.org/pub/gnome/binaries/win32/)
gettext and gettext-dev (I used 0.14.5 from ftp.gnome.org - see the "dependencies" directory there inside win32.)

How To Build
1.
Start MSYS
2.
Unzip the latest gtkmathview tarball (preferred), or download the gtkmathview SVN module from GNOME SVN with svn co http://svn.gnome.org/svn/gtkmathview/trunk gtkmathview
3.
In MSYS, cd into that directory
4.
Execute the following commands in that directory in MSYS
1.
./autogen.sh (for SVN gtkmathview builds only)
2.
PKG_CONFIG_PATH=/mingw/lib/pkgconfig CC=g++ ./configure --prefix=/mingw --disable-boxml --disable-gmetadom --disable-libxml2-reader --disable-debug --disable-custom-reader --enable-pipe --disable-tfm --disable-svg --disable-gtk --with-t1lib=no --disable-ps --enable-libxml2 --enable-shared
3.
make && DESTDIR=/c/binaries/libmathview-0.7.8 make install
5.
Backup the /c/binaries/libmathview-0.7.8/bin/* files, then execute strip on each.
6.
To create packages to redistribute of mathview, separate the files into regular (bin, etc, share, man) and -dev (lib, include). These files can be then unzipped and overlayed onto MinGW
Login | Edit this page | Building_gtkmathview_on_Windows mailing list