[gtkada] GtkAda on Mac OS X
Nicolas Setton
setton at adacore.com
Thu May 7 00:41:34 CEST 2009
Hello John,
> 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
this is a pretty good achievement in itself :-)
>
> 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.
our production environment at AdaCore is a bit different - we build
for x86_64 and not x86, we are currently qualifying with Gtk+ 2.14.5
and not 2.14.7 and, more importantly, we do not use Macports at all,
(we build Gtk+ and all of the dependencies manually with our specific
options), so we are not sure that any modification we make would be of
use to you.
On the other hand, if you have a small patch to suggest to the
configure (or, rather, aclocal.m4) or Makefiles in GtkAda that would
save you from doing a manual build of the dylib, we would be happy to
test it: if it does not break our regression testsuite, we'll apply it
to the subversion tree and maintain it so that it works out-of-the-box
with Macports.
Best regards,
Nicolas
More information about the gtkada
mailing list