comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: can't compile gtkada program
Date: Wed, 10 Sep 2014 18:35:38 +0200
Date: 2014-09-10T18:35:38+02:00	[thread overview]
Message-ID: <dziojm2uvexv$.cuvge8l6pmhm.dlg@40tude.net> (raw)
In-Reply-To: 6da36d64-9d19-4c55-8557-f103d3a047c7@googlegroups.com

On Wed, 10 Sep 2014 09:19:52 -0700 (PDT), mehdi saada wrote:

> libgtkada-dbg, libgtkada2.24.1-dev, libgtkada2.24.1, libgtkada2-bin
> libgtkada-doc, libgtkada-bin and libgtkada2-doc

This is GTK 2.x. Note that it is outdated and incompatible with GTK 3.x.
But OK.

> Yet Testada can't compile, and the for regex 'libgtkada*'
> gtk.ads exists and is here : /usr/share/ada/adainclude/gtkada/gtk.ads
> But it can't be found.

Do you use gnatmake? With or without a project file?

Without a project file you should use gtkada-config batch that adds all
necessary include and library directories. E.g.

   gnatmake testada.adb `gtkada-config`

It is highly recommended to use project files for anything beyond simple
tests. See

http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html

GtkAda comes with a project file you can refer from your project.

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


  reply	other threads:[~2014-09-10 16:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 14:28 can't compile gtkada program mehdi saada
2014-09-10 15:55 ` Dmitry A. Kazakov
2014-09-10 16:00   ` mehdi saada
2014-09-10 16:19   ` mehdi saada
2014-09-10 16:35     ` Dmitry A. Kazakov [this message]
2014-09-10 19:17       ` Ludovic Brenta
     [not found]         ` <29a73736-5b94-4f43-aa4b-2c111f6159bc@googlegroups.com>
2014-09-13  8:12           ` 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