[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] Patch to harfbuzz for Windows XP support
From: |
Gerardo Ballabio |
Subject: |
[Mingw-cross-env-list] Patch to harfbuzz for Windows XP support |
Date: |
Tue, 27 Nov 2012 22:20:00 +0100 |
Hi all,
I've recently discovered MXE and used it to build a program of mine,
which uses the gtkmm library. When I tried the compiled executable on
a Windows XP machine, it refused to run and popped a message box which
complained about a missing symbol (ScriptItemizeOpenType) in some DLL.
Googling on the symbol's name I found this post:
https://bugs.freedesktop.org/show_bug.cgi?id=55494
As explained there, ScriptItemizeOpenType is a Windows function that
was introduced in Vista. The harfbuzz package, which is a dependency
of pango and thus of all the gtk family, calls it, and as a result,
any program compiled with MXE that uses gtk can't run on Windows XP.
I tried the patch attached to the post, and it solved the problem for
me, so you might want to add it to MXE.
The patch just deletes most of the function which contains the
incriminated function call. I can't tell what functionality gets lost
by doing that, but my program seems to work just fine, so it's
probably not core functionality and many other programs might work
without it as well.
As the original author wrote, a better solution would be desirable,
but this can work as a stopgap until then.
I'm reattaching the patch here, edited and renamed to fit with MXE's
directory structure and to add the "this file is part of MXE" header
and link to the source URL. Simply add it to the src directory and
rebuild.
And thank you for making MXE.
Gerardo
harfbuzz-1-winxp-ugly.patch
Description: Binary data
- [Mingw-cross-env-list] Patch to harfbuzz for Windows XP support,
Gerardo Ballabio <=