Commit 843b1268 authored by Bruno Coudoin's avatar Bruno Coudoin

Updated to reflect the current windows compilation process. fixed a

	* README.mingw: Updated to reflect the current windows compilation process.
	* src/boards/superbrain.c: (superbrain_create_item): fixed a warning and highly potential
	* src/gcompris/gameutil.c: (gcompris_find_absolute_filename): minor, fixed a debug warning
parent 2cba2a20
2006-08-14 Bruno coudoin <>
* README.mingw: Updated to reflect the current windows compilation process.
* src/boards/superbrain.c: (superbrain_create_item): fixed a warning and highly potential
* src/gcompris/gameutil.c: (gcompris_find_absolute_filename): minor, fixed a debug warning
2006-08-13 Bruno coudoin <>
- Added support for relocation using
......@@ -23,7 +30,6 @@
* docs/C/
* po/lt.po:
* src/boards/advanced_colors.c: (init_xml):
* src/boards/clickgame.c: (clickgame_start), (load_random_pixmap):
* src/boards/draw.c: (tool_event):
......@@ -12,8 +12,6 @@ FIXME:
* Download the "MinGW" installer exe and install into c:\mingw\ .
* Download the "MSYS" and "MSYS Developer Toolkit" installer exes
and install into c:\msys\ .
* Copy the .profile file from the bottom of this document into
c:\msys\1.0\home\yourname\.profile .
* if msvcrt.dll is not in your Windows/System folder, get it
or by installing Internet Explorer 4.0 or higher
......@@ -25,7 +23,7 @@ I installed each of the prerequisites in its own directory underneath
c:\msys\1.0\opt\, so that (1) they're easy to blow away piece-by-piece
to upgrade to newer versions, and (2) they show up as /opt/gtk, /opt/libxml,
and so on from msys, which is reasonably clear. If you choose a different
hierarchy make sure to tweak your .profile.
hierarchy make sure to tweak your Makefile.mingw.
2.1 GTK
......@@ -34,61 +32,48 @@ hierarchy make sure to tweak your .profile.
and "GTK Development Environment" -- *IN THAT ORDER* --
into c:\msys\1.0\opt\gtk
* edit /opt/gtk/bin/glib-gettextize, replace "/target" with "/opt/gtk"
* edit /opt/gtk/bin/glib-gettextize, replace "/target" with "/gtk"
* sanity check: you should now be able to run gtk-demo.exe from msys.
+ gcompris needs libxml2 to run.
* Snag a tarball from and untar it in your msys home directory.
* ./configure --prefix=/opt/libxml2; make; make install
* edit /opt/libxml2/lib/pkgconfig/libxml-2.0.pc:
Add " -lws2_32 " to the end of the "Libs:" line.
* Sanity check: "$ pkg-config --cflags libxml-2.0" should give meaningful output now.
* Sanity check: "$ pkg-config --libs libxml-2.0" should also work, and include -lws2_32
* ./configure --prefix=/libxml2; make; make install
Look at the NEEDED_DLLS section in the Makefile.mingw and make sure you have all of those.
* At this point, you must have the following subdirectories:
+ /opt/gtk
+ /opt/libxml2
* And, if you plan on building from CVS, you'll also need:
+ /opt/gnome-common
GTK_TOP := /gtk
GNUWIN32_TOP := /gnuwin32
LIBXML2_TOP := /libxml2
SDL_TOP := /sdl
CANVAS_TOP := /gnomecanvas
GNUCHESS_TOP := /gnuchess
* On a GNU/Linux system, create gcompris-win-prepack.tar.gz with:
make -f Makefile.mingw prep
* Get a tarball or CVS snapshot of gcompris.
* untar the gcompris-win-prepack.tar.gz in it
* run make -f Makefile.mingw from gcompris's top-level directory. This will take a long time.
* copy an installed GCompris boards directory in win32-install-dir
/usr/local/share/gcompris/boards in win32-install-dir/share/gcompris/boards
/usr/local/share/assetml in win32-install-dir/share/assetml
/usr/local/share/locale in win32-install-dir/share/locale
/usr/local/share/pixmaps in win32-install-dir/share/pixmaps
Cleanup to have only GCompris specific file.
* *drum roll...* make!
* edit the Makefile.mingw manualy to add includes and library dependancies when missing
* run ./gcompris.exe
APPENDIX: MY .profile
# Life with MinGW
export CFLAGS="$CFLAGS -mwindows -mno-cygwin -mms-bitfields"
export CPPFLAGS="$CPPFLAGS -I/c/mingw/include -DWINDOWS -DWIN32"
export PATH="$PATH:/c/mingw/bin"
export GTK_HOME="/opt/gtk"
export PATH="$GTK_HOME/bin:$GTK_HOME/lib:$PATH"
export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $GTK_HOME/share/aclocal"
export LIBICONV="$GTK_HOME/lib/iconv.dll"
export LIBXML2_HOME="/opt/libxml2"
echo "Loaded .profile..."
* run make -f Makefile.mingw prepack to include all necessary libraries in the installer directory
* run make -f Makefile.mingw install to include the generated code in the installer directory
the win32-install-dir should contain anything needed to run and package GCompris.
* run make -f Makefile.make installer to create the installer
The installer used is NSIS get it there:
And install it in it's default /c/Program Files/NSIS/makensis.exe
The GCompris package is created, double click on it from your file manager to test it.
......@@ -403,7 +403,7 @@ static GnomeCanvasItem *superbrain_create_item(GnomeCanvasGroup *parent)
piece = g_new(Piece, 1);
piece->listitem = g_list_alloc();
piece->completed = FALSE;
g_list_append(listPieces, piece);
listPieces = g_list_append(listPieces, piece);
piece->rootitem = GNOME_CANVAS_GROUP(
gnome_canvas_item_new (parent,
......@@ -454,7 +454,7 @@ static GnomeCanvasItem *superbrain_create_item(GnomeCanvasGroup *parent)
g_list_append(piece->listitem, item);
piece->listitem = g_list_append(piece->listitem, item);
gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event, piece);
/* gcompris - gameutil.c
* Time-stamp: <2006/08/13 17:28:18 bruno>
* Time-stamp: <2006/08/14 02:30:53 bruno>
* Copyright (C) 2000-2006 Bruno Coudoin
......@@ -1249,7 +1249,7 @@ gcompris_find_absolute_filename(const gchar *format, ...)
filename = g_strdup_vprintf (format, args);
va_end (args);
g_warning("filename '%s'", format);
g_warning("filename '%s'", filename);
/* Check it's already an absolute file */
if(g_path_is_absolute (filename) &&
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment