Re: mysterious warning from Pango on Win32



I think your problem is probably related to pango.modules. The file usually lives in etc/pango/pango.modules. That path can be in the same directory you run the exe. pango.modules points to the location of pango_basic.dll or something similar depending on what fonts you want (i think).

mine looks something like: .\pango-basic.dll BasicScriptEngineWin32 PangoEngineShape PangoRenderWin32 common:

I put together a gtk+ installer to set up all gtk+ that I compilied with msvc it shouldn't be too different from one compilied with mingw. It includes a pango.modules as well as some other files you might need for using themes.

http://severna.homeip.net/gtk-win32.php

hope this helps,
todd

Issac Trotts wrote:

I recently got my GTK-based application working on Windows,
using Mingw and the windows port of GTK.  However, something
went wrong when I started trying to make an installer,
using inno_setup4, that included all the DLLs my program
needs.  I fixed part of the problem (complaints from DLLs)
by removing GTK dlls from the WINDOWS/SYSTEM32 directory, where they don't like to live.

There remains one problem.  When I launch my program from
the MSYS terminal it runs just fine, but when I launch it
by clicking the desktop icon or start menu entry it brings
up an error box:

"** ERROR **: file shape.c: line 75 (pango_shape): assertion
failed: (glyphs->num_glyphs > 0) aborting..."

and some error messages show up in the output window:

** (align.exe:468): WARNING **: The specified module could not
be found.  Failed to load Pango module for id: 'BasicScriptEngineWin32'
(same thing three more times)
(align.exe:468): GLib-GObject-CRITICAL **: file gobject.c: line 1561
(g_object_ref): assertion `G_IS_OBJECT (object)' failed

** (align.exe:468): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_shape_shape): assertion `PANGO_IS_FONT (font)' failed



Issac Trotts
http://mallorn.ucdavis.edu/~ijtrotts
(w) 530-757-8789
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]