[gtkada] GtkAda on Mac OS X
John B. Matthews
trashgod at gmail.com
Wed May 6 20:15:17 CEST 2009
On Mac OS X 10.5.6 (x86), I recently built I built gtk2 (2.14.7) and
dependencies using MacPorts <http://www.macports.org/>. With an
existing GNAT 4.3.4, I was able to build GtkAda 2.14.1 (r143711) in
the usual way:
svn co http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda
cd GtkAda
./configure --prefix=/opt/local --with-GL=GL --with-GL-prefix=/usr/X11R6
make
make install
Unfortunately, the --enable-shared handler for darwin is commented out
in configure at line 1414. Instead, I used the following manual
alternative:
mkdir /opt/local/lib/gtkada/relocatable
cp -f /opt/local/lib/gtkada/static/* /opt/local/lib/gtkada/relocatable/.
cd src/lib-obj
libtool -dynamic -flat_namespace -compatibility_version 2.14.1 -
current_version 2.14.1 \
-install_name /opt/local/lib/gtkada/relocatable/libgtkada.dylib -
undefined warning \
-o libgtkada.dylib *.o ../gtkextra/obj/*.o ../opengl/obj/*.o ../tools/
obj/*.o \
-L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -
lgdk_pixbuf-2.0 \
-lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpixman-1 -lpng12 -lXrender -
lX11 -lXau \
-lXdmcp -lpango-1.0 -lm -lfontconfig -lexpat -lfreetype -lz -
lgobject-2.0 -lgmodule-2.0 \
-lglib-2.0 -lintl -liconv
cp libgtkada.dylib /opt/local/lib/gtkada/relocatable/.
I'd be grateful for any advice on doing it more compatibly.
Thanks,
John
--
John B. Matthews
trashgod at gmail dot com
http://home.roadrunner.com/~jbmatthews/
More information about the gtkada
mailing list