README.mingw-cross 1.66 KB
Newer Older
1 2 3 4
How to cross compile GCompris for windows with mingw on GNU/Linux

You need:
========
5
You need cross version of mingw, which is available in all good distribution.
6 7 8 9 10
You have to install all mingw/windows version of your dev librairies somewhere.
You have to adapt cross-configure.sh with the places where you put this libs.

The scripts:
============
11 12
There is two script: cross-configure.sh and cross-make.sh. They are stolen
from libsdl version: http://www.libsdl.org/extras/win32/cross/README.txt
13

14 15 16 17
You can use them as configure and make, but you need to adapt them in your
configuration. cross-configure.sh has a couple of lines for each library.
Check TARGET too, TARGET is used tu set name of your compilators
(gcc is i586-mingw32msvc-gcc when TARGET=i586-mingw32msvc)
18

19 20
You have to set the PREFIX in cross-configure.sh to indicate where to install
all the stuff.
21 22 23

Library warning
===============
24 25 26 27 28 29
You need lib*.a version of libraries if you want compile with -shared modules.
You can make them from dll/def/lib using pexport/dlltool
(i586-mingw32msvc-dlltool) if they are missing (e.g. sqlite.org gives only
dll and def).
Read http://www.go-evolution.org/Building_Evolution_on_Windows#libxml2
for an exemple with libxml2
30 31 32

Libxml2
=======
33
The windows dev version is missing pc file for pkg-config.
34 35 36 37 38 39 40 41 42 43 44 45 46 47
Read that: http://www.go-evolution.org/Building_Evolution_on_Windows#libxml2
I have wrote a pc file for it :
--------------------------
prefix=/home/ycombe/Win32/98/libxml2-2.6.26.win32
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libXML
Version: 2.6.26
Description: libXML library version 2.
Requires:
Libs: -L${libdir} -llibxml2  -lz
--------------------------