|
Packit |
0ec9dd |
The Pango backends written for Win32 is pangowin32. Pangowin32 uses
|
|
Packit |
0ec9dd |
the Win32 GDI font API. GTK+ 2.8 and later on Win32 however actually
|
|
Packit |
0ec9dd |
uses the pangocairo backend (which then uses only small parts of
|
|
Packit |
0ec9dd |
pangowin32). Much of the GDI font API calls are in cairo.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
The pangoft2 backend was originally written with Win32 in mind, but
|
|
Packit |
0ec9dd |
its main use nowadays is on other platforms than Win32.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
There are three ways to build Pango for Win32:
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
1) Use gcc (mingw), libtool, make, like on Unix.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
If building from git, run the autogen.sh script that runs aclocal,
|
|
Packit |
0ec9dd |
automake, autoconf and configure to build makefiles etc. This is what
|
|
Packit |
0ec9dd |
tml@novell.com uses. Pass the same switches to autogen.sh that you
|
|
Packit |
0ec9dd |
would pass to the configure script.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
If building from a tarball, just running the configure script and then
|
|
Packit |
0ec9dd |
make should be enough. But, as always, you need to understand what is
|
|
Packit |
0ec9dd |
happening and follow the progress in case manual intervention is
|
|
Packit |
0ec9dd |
needed.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
tml ran the configure script like this when building binaries for
|
|
Packit |
0ec9dd |
Pango 1.10.0:
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
PATH=/devel/dist/glib-2.8.0/bin:$PATH ACLOCAL_FLAGS="-I /devel/dist/glib-2.8.0/share/aclocal" PKG_CONFIG_PATH=/devel/dist/glib-2.8.0/lib/pkgconfig:$PKG_CONFIG_PATH CC='gcc -mtune=pentium3' CPPFLAGS='-I/opt/gnu/include' LDFLAGS='-L/opt/gnu/lib' CFLAGS=-O ./configure --disable-gtk-doc --without-x --prefix=c:/devel/target/pango-1.10.0
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
2) Use Visual Studio 2008 or later (Express/Community or above). Use the
|
|
Packit |
0ec9dd |
solution file in build/win32/vsX, where X corresponds to the numerical
|
|
Packit |
0ec9dd |
version of your Visual Studio, such as 9 for 2008 and 12 for 2013.
|
|
Packit |
0ec9dd |
See the README.txt there for more information, or see the following
|
|
Packit |
0ec9dd |
GNOME Live! page for a more detailed description of building Pango
|
|
Packit |
0ec9dd |
and its dependencies with Visual Studio:
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
https://live.gnome.org/GTK%2B/Win32/MSVCCompilationOfGTKStack
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
3) Use MSVC and nmake. Use the makefile.msc makefiles. These makefiles
|
|
Packit |
0ec9dd |
are supported by Hans Breuer. They requires manual editing. You need
|
|
Packit |
0ec9dd |
to have the source code to some suitable version of glib in a sibling
|
|
Packit |
0ec9dd |
directory. Ask Hans for advice.
|