comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GNAT linker error
Date: Sun, 25 Jan 2015 15:35:01 +0100
Date: 2015-01-25T15:35:01+01:00	[thread overview]
Message-ID: <1jku6ojzl4vi4.ndzc5pnnk5l6.dlg@40tude.net> (raw)
In-Reply-To: 63e1488a-6a1b-46e7-8984-240faef1fc67@googlegroups.com

On Sun, 25 Jan 2015 01:45:53 -0800 (PST), hosszu.gabor90@gmail.com wrote:

> I get the following if I try to compile the GtkAda minimal example of GNAT
> Programming Studio 6.1.0w:
[...]
> gnatlink: error when calling /usr/bin/gcc-4.6
> 
> The command executed by GPS:
> 
> gnatmake -d -P/home/myuser/own projects/ada/AdaTest.gpr -vP2 -j4 -g
 
> The same command works if I try it from a terminal and it also worked in
> GPS 5.0 (which executed the same command as the newest, 6.1.0w) What can
> cause this and how can I make GPS work?

Assuming that the project file AdaTest.gpr has "with gtkada.gpr" 
referenced, it is likely a GNAT-GtkAda-GTK configuration problem, because 
it must reference all libraries needed. But it seems that pixman is not 
there. It might be a version mismatch between cairo you have and cairo 
GtkAda expects. If you run

$ gtkada-config

you will see the include paths and libraries GtkAda uses.

Furthermore, you are using a very outdated stuff. The actual version of 
GNAT is 4.9, the actual version of GTK is 3.8.

E.g. gtkada-config output on Fedora 21 (GtkAda3-devel-3.8.2-2.fc21.x86_64):

-aI/usr/include/gtkada -aO/usr/lib64/gtkada/relocatable -largs 
-L/usr/lib64/gtkada/relocatable -lgtkada -Wl,--as-needed -lgtk-3 -lgdk-3 
-lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo 
-lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 
-pthread -lglib-2.0

No pixman as well.

P.S. There was a big incompatibility leap from GTK 2.x to GTK 3.x. If you 
want to learn GTK and GtkAda, better start with 3.8.

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

  parent reply	other threads:[~2015-01-25 14:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-25  9:45 GNAT linker error hosszu.gabor90
2015-01-25 10:27 ` Simon Wright
2015-01-25 12:29 ` hosszu.gabor90
2015-01-25 13:37   ` Simon Clubley
2015-01-25 14:35 ` Dmitry A. Kazakov [this message]
2015-01-25 16:27 ` Jeffrey Carter
2015-01-25 21:56 ` hosszu.gabor90
2015-01-25 22:25   ` Ludovic Brenta
2015-01-25 22:02 ` hosszu.gabor90
2015-01-25 23:15 ` hosszu.gabor90
2015-01-26  9:42   ` Dmitry A. Kazakov
     [not found] <33f8d552.50571683@news.alt.net>
1997-08-27  0:00 ` Gnat " Jerry van Dijk
  -- strict thread matches above, loose matches on Subject: below --
1997-07-31  0:00 Danny
replies disabled

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