[gtkada] Building GtkAda git master on OpenSuSE Tumbleweed

Oliver Kellogg oliver.kellogg at t-online.de
Tue Aug 16 20:16:23 CEST 2016


> Seems like you might want to simply use
> 
>    ./configure --without-GL  --prefix=...

Yes indeed, thanks for the hint.

Also, due to a posting by Simon Wright on comp.lang.ada I realized that gprbuild is on GitHub.
Next time, I will try building that instead of resorting to the GPL distro.

Oliver


-----Original Message-----
Subject: Re: [gtkada] Building GtkAda git master on OpenSuSE Tumbleweed
Date: 2016-08-16T14:55:27+0200
From: "Emmanuel Briot" <briot at adacore.com>
To: "Oliver Kellogg" <oliver.kellogg at t-online.de>

> Since I am not using the Gtk openGL stuff I got adventurous and made the following change (hack alert!)

Seems like you might want to simply use

   ./configure --without-GL  --prefix=...

when you configure, to disable openGL support altogether, rather than the "hack" you just did.


> With that change, compilation proceeded for a while but then I got another error:
> 
> gcc -shared -o /home/okellogg/tools/gtkada/src/lib/gtkada/relocatable/libgtkada.so.17.0w ... @/home/okellogg/tools/gtkada/src/obj/gtkada/relocatable/GNAT-TEMP-000006.TMP
> /usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: cannot find -lgnat-6.1
> collect2: error: ld returned 1 exit status
> gprlib: /usr/bin/gcc execution error
> gprbuild: could not build library for project gtkada
> make: *** [Makefile:85: build_library_type/relocatable] Error 4
> 
> I guess that is a missing soft link in openSuSE's GNAT installation:

Seems like an installation issue here.

> Again in shared.gpr at Gtk_Libs I added "-lX11" and then the build went successful.

Strange that this would not be included by pkg-config, though. We cannot hard-code this in
GtkAda, since gtk+ doesn't depend on X11 for all supported systems.

Thanks for the feedback

Emmanuel




More information about the gtkada mailing list