* libgtkada2.14.2 on Ubuntu 10.04
@ 2010-09-23 18:39 John B. Matthews
2010-09-23 20:06 ` Ludovic Brenta
0 siblings, 1 reply; 5+ messages in thread
From: John B. Matthews @ 2010-09-23 18:39 UTC (permalink / raw)
In preparation for porting a GtkAda application to Linux using
libgtkada2.14.2-1, I tried a simple example [1] on Ubuntu 10.04.1.
I was surprised to see this
$ gtkada-config --cflags
-aI/usr/share/ada/adainclude/gtkada2.14.2 \
-aO/usr/lib/ada/adalib/gtkada2.14.2
when the actual locations are these
/usr/share/ada/adainclude/gtkada2
/usr/share/ada/adainclude/gtkada2
Now that I look, it's been fixed [2], but I'm not sure of the best way
to resolve the problem: add another repository or just edit
gtkada-config.
Sorry of this is off topic.
[1]<http://home.roadrunner.com/~jbmatthews/gtk/lady.html>
[2]<https://bugs.launchpad.net/ubuntu/+source/libgtkada2/+bug/627059>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libgtkada2.14.2 on Ubuntu 10.04
2010-09-23 18:39 libgtkada2.14.2 on Ubuntu 10.04 John B. Matthews
@ 2010-09-23 20:06 ` Ludovic Brenta
2010-09-24 0:42 ` John B. Matthews
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Brenta @ 2010-09-23 20:06 UTC (permalink / raw)
John B. Matthews writes on comp.lang.ada:
> In preparation for porting a GtkAda application to Linux using
> libgtkada2.14.2-1, I tried a simple example [1] on Ubuntu 10.04.1.
>
> I was surprised to see this
>
> $ gtkada-config --cflags
> -aI/usr/share/ada/adainclude/gtkada2.14.2 \
> -aO/usr/lib/ada/adalib/gtkada2.14.2
>
> when the actual locations are these
>
> /usr/share/ada/adainclude/gtkada2
> /usr/share/ada/adainclude/gtkada2
>
> Now that I look, it's been fixed [2], but I'm not sure of the best way
> to resolve the problem: add another repository or just edit
> gtkada-config.
Is it impractical for you to use GNAT project files? The Debian
compiler is patched so that
with "gtkada";
project Example is
for Main use ("example");
end Example;
will work out of the box; see the file
/usr/share/ada/adainclude/gtkada.gpr.
Another option, of course, is to ditch the man in the middle (Ubuntu)
and go straight to the source of the correct package: Debian.
--
Ludovic Brenta.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libgtkada2.14.2 on Ubuntu 10.04
2010-09-23 20:06 ` Ludovic Brenta
@ 2010-09-24 0:42 ` John B. Matthews
2010-09-24 6:08 ` Ludovic Brenta
0 siblings, 1 reply; 5+ messages in thread
From: John B. Matthews @ 2010-09-24 0:42 UTC (permalink / raw)
In article <87eick8bti.fsf@ludovic-brenta.org>,
Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:
> John B. Matthews writes on comp.lang.ada:
> > In preparation for porting a GtkAda application to Linux using
> > libgtkada2.14.2-1, I tried a simple example [1] on Ubuntu 10.04.1.
> >
> > I was surprised to see this
> >
> > $ gtkada-config --cflags
> > -aI/usr/share/ada/adainclude/gtkada2.14.2 \
> > -aO/usr/lib/ada/adalib/gtkada2.14.2
> >
> > when the actual locations are these
> >
> > /usr/share/ada/adainclude/gtkada2
> > /usr/share/ada/adainclude/gtkada2
Oops, I meant "/usr/lib/ada/adalib/gtkada2".
> > Now that I look, it's been fixed [2], but I'm not sure of the best
> > way to resolve the problem: add another repository or just edit
> > gtkada-config.
>
> Is it impractical for you to use GNAT project files? The Debian
> compiler is patched so that
>
> with "gtkada";
> project Example is
> for Main use ("example");
> end Example;
>
> will work out of the box; see the file
> /usr/share/ada/adainclude/gtkada.gpr.
Excellent! It works well; thanks. Am I correct that 'with "gtkada"'
refers to /usr/share/ada/adainclude/gtkada.gpr itself?
with "gtkada2";
project lady is
for Object_Dir use "obj";
for Exec_Dir use ".";
for Main use ("main");
end lady;
> Another option, of course, is to ditch the man in the middle (Ubuntu)
> and go straight to the source of the correct package: Debian.
Tempting.
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libgtkada2.14.2 on Ubuntu 10.04
2010-09-24 0:42 ` John B. Matthews
@ 2010-09-24 6:08 ` Ludovic Brenta
2010-09-25 19:20 ` John B. Matthews
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Brenta @ 2010-09-24 6:08 UTC (permalink / raw)
"John B. Matthews" writes:
>> Is it impractical for you to use GNAT project files? The Debian
>> compiler is patched so that
>>
>> with "gtkada";
>> project Example is
>> for Main use ("example");
>> end Example;
>>
>> will work out of the box; see the file
>> /usr/share/ada/adainclude/gtkada.gpr.
>
> Excellent! It works well; thanks. Am I correct that 'with "gtkada"'
> refers to /usr/share/ada/adainclude/gtkada.gpr itself?
Yes, correct. When I said the compiler was patched, it was so that it
looked in that directory, by default, for project files.
The big advantage of Debian is that it requires that each library
provide such a project file; thus it is trivial to use all libraries
that you need in the same program: simply add more with clauses to your
project.
--
Ludovic Brenta.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libgtkada2.14.2 on Ubuntu 10.04
2010-09-24 6:08 ` Ludovic Brenta
@ 2010-09-25 19:20 ` John B. Matthews
0 siblings, 0 replies; 5+ messages in thread
From: John B. Matthews @ 2010-09-25 19:20 UTC (permalink / raw)
In article <8739sz8yi6.fsf@ludovic-brenta.org>,
Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:
> "John B. Matthews" writes:
> >> Is it impractical for you to use GNAT project files? The Debian
> >> compiler is patched so that
> >>
> >> with "gtkada";
> >> project Example is
> >> for Main use ("example");
> >> end Example;
> >>
> >> will work out of the box; see the file
> >> /usr/share/ada/adainclude/gtkada.gpr.
> >
> > Excellent! It works well; thanks. Am I correct that 'with "gtkada"'
> > refers to /usr/share/ada/adainclude/gtkada.gpr itself?
>
> Yes, correct. When I said the compiler was patched, it was so that
> it looked in that directory, by default, for project files.
Ah, I see what you mean:
$ gnatls -v
GNATLS 4.4.3
...
Project Search Path:
<Current_Directory>
/usr/share/ada/adainclude/
$ ls -l /usr/share/ada/adainclude/
total 32
drwxr-xr-x 2 root root 28672 2010-09-23 12:57 gtkada2
-rw-r--r-- 1 root root 588 2010-04-28 00:13 gtkada2.gpr
lrwxrwxrwx 1 root root 44 2010-05-17 09:44 rts-sjlj -> ...
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-25 19:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 18:39 libgtkada2.14.2 on Ubuntu 10.04 John B. Matthews
2010-09-23 20:06 ` Ludovic Brenta
2010-09-24 0:42 ` John B. Matthews
2010-09-24 6:08 ` Ludovic Brenta
2010-09-25 19:20 ` John B. Matthews
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox