comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Re: gtkada.gpr usage
Date: Mon, 17 Dec 2012 05:36:22 +0100
Date: 2012-12-17T05:36:22+01:00	[thread overview]
Message-ID: <50ce9fa5$0$17411$703f8584@news.kpn.nl> (raw)
In-Reply-To: <mjh9nsr3ncah$.1eq83ckmyzcwl.dlg@40tude.net>

I did again install the Gtkada library and saw that I got the following 
error in the detail window:
collect2: ld returned 1 exit status
gnatmake: gcc execution error
It was further told that the installation of the files was complete but the 
building of the libraries was not complete.
I therefor installed GPS again and got when reinstalling Gtkada the same 
error again.
Checked if the ali files were present in the lib/gnat directory and found 
they were present.
Changing static to relocatable in the gtkada.gpr file did not change the 
outcome
If I merge the gtkada.gpr with my own gpr and include the source directory 
of Gtkada the program is compiled coorectly.
So my problem stays what did I do wrong with original methode?

"Dmitry A. Kazakov"  schreef in bericht 
news:mjh9nsr3ncah$.1eq83ckmyzcwl.dlg@40tude.net...

On Sun, 16 Dec 2012 14:45:14 +0100, ldries46 wrote:

> Various times I tried after recommendation by others to include the "with
> gtkada statement in my project file (with GNAT programming studio)
> Every time I do get error message like this:
>
> gnatmake -d -PE:\ada\project\Algemeen\Algemeen.gpr -XLIBRARY_TYPE=static
> Algemeen.adb -j4 -s
> gnatbind -I- -x E:\ada\project\Algemeen\build\algemeen.ali
> error: "gtk.ali" not found, "gtk.ads" must be compiled
> error: "glib.ali" not found, "glib.adb" must be compiled
> gnatmake: *** bind failed.

What happens when you link dynamically? It does not make much sense to link
GtkAda statically since Gtk is linked dynamically anyway. And static
linking to GtkAda posed problems in the past.

> My GNAT GPS installation is on D:\Program files\GNAT\ 2012 and my
> GtkADA installation is on D:\program files\GNAT\GtkADA
> I do use GPR_PROJECT_PATH with the value D:\Program
> Files\2012\lib\gnat;D:\Program Files\GNAT\Gtkada\lib\gnat;
> The files are present in the directory D:\Program
> Files\GNAT\Gtkada\lib\gnat.

It is not the project path but missing compiled instances of GtkAda which
make trouble in your case. GtkAda (under Windows) is compiled when you
install it.

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




  reply	other threads:[~2012-12-17  4:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16 13:45 gtkada.gpr usage ldries46
2012-12-16 14:37 ` Dmitry A. Kazakov
2012-12-17  4:36   ` ldries46 [this message]
2012-12-17  8:28     ` Dmitry A. Kazakov
2012-12-17 16:40       ` ldries46
2012-12-17 17:22       ` J-P. Rosen
2012-12-18  0:19         ` Randy Brukardt
2012-12-18 11:45           ` ldries46
replies disabled

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