Cannot build working pango for devlibs

Discussion about writing code for Inkscape.
mathog
Posts: 82
Joined: Tue Feb 08, 2011 6:05 am

Cannot build working pango for devlibs

Postby mathog » Thu Mar 15, 2012 3:17 am

I have been trying to trace a problem into pango, but so far have not been able to build a version in mingw
that actually works completely even before I try to modify it. Will the person who maintains devlibs please chime in and tell
me where I am going wrong?

This is what I did:

1. download devlibs using bazaar.
2. in a separate directory, download and unpack pango 1.28.3 (the version in the devlibs) and also
pango 1.29.4 (current version).
3. In the pango directory in MSYS do:

export PKG_CONFIG_PATH=/c/progs/devlibs2/lib/pkgconfig
export PATH=$PATH:/c/progs/devlibs2/bin:/c/progs/devlibs2/perl/bin
export LDFLAGS="-L/c/progs/devlibs2/lib -lpthreadGC2"

./configure 2>&1 | tee configure_1.log
./make 2>&1 | tee build_1.log
cp pango/.libs/libpango-1.0.dll.a /c/progs/devlibs2/lib
cp pango/.libs/libpangocairo-1.0.dll.a /c/progs/devlibs2/lib
cp pango/.libs/libpangoft2-1.0.dll.a /c/progs/devlibs2/lib
#cp pango/.libs/libpangowin32-1.0.dll.a /c/progs/devlibs2/lib
cp pango/.libs/libpango-1.0-0.dll /c/progs/devlibs2/bin
cp pango/.libs/libpangocairo-1.0-0.dll /c/progs/devlibs2/bin
cp pango/.libs/libpangoft2-1.0-0.dll /c/progs/devlibs2/bin
#cp pango/.libs/libpangowin32-1.0-0.dll /c/progs/devlibs2/bin

and then in my inkscape directory (from trunk) run btool again.

There was no other install - I didn't want it to crap out the existing devlibs in some unknown way,
so that it would be possible to back out of these changes.

The reason the pangowin32 parts are commented out is because if those are copied when inkscape runs it complains
in the DOS window that it cannot find any fonts, that there is a problem with pango.modules. The inkscape interface
shows up with every character replaced by a rectangle. Using the versions of those2 files that came in from bazaar at least the fonts for the inkscape interface are found, however no text is drawn on the canvas.

Also the cairo test programs work but I could not get pango-view to show anything for either pango version. The newer one does
this:

$ pango-view -t test
pango-view: When running ImageMagick 'display' command: Failed to execute child process (Invalid argument)

the older one

(pango-view:3176): GLib-GObject-WARNING **: Two different plugins tried to register 'BasicEngineWin32'.

(pango-view:3176): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(pango-view:3176): Pango-WARNING **: Failed to load Pango module 'c:\progs\devlibs_dev\pango-1.28.3\modules\./basic/pango-basic-win32.la' for id 'BasicScriptEngineWin32'

(pango-view:3176): GLib-GObject-WARNING **: Two different plugins tried to register 'BasicEngineWin32'.

(pango-view:3176): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
pango-view: When running ImageMagick 'display' command: Failed to execute child process (Invalid argument)

suggestions?

Thanks.

Return to “Programming”