Difference between revisions of "Gtk OSX Using imendio script"
(→libgnomecanvas) |
(→Others LIBS) |
||
Line 89: | Line 89: | ||
* then <code>make</code> and make install as usual. | * then <code>make</code> and make install as usual. | ||
+ | |||
+ | === sqlite3 === | ||
+ | is included, but without pkgconfig file, into MacOSX. | ||
+ | |||
+ | I have just added a file <code>/usr/lib/pkgconfig/sqlite3.pc</code> like that: | ||
+ | <pre> | ||
+ | # Package Information for pkg-config | ||
+ | |||
+ | prefix=/usr | ||
+ | exec_prefix=/usr/bin | ||
+ | libdir=/usr/lib | ||
+ | includedir=/usr/include | ||
+ | |||
+ | Name: SQLite | ||
+ | Description: SQL database engine | ||
+ | Version: 3.1.3 | ||
+ | Libs: -L${libdir} -lsqlite3 | ||
+ | Cflags: -I${includedir} | ||
+ | </pre> |
Revision as of 10:33, 12 March 2007
Contents
Imendio port of Gtk on quartz
warning: the name of the script is now gtk-osx-build
and not gtk-osx-build.sh
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 (see below) are installed detected that should give you a working GCompris.
Others LIBS
We should make our own version of he script adding libart_lgpl, libgnomecanvas and pysqlite2.
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.
libart_lgpl
This lib is needed for libgnomecanvas.
- get from svn:
svn co http://svn.gnome.org/svn/libart_lgpl/trunk libart_lgpl
- configure:
./autogen.sh --disable-gtk-doc --enable-shared --prefix=/Users/yves/opt/gtk/
- then
make
and make install as usual.
libglade
This lib is needed for libgnomecanvas.
- get from svn:
svn co http://svn.gnome.org/svn/libglade/trunk libglade
- configure (needs OSX libxml2):
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/Users/yves/opt/gtk/
- then
make
and make install as usual.
libgnomecanvas
- get from svn:
svn co http://svn.gnome.org/svn/libgnomecanvas/trunk libgnomecanvas
- configure (needs libxml2 because of libglade ?):
.PKG_CONFIG_PATH=/usr/lib/pkgconfig/ /autogen.sh --disable-gtk-doc --enable-shared --prefix=/Users/yves/opt/gtk/
- then
make
and make install as usual.
sqlite3
is included, but without pkgconfig file, into MacOSX.
I have just added a file /usr/lib/pkgconfig/sqlite3.pc
like that:
# Package Information for pkg-config prefix=/usr exec_prefix=/usr/bin libdir=/usr/lib includedir=/usr/include Name: SQLite Description: SQL database engine Version: 3.1.3 Libs: -L${libdir} -lsqlite3 Cflags: -I${includedir}