comp.lang.ada
 help / color / mirror / Atom feed
* How to write and compile a helloworld.adb gtkada3 application ?
@ 2019-11-01  1:55 Alain De Vos
  2019-11-01  9:42 ` joakimds
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Alain De Vos @ 2019-11-01  1:55 UTC (permalink / raw)


Documentation is not clear.
http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/index.html
Compare it to do documentation of using java swing application ...


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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01  1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
@ 2019-11-01  9:42 ` joakimds
  2019-11-01 10:57   ` Alain De Vos
  2019-11-01 14:08 ` Alain De Vos
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: joakimds @ 2019-11-01  9:42 UTC (permalink / raw)


Den fredag 1 november 2019 kl. 02:55:05 UTC+1 skrev Alain De Vos:
> Documentation is not clear.
> http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/index.html
> Compare it to do documentation of using java swing application ...

Right, the documentation could be better. If you have specific GtkAda questions I recommend posting them on comp.lang.ada, there are at least two GtkAda experts I know of who read the posts published here.

Best regards,
Joakim


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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01  9:42 ` joakimds
@ 2019-11-01 10:57   ` Alain De Vos
  2019-11-01 11:34     ` Dmitry A. Kazakov
  0 siblings, 1 reply; 8+ messages in thread
From: Alain De Vos @ 2019-11-01 10:57 UTC (permalink / raw)


Thanks for the answer. The speficic question I have is :
A hello_world_in_ada_gtk3.adb file and
gcc            someoptions
gnatbuild      someoptions
gnatlink       someoptions

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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01 10:57   ` Alain De Vos
@ 2019-11-01 11:34     ` Dmitry A. Kazakov
  0 siblings, 0 replies; 8+ messages in thread
From: Dmitry A. Kazakov @ 2019-11-01 11:34 UTC (permalink / raw)


On 2019-11-01 11:57, Alain De Vos wrote:
> Thanks for the answer. The speficic question I have is :
> A hello_world_in_ada_gtk3.adb file and
> gcc            someoptions
> gnatbuild      someoptions
> gnatlink       someoptions

It is not the recommended way. Yes, there exists the gtkada-config 
program which generates switches for the compiler and linker. GtkAda 
comes with it. Use gtkada-config this way:

    gcc -c hello_gtk.adb `gtkada-config --cflags`

and gtkada-config --libs is for the linker.

Yet a better way is to use a project file:

with "gtkada.gpr"
project Hello_GTK is
    for Main use ("hello_gtk.adb");
end Hello_GTK;

Then simply run gprbuild -Phello_gtk.gpr. Or open the project in GPS.

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

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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01  1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
  2019-11-01  9:42 ` joakimds
@ 2019-11-01 14:08 ` Alain De Vos
  2019-11-01 18:36   ` Shark8
  2020-01-07  7:13 ` Admin Avatarae
  2020-01-08 13:46 ` mario.blunk.gplus
  3 siblings, 1 reply; 8+ messages in thread
From: Alain De Vos @ 2019-11-01 14:08 UTC (permalink / raw)


On Friday, November 1, 2019 at 2:55:05 AM UTC+1, Alain De Vos wrote:
> Documentation is not clear.
> http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/index.html
> Compare it to do documentation of using java swing application ...
Thank you. I have have a working hello_gtk.
Setting up an environment is not always easy. Here is how I did :
#!/usr/local/bin/zsh
export ADA_PROJECT_PATH=/usr/local/:/usr/local/lib:.:
export PATH=/usr/local/gcc6-aux/bin/:$PATH
rm *.o *.ali ../gtkada ../../include
ln -s /usr/local/include ../..
ln -s /usr/local/lib/gtkada ..
gprbuild -Phello_gtk.gpr


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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01 14:08 ` Alain De Vos
@ 2019-11-01 18:36   ` Shark8
  0 siblings, 0 replies; 8+ messages in thread
From: Shark8 @ 2019-11-01 18:36 UTC (permalink / raw)


Thank you for sharing how you set up your environment.
I haven't done any GTKAda, but I might have to here in the near-/mid-future.


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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01  1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
  2019-11-01  9:42 ` joakimds
  2019-11-01 14:08 ` Alain De Vos
@ 2020-01-07  7:13 ` Admin Avatarae
  2020-01-08 13:46 ` mario.blunk.gplus
  3 siblings, 0 replies; 8+ messages in thread
From: Admin Avatarae @ 2020-01-07  7:13 UTC (permalink / raw)


Am Freitag, 1. November 2019 02:55:05 UTC+1 schrieb Alain De Vos:
> Documentation is not clear.
> http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/index.html
> Compare it to do documentation of using java swing application ...

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

* Re: How to write and compile a helloworld.adb gtkada3 application ?
  2019-11-01  1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
                   ` (2 preceding siblings ...)
  2020-01-07  7:13 ` Admin Avatarae
@ 2020-01-08 13:46 ` mario.blunk.gplus
  3 siblings, 0 replies; 8+ messages in thread
From: mario.blunk.gplus @ 2020-01-08 13:46 UTC (permalink / raw)


On Friday, November 1, 2019 at 2:55:05 AM UTC+1, Alain De Vos wrote:
> Documentation is not clear.
> http://docs.adacore.com/live/wave/gtkada/html/gtkada_ug/index.html
> Compare it to do documentation of using java swing application ...

Have a look at the gtkada examples at
https://github.com/Blunk-electronic/ada_training/tree/master/src

Let me know if something is unclear. Your feedback is highly welcome.


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

end of thread, other threads:[~2020-01-08 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01  1:55 How to write and compile a helloworld.adb gtkada3 application ? Alain De Vos
2019-11-01  9:42 ` joakimds
2019-11-01 10:57   ` Alain De Vos
2019-11-01 11:34     ` Dmitry A. Kazakov
2019-11-01 14:08 ` Alain De Vos
2019-11-01 18:36   ` Shark8
2020-01-07  7:13 ` Admin Avatarae
2020-01-08 13:46 ` mario.blunk.gplus

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