comp.lang.ada
 help / color / mirror / Atom feed
* can't compile gtkada program
@ 2014-09-10 14:28 mehdi saada
  2014-09-10 15:55 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 7+ messages in thread
From: mehdi saada @ 2014-09-10 14:28 UTC (permalink / raw)


Hello everyone.
It's and old hindrance from mine, that I don't success installing the gtkada library. I am a first year student in computer science, yet in the inception of the year. So I am not very skilled yet ...
So, just please assist me till I can work on Ada.
Here is what I did : get gtkada and gnat tarballs, detar them,
run "./doinstall" in gnat directory, correct $PATH, then run "su; ./configure; make; make install; make clean" in gtkada directory.
Then I tried to compile testada, which depends on gtk.ads, and it said that there is no such files, while it is there : /usr/local/include/gtkada/gtk.ads
What should I do for gnat/gnatmake to find this file, and probably the rest of the library ?

Mehdi


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
  2014-09-10 14:28 can't compile gtkada program mehdi saada
@ 2014-09-10 15:55 ` Dmitry A. Kazakov
  2014-09-10 16:00   ` mehdi saada
  2014-09-10 16:19   ` mehdi saada
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitry A. Kazakov @ 2014-09-10 15:55 UTC (permalink / raw)


On Wed, 10 Sep 2014 07:28:35 -0700 (PDT), mehdi saada wrote:

> Here is what I did : get gtkada and gnat tarballs, detar them,
> run "./doinstall" in gnat directory, correct $PATH, then run "su;
> ./configure; make; make install; make clean" in gtkada directory.
> Then I tried to compile testada, which depends on gtk.ads, and it said
> that there is no such files, while it is there :
> /usr/local/include/gtkada/gtk.ads
> What should I do for gnat/gnatmake to find this file, and probably the rest of the library ?

To put it short it is quite difficult to compile GtkAda from sources under
Linux and practically impossible under Windows.

Save your time and get a pre-packaged GtkAda distribution for your system,
which are available for many platforms (e.g. for Fedora, Debian, Windows).

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
  2014-09-10 15:55 ` Dmitry A. Kazakov
@ 2014-09-10 16:00   ` mehdi saada
  2014-09-10 16:19   ` mehdi saada
  1 sibling, 0 replies; 7+ messages in thread
From: mehdi saada @ 2014-09-10 16:00 UTC (permalink / raw)


Ok, but gtkada is already partly installed ... how do I remove it ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
  2014-09-10 15:55 ` Dmitry A. Kazakov
  2014-09-10 16:00   ` mehdi saada
@ 2014-09-10 16:19   ` mehdi saada
  2014-09-10 16:35     ` Dmitry A. Kazakov
  1 sibling, 1 reply; 7+ messages in thread
From: mehdi saada @ 2014-09-10 16:19 UTC (permalink / raw)


OK. My system is based on debian. I installed 
libgtkada-dbg, libgtkada2.24.1-dev, libgtkada2.24.1, libgtkada2-bin  libgtkada-doc, libgtkada-bin and libgtkada2-doc
Yet Testada can't compile, and the for regex 'libgtkada*'
gtk.ads exists and is here : /usr/share/ada/adainclude/gtkada/gtk.ads
But it can't be found.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
  2014-09-10 16:19   ` mehdi saada
@ 2014-09-10 16:35     ` Dmitry A. Kazakov
  2014-09-10 19:17       ` Ludovic Brenta
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry A. Kazakov @ 2014-09-10 16:35 UTC (permalink / raw)


On Wed, 10 Sep 2014 09:19:52 -0700 (PDT), mehdi saada wrote:

> libgtkada-dbg, libgtkada2.24.1-dev, libgtkada2.24.1, libgtkada2-bin
> libgtkada-doc, libgtkada-bin and libgtkada2-doc

This is GTK 2.x. Note that it is outdated and incompatible with GTK 3.x.
But OK.

> Yet Testada can't compile, and the for regex 'libgtkada*'
> gtk.ads exists and is here : /usr/share/ada/adainclude/gtkada/gtk.ads
> But it can't be found.

Do you use gnatmake? With or without a project file?

Without a project file you should use gtkada-config batch that adds all
necessary include and library directories. E.g.

   gnatmake testada.adb `gtkada-config`

It is highly recommended to use project files for anything beyond simple
tests. See

http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html

GtkAda comes with a project file you can refer from your project.

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
  2014-09-10 16:35     ` Dmitry A. Kazakov
@ 2014-09-10 19:17       ` Ludovic Brenta
       [not found]         ` <29a73736-5b94-4f43-aa4b-2c111f6159bc@googlegroups.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Brenta @ 2014-09-10 19:17 UTC (permalink / raw)


"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> On Wed, 10 Sep 2014 09:19:52 -0700 (PDT), mehdi saada wrote:
>
>> libgtkada-dbg, libgtkada2.24.1-dev, libgtkada2.24.1, libgtkada2-bin
>> libgtkada-doc, libgtkada-bin and libgtkada2-doc
>
> This is GTK 2.x. Note that it is outdated and incompatible with GTK 3.x.
> But OK.
>
>> Yet Testada can't compile, and the for regex 'libgtkada*'
>> gtk.ads exists and is here : /usr/share/ada/adainclude/gtkada/gtk.ads
>> But it can't be found.
>
> Do you use gnatmake? With or without a project file?

A project file is provided and includes instructions; see
/usr/share/doc/libgtkada-doc/README.Debian.

-- 
Ludovic Brenta.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: can't compile gtkada program
       [not found]         ` <29a73736-5b94-4f43-aa4b-2c111f6159bc@googlegroups.com>
@ 2014-09-13  8:12           ` Dmitry A. Kazakov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry A. Kazakov @ 2014-09-13  8:12 UTC (permalink / raw)


On Fri, 12 Sep 2014 14:56:46 -0700 (PDT), mehdi saada wrote:

> I include /usr/share/ada/adainclude and all its subdirectories into the
> source directories in GPS, then placed myself into /testada/, then build.

[...]

You must use project files as described in the documentation or else not
use them. See Ludovic's post.

When projects are used, the GtkAda project file must be referenced from
your project. I don't remember how it was named in 2.24 (gtkada.gpr?). Your
project must start with:

   with "gtkada.gpr";
   project ...

And, never edit project files using GPS, otherwise than in its text edit
window. [ Right mouse click on the project in the project view -> Edit
source file. ]

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-13  8:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-10 14:28 can't compile gtkada program mehdi saada
2014-09-10 15:55 ` Dmitry A. Kazakov
2014-09-10 16:00   ` mehdi saada
2014-09-10 16:19   ` mehdi saada
2014-09-10 16:35     ` Dmitry A. Kazakov
2014-09-10 19:17       ` Ludovic Brenta
     [not found]         ` <29a73736-5b94-4f43-aa4b-2c111f6159bc@googlegroups.com>
2014-09-13  8:12           ` Dmitry A. Kazakov

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