From: Brian Drummond <brian3@shapes.demon.co.uk>
Subject: Re: Test method 1. simple hello world graphical window.
Date: Wed, 15 Oct 2014 09:39:04 GMT
Date: 2014-10-15T09:39:04+00:00 [thread overview]
Message-ID: <Ygr%v.417459$b_1.42056@fx10.fr7> (raw)
In-Reply-To: B1b%v.374072$Uk5.48456@fx23.fr7
On Tue, 14 Oct 2014 15:10:25 +0000, Phil wrote:
> Test method 1. On the Rosetta code website, I used the simple hello
> world graphical window.
>
> Does not compile!
> Screenshot of the error messages are linked in a PDF file on this link:
> https://dl.dropboxusercontent.com/u/479487/
> compile_rosetta_ADA_simple_window.pdf
Not sure about this one from within gps, but compiling from the command
line you usually need to run gtkada-config to set up paths so that
[gnatmake|gprbuild] can find the GTKAda files on your installation.
For example :
gnatmake your_main_program.adb $(gtkada-config)
or
gnatmake -P your_project.gpr $(gtkada-config)
In my installation at the time I took these notes, running gtkada-config
at the command line gave:
gtkada-config
-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 -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 -lpango-1.0 -
lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
which should let the build find the sources in the right place.
Don't know how to set up gps the same way, but maybe somebody does...
- Brian
next prev parent reply other threads:[~2014-10-15 9:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-14 15:07 Ubuntu - Correclty downloading & installing Adacore files - but graphics not working Phil
2014-10-14 15:10 ` Test method 1. simple hello world graphical window Phil
2014-10-14 15:21 ` Phil
2014-10-15 9:39 ` Brian Drummond [this message]
2014-10-15 10:11 ` Dmitry A. Kazakov
2014-10-14 15:12 ` Test method 2. GPS project from template – gtkada simple window Phil
2014-10-14 15:22 ` Phil
2014-10-14 15:37 ` Test method 1. simple hello world graphical window Phil
2014-10-14 15:38 ` Test method 2. GPS project from template – gtkada simple window Phil
2014-10-14 19:32 ` Ubuntu - Correclty downloading & installing Adacore files - but graphics not working 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