Re: Aisleriot / mingw32



Hi;

Le jeudi 07 juin 2007 à 22:37 +0200, Andreas Røsdal a écrit :
> Now that Aisleriot has a gtk+ only mode, it should in theory be possible 
> to compile it on win32 using mingw32. Here is the result:
> 
> http://www.gnome.org/~andreasr/games/sol-win32.png

Great work! Let's try to solve these problems:

> Of course, there are several problems which need to be solved.
> Here's what I did, and what went wrong.
> 
> - Invoke configure with these parameters:
> ./configure --with-platform=gtk-only --with-games=aisleriot 
> --enable-threading=no --disable-setgid
> 
> - Use the enable-runtime-pseudo-reloc flag to ld:
>    -Wl,--enable-runtime-pseudo-reloc
>    http://sourceware.org/binutils/docs-2.16/ld/Options.html#Options
> 
> - games-setgid doesn't compile on mingw32
> See: http://bugzilla.gnome.org/show_bug.cgi?id=445270
> 
> - bonded.card-theme is not generated or installed correctly:
> 
> Failed to load prerendered card theme from 
> C:/msys/1.0/local/share/gnome-games-common\card-themes\bonded.card-theme: 
> No such file or directory

This means that you didn't have librsvg installed when building; so it's
only built the prerendered theme support and you don't have a
prerendered theme installed. 

Here's how to generate one: You need a gnome-games build on your linux
box, _with_ librsvg. In this case, the build will produce a binary in
$pkglibdir (usually $prefix/lib/gnome-games),
"gnome-games-render-cards". Invoke it like this:

gnome-games-render-cards --theme bonded
--output-directory /some/where/to/put/the/files 30 40 50 60 70 80 90 100
110 120 [etc.]

(The numbers are the list of widths you want to prerender the cards at,
you can specify as much as you have disk space to store them :)

That should produce a bonded.card-theme file and a bonded/ subdirectory
containing the card images; just put these in the path
C:/msys/1.0/local/share/gnome-games-common\card-themes on your windows
installation.

> ** (sol.exe:2812): WARNING **: Loading theme 11839536 failed!
That message was buggy, I've removed it.

> (sol.exe:2812): GLib-GObject-WARNING **: g_object_get_valist: object class 
> `GtkSettings' has no property named `gtk-xft-rgba'

I think just fixed that in svn by making that code #ifdef
GDK_WINDOWING_X11 (MingW is using win32 natively, right?).


Some more things that will need to be adapted to win32:

* sol.c:about_url_hook needs to use the win32 calls to open the browser
URL
* sol.c needs to implement a win32 specific help hook, and you need to
find a way to convert the documentation from docbook to the windows help
format. (For maemo I just converted them to XHTML with gnome-doc-tool
from gnome-doc-utils and use the web browser to show them.)

Regards,
	Christian




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