Difference between revisions of "Gtk OSX Using imendio script"

From GCompris
Jump to: navigation, search
Line 18: Line 18:
  
 
./gtk-osx-build.sh build
 
./gtk-osx-build.sh build
<:code>
+
</code>
  
 
== Building python modules ==
 
== Building python modules ==
Line 27: Line 27:
  
 
== Building GCompris ==
 
== Building GCompris ==
'''Need to be inside the gtk-osx environnement '''
+
'''Need to be inside the gtk-osx environnement .''' Run <code> ./gtk-osx-build.sh shell</code>.
 +
 
 +
The right compilation command looks like that:
 +
<code> GMSGFMT=/Users/yves/opt/gtk/bin/msgfmt PKG_CONFIG_PATH=/usr/lib/pkgconfig/ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/Users/yves/opt/gtk/</code>
 +
 
 +
* <code>GMSGFMT</code> is becuse there is a detection error. I don't know why.
 +
* <code>PKG_CONFIG_PATH</code> is to use OSX versions of libxml2 and sqlite3.
 +
 
 +
If all the dependants libs are installed detected that should give you a working GCompris.
 +
 
 +
== Others LIBS ==
 +
 
 +
=== SDL and SDL_mixer ===
 +
I have used officials OSX frameworks. The SDL_mixer one seems broken, it does not use #include <SDL/SDL.h> way to wall SDL header. I have modified it manually.

Revision as of 09:51, 12 March 2007

Imendio port of Gtk on quartz

Preparation

I have edited the script to set the prefix:

export PREFIX=${PREFIX-~/opt/gtk}

export PYTHONPATH=$PREFIX/lib/python2.3/site-packages:$PREFIX/lib/python2.3/site-packages/gtk-2.0

Building Gtk

Nothing to comment. ./gtk-osx-build.sh bootstrapping

./gtk-osx-build.sh build

Building python modules

./gtk-osx-build.sh build python

  • error at first run (files exist at install). Clean at second run. strange.
  • pygobject and pygtk needs manuel suppress of docs subdir in Makefile.am. Known problem.

Building GCompris

Need to be inside the gtk-osx environnement . Run ./gtk-osx-build.sh shell.

The right compilation command looks like that: GMSGFMT=/Users/yves/opt/gtk/bin/msgfmt PKG_CONFIG_PATH=/usr/lib/pkgconfig/ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/Users/yves/opt/gtk/

  • GMSGFMT is becuse there is a detection error. I don't know why.
  • PKG_CONFIG_PATH is to use OSX versions of libxml2 and sqlite3.

If all the dependants libs are installed detected that should give you a working GCompris.

Others LIBS

SDL and SDL_mixer

I have used officials OSX frameworks. The SDL_mixer one seems broken, it does not use #include <SDL/SDL.h> way to wall SDL header. I have modified it manually.