comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: GNAT linker error
Date: Sun, 25 Jan 2015 23:25:26 +0100
Date: 2015-01-25T23:25:26+01:00	[thread overview]
Message-ID: <87zj96jy5l.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 56f894df-2559-492b-a030-3176269dbf53@googlegroups.com

hosszu.gabor90 writes on comp.lang.ada:
> gtkada-config output:
> -aI/usr/share/ada/adainclude/gtkada
> -aO/usr/lib/x86_64-linux-gnu/ada/adalib/gtkada -largs
> -L/usr/lib/x86_64-linux-gnu -lgtkada -L/usr/lib/x86_64-linux-gnu
> -lgmodule-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0
> -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lfontconfig
> -lfreetype -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lX11 -lm
>
> Dmitry, you are right, there is a with, more precisely:
> with "/usr/share/ada/adainclude/gtkada.gpr";
> All the stuff I use is from Linux Mint repo - I mean it is the version
> that repo provides. Should I really get some newer stuff? If I added
> it using some packages ot would create dozens of dependency problems -
> may I compile Gtk, etc... from source? (by the way you re right, I
> just want to learn Ada + GTK :)
>
> It is strange that using GPS 5 (from Linux Mint repo) everything
> worked AND doing it manually (just typing it into a terminal) it also
> worked.
>
> Jeff, I dont have a support contract - the newest GPS can be
> downloaded from the site of Adacore (free of charge).

The problem appears to be caused neither by your use of the Mint
packages (even though they are outdated compared to the ones in Debian
testing) nor by GPS.  The file /usr/share/ada/adainclude/gtkada.gpr,
which I wrote, is not at fault either since not all GtkAda programs will
require libpixman-1.

It looks like, in addition to GtkAda and the listed libraries, this
particular program also requires pixman.  Therefore you need to:

aptitude install libpixman-1-dev

and add the following to your project file:

with "gtkada.gpr";
project AdaTest is
   -- existing stuff here
   package Linker is
      for Linker_Options use ("-lpixman-1");
   end Linker;
end AdaTest;

Or, alternatively, call gnatmake like this:

gnatmake -d "-P/home/myuser/own projects/ada/AdaTest.gpr" -vP2 -j4 -g -largs -lpixman-1

Hope this helps

--
Ludovic Brenta.


  reply	other threads:[~2015-01-25 22:25 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
2015-01-25 16:27 ` Jeffrey Carter
2015-01-25 21:56 ` hosszu.gabor90
2015-01-25 22:25   ` Ludovic Brenta [this message]
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