comp.lang.ada
 help / color / mirror / Atom feed
* GLADE GUI builder version question
@ 2004-03-30  1:14 Keith Brown
  2004-03-30  9:06 ` Poul-Erik Andreasen
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Keith Brown @ 2004-03-30  1:14 UTC (permalink / raw)


All,

I am trying to use the GLADE 2.0.0 GUI builder to build a form and then generate
Ada code. My problem is that the GLADE GUI does not have a check box option for
Ada code generation, only C and C++. My question is, what version of GLADE
should I be using, where can I get it. I am currently running on Linux Mandrake
9.2. The Gnat compiler (V3.15) and Glade-2 rpm's came with the distribution.

Thanks,


-- 
Keith Brown



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

* Re: GLADE GUI builder version question
  2004-03-30  1:14 GLADE GUI builder version question Keith Brown
@ 2004-03-30  9:06 ` Poul-Erik Andreasen
  2004-03-30 18:46 ` Ludovic Brenta
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Poul-Erik Andreasen @ 2004-03-30  9:06 UTC (permalink / raw)


On Mon, 29 Mar 2004 19:14:09 -0600
Keith Brown <kbrown2720@NOSPAMcomcast.net> wrote:

> All,
> 
> I am trying to use the GLADE 2.0.0 GUI builder to build a form and then
> generate Ada code. My problem is that the GLADE GUI does not have a check box
> option for Ada code generation, only C and C++. My question is, what version
> of GLADE should I be using, where can I get it. I am currently running on
> Linux Mandrake

i dont think there is any precompilet version available, you have to patch it
yourself. The patch for this is in the GtkAda source. Somewhere in some
contribution-direktory. It shoulden't make any troble at all.

get at sourcepackcage for Glade mandrake
 
patch it 

buildt it. 

install it.  

-- 
Poul-Erik Andreasen

http://www.linux-service.dk
http://www.pea.dk 



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

* Re: GLADE GUI builder version question
  2004-03-30  1:14 GLADE GUI builder version question Keith Brown
  2004-03-30  9:06 ` Poul-Erik Andreasen
@ 2004-03-30 18:46 ` Ludovic Brenta
  2004-03-31  3:00   ` Keith Brown
  2004-03-31 15:41 ` Poul-Erik Andreasen
  2004-04-14  3:06 ` Andrew Reynolds
  3 siblings, 1 reply; 7+ messages in thread
From: Ludovic Brenta @ 2004-03-30 18:46 UTC (permalink / raw)


Keith Brown <kbrown2720@NOSPAMcomcast.net> writes:

> All,
> 
> I am trying to use the GLADE 2.0.0 GUI builder to build a form and
> then generate Ada code. My problem is that the GLADE GUI does not
> have a check box option for Ada code generation, only C and C++. My
> question is, what version of GLADE should I be using, where can I
> get it. I am currently running on Linux Mandrake 9.2. The Gnat
> compiler (V3.15) and Glade-2 rpm's came with the distribution.

To the best of my knowledge, Mandrake does not seem to have GNAT
3.15p; instead, it has GCC 3.3.1 with Ada support (this is an
experimental version of GNAT, not to be used for anything except
experimentation).  Are you sure you are using 3.15p?  In which case,
where did you get the .rpm files?

As Poul-Erik said, you can apply the GtkAda patch to glade-2, but you
don't have to.  If you can live with a command-line interface, you can
call gate (this, in fact, works well with Makefiles).  Gate generates
the Ada code from the .glade XML file.  It also comes as part of
GtkAda.

Also, if you have more specific questions, you will receive better
help on the GtkAda mailing list; see http://libre.act-europe.fr/GtkAda
to subscribe.

-- 
Ludovic Brenta.



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

* Re: GLADE GUI builder version question
  2004-03-30 18:46 ` Ludovic Brenta
@ 2004-03-31  3:00   ` Keith Brown
  2004-03-31  5:15     ` Ludovic Brenta
  0 siblings, 1 reply; 7+ messages in thread
From: Keith Brown @ 2004-03-31  3:00 UTC (permalink / raw)


Ludovic Brenta wrote:

> Keith Brown <kbrown2720@NOSPAMcomcast.net> writes:
> 
>> All,
>> 
>> I am trying to use the GLADE 2.0.0 GUI builder to build a form and
>> then generate Ada code. My problem is that the GLADE GUI does not
>> have a check box option for Ada code generation, only C and C++. My
>> question is, what version of GLADE should I be using, where can I
>> get it. I am currently running on Linux Mandrake 9.2. The Gnat
>> compiler (V3.15) and Glade-2 rpm's came with the distribution.
> 
> To the best of my knowledge, Mandrake does not seem to have GNAT
> 3.15p; instead, it has GCC 3.3.1 with Ada support (this is an
> experimental version of GNAT, not to be used for anything except
> experimentation).  Are you sure you are using 3.15p?  In which case,
> where did you get the .rpm files?
> 
> As Poul-Erik said, you can apply the GtkAda patch to glade-2, but you
> don't have to.  If you can live with a command-line interface, you can
> call gate (this, in fact, works well with Makefiles).  Gate generates
> the Ada code from the .glade XML file.  It also comes as part of
> GtkAda.
> 
> Also, if you have more specific questions, you will receive better
> help on the GtkAda mailing list; see http://libre.act-europe.fr/GtkAda
> to subscribe.
> 

Ludovic,

Thank you for your response. I believe you are correct that I am running a
product called gcc-gnat 3.3.1-2mdk which is labeled "Ada 95 support for gcc".
This came on the Mandrake distro. I presume also from your response that I
should be using GNAT 3.15p instead. What are the differences?

You answered my next question in your response also 8-)  ... 
I found a newer Glade2-2.0.1 at http://rpmfind.net/ and installed it. I got the
error below when I tried to generate Ada code from Glade-2 after building my
GUI.

------------------------------------
Error running gate to generate the Ada95 source code.
Check that you have gate installed and that it is in your PATH.
Then try running 'gate <project_file.glade>' in a terminal.
------------------------------------

I presume I must install GtkAda first which includes the Gate code for Glade2.
Thanks for your advice. I will download these packages and try to install them.

-- 
Keith Brown



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

* Re: GLADE GUI builder version question
  2004-03-31  3:00   ` Keith Brown
@ 2004-03-31  5:15     ` Ludovic Brenta
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Brenta @ 2004-03-31  5:15 UTC (permalink / raw)


Keith Brown <kbrown2720@NOSPAMcomcast.net> writes:
> Ludovic,
> 
> Thank you for your response. I believe you are correct that I am
> running a product called gcc-gnat 3.3.1-2mdk which is labeled "Ada
> 95 support for gcc".  This came on the Mandrake distro. I presume
> also from your response that I should be using GNAT 3.15p
> instead. What are the differences?

GNAT 3.15p is the latest stable version of GNAT, as released by Ada
Core Technologies.  Although it dates back to October 2002, it works
very well.

In October 2001, ACT merged their GNAT source code into GCC.  GCC
versions 3.1, 3.2 and 3.3 include this code of experimental quality.
In October 2003, ACT did a second merge, and then moved their
day-to-day development to the GCC CVS repository.  GCC 3.4 will
include these changes.  Apart from one major regression (no support
for tasking on powerpc-*-linux, it has some new features but is still
to be considered experimental.

> I presume I must install GtkAda first which includes the Gate code
> for Glade2.  Thanks for your advice. I will download these packages
> and try to install them.

Yes.  If you want to make Ada programs that use GTK, you need the Ada
binding for GTK - that's GtkAda.

Also, each version of GNAT or GCC breaks binary compatibility with
previous versions.  You will need to make sure that libgnat, GtkAda,
and your program are all compiled with the same Ada compiler.  If you
download the binary distribution of GtkAda, you need to check that
that is the case.

-- 
Ludovic Brenta.




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

* Re: GLADE GUI builder version question
  2004-03-30  1:14 GLADE GUI builder version question Keith Brown
  2004-03-30  9:06 ` Poul-Erik Andreasen
  2004-03-30 18:46 ` Ludovic Brenta
@ 2004-03-31 15:41 ` Poul-Erik Andreasen
  2004-04-14  3:06 ` Andrew Reynolds
  3 siblings, 0 replies; 7+ messages in thread
From: Poul-Erik Andreasen @ 2004-03-31 15:41 UTC (permalink / raw)


On Mon, 29 Mar 2004 19:14:09 -0600
Keith Brown <kbrown2720@NOSPAMcomcast.net> wrote:

> All,
> 
> I am trying to use the GLADE 2.0.0 GUI builder to build a form and then
> generate Ada code. My problem is that the GLADE GUI does not have a check box
> option for Ada code generation, only C and C++. My question is, what version
> of GLADE should I be using, where can I get it. I am currently running on
> Linux Mandrake 9.2. The Gnat compiler (V3.15) and Glade-2 rpm's came with the
> distribution.
> 
> Thanks,

A litle ekstra comment. For the time being you are probely better of running
Debian  unstable/testing instead of Mandrake. Ludovic is all to modest to
mention it but he is doing af marveles job making up to date ada-debian
packages. 

Ofcource i am not able to judge if Ada is importent enough for you to considder
a change off distribution.  

 

-- 
Poul-Erik Andreasen

http://www.linux-service.dk
http://www.pea.dk 



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

* Re: GLADE GUI builder version question
  2004-03-30  1:14 GLADE GUI builder version question Keith Brown
                   ` (2 preceding siblings ...)
  2004-03-31 15:41 ` Poul-Erik Andreasen
@ 2004-04-14  3:06 ` Andrew Reynolds
  3 siblings, 0 replies; 7+ messages in thread
From: Andrew Reynolds @ 2004-04-14  3:06 UTC (permalink / raw)


In order to generate Ada code for GLADE GUI you have to "gate" on the 
GLADE project. "gate" is usually built with Gtk-Ada.

Drew

In article <3s-dnUFg8KKtV_XdRVn-gw@comcast.com>,
 Keith Brown <kbrown2720@NOSPAMcomcast.net> wrote:

> All,
> 
> I am trying to use the GLADE 2.0.0 GUI builder to build a form and then 
> generate
> Ada code. My problem is that the GLADE GUI does not have a check box option 
> for
> Ada code generation, only C and C++. My question is, what version of GLADE
> should I be using, where can I get it. I am currently running on Linux 
> Mandrake
> 9.2. The Gnat compiler (V3.15) and Glade-2 rpm's came with the distribution.
> 
> Thanks,



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

end of thread, other threads:[~2004-04-14  3:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-30  1:14 GLADE GUI builder version question Keith Brown
2004-03-30  9:06 ` Poul-Erik Andreasen
2004-03-30 18:46 ` Ludovic Brenta
2004-03-31  3:00   ` Keith Brown
2004-03-31  5:15     ` Ludovic Brenta
2004-03-31 15:41 ` Poul-Erik Andreasen
2004-04-14  3:06 ` Andrew Reynolds

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