comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda on Windows: Does anyone have a gtkada.gpr file?
Date: Mon, 18 Oct 2010 09:50:16 +0200
Date: 2010-10-18T09:50:15+02:00	[thread overview]
Message-ID: <19e597vj3gojp.1t2ys58wl8lj7$.dlg@40tude.net> (raw)
In-Reply-To: f736e99b-4094-4698-875b-a2031fd6384c@g28g2000pra.googlegroups.com

On Sun, 17 Oct 2010 14:32:25 -0700 (PDT), Michael R wrote:

> I've just starting to look at GtkAda on Windows.  My Ubuntu system
> makes it relatively
> easy by supplying a gtkada2.gpr project file.

Yep, instead of gtkada.gpr they invented gtkada2.gpr. When I use Fedora's
GtkAda I add my own gtkada.gpr and some other gpr files to keep it
consistent.

But since GNAT FSF for Fedora/Ubuntu is quite broken anyway, I would not
worry about that in your place. You better use GNAT GPL 2010 for Linux and
its GtkAda instead. BTW, the Fedora GtkAda is also outdated, when I checked
it last time. In particular pixbuf was not an gobject, if I correctly
remember. That is very nasty incompatibility. In short, see above, do not
use it.

> The standard GtkAda distribution does
> not supply a project file.

No it does. That is C:\GtkAda\lib\gnat

> The documentation suggest simply add
> 
>    -IC:\GtkAda\include\gtkada
> 
> to a "gnatmake" command line is all that is needed.  This is failing
> for the simple.adb example:

[..link errors...]

> I guess I'm obviously missing something here.  Anyone have any
> suggestions?

1. If you are going to link using naked gnatmake, you have to add options
to the linker, like -lgtk-win32-2.0 (and whatever, the list is long).

2. If you want to use gtkada.gpr, which is preferable of course, you need
to make it available. There are many ways. One is to integrate it into the
GNAT, like win32ada is. That is a bit complicated. A simpler one is to just
add C:\GtkAda\lib\gnat to the ADA_PROJECT_PATH environment variable.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2010-10-18  7:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-17 21:32 GtkAda on Windows: Does anyone have a gtkada.gpr file? Michael R
2010-10-18  7:30 ` Rick
2010-10-18  7:50 ` Dmitry A. Kazakov [this message]
2010-10-18 12:43   ` Ludovic Brenta
2010-10-18 13:32     ` Georg Bauhaus
2010-10-18 15:32       ` Ludovic Brenta
2010-10-18 13:49     ` Dmitry A. Kazakov
2010-10-18 15:40       ` Ludovic Brenta
2010-10-18 16:43         ` Dmitry A. Kazakov
2010-10-18 17:04           ` Ludovic Brenta
2010-10-18 19:38           ` Simon Wright
2010-10-18 19:41           ` Bug in gnat-4.4 (was: GtkAda on Windows: Does anyone have a gtkada.gpr file?) Ludovic Brenta
2010-10-18 20:29             ` Bug in gnat-4.4 Dmitry A. Kazakov
2010-10-18 20:38               ` Ludovic Brenta
2010-10-19  6:36                 ` Michael R
2010-10-19  7:24                 ` Dmitry A. Kazakov
2010-10-22 19:41                 ` Bug in gnat-4.4, revisited Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox