From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin1!goblin.stu.neva.ru!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: GNAT linker error Date: Sun, 25 Jan 2015 23:25:26 +0100 Organization: A noiseless patient Spider Message-ID: <87zj96jy5l.fsf@ludovic-brenta.org> References: <63e1488a-6a1b-46e7-8984-240faef1fc67@googlegroups.com> <56f894df-2559-492b-a030-3176269dbf53@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="13a73562df4d4e046276fd3c9363a6d1"; logging-data="16636"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+12YMIJUwi8lIKxwAb/T8l" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:fqtPr3vS6fLX8403PoH3aro29Lg= sha1:5odtrjbaF1XTGDM56OEqvpPAxqs= Xref: number.nntp.giganews.com comp.lang.ada:192047 Date: 2015-01-25T23:25:26+01:00 List-Id: 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.