[gtkada] ANNOUNCE: GtkAda 2.2.0 release

T. Kurt Bond tkb at tkb.mpl.com
Sun Jul 6 20:11:34 CEST 2003


Chris Sparks writes:
> No takers on this problem?

I suspect that people are not entirely sure what the problem is from
your description.

Earlier Chris Sparks wrote:

> In looking ant the GTKAda User's Guide it mentions:
>
> The only thing you should specify on the gnatmake command line is 
> where the GtkAda spec files are found, as in:
>
>> gnatmake <main-file> -Ic:\GtkAda\lib
>
> if GtkAda was installed in `c:\GtkAda'.
>
> Since I installed it in C:\GNAT\GTKAda-2.2.0, following this 
> instruction doesn't work.  If I did:
>
> -Ic:\GNAT\GTKAda-2.2.0\include\gtkada
>
> it finds the files for compilation, however, I need to know what is 
> required for linking.  Now I tried to recompile and relink the testgtk 
> program and got an executable.  Strange that I didn't need to say 
> where the ".a" files were.

I'm using GtkAda-2.2.0 installed from the Windows binary release
without any problems under Windows 2000.

On my system GNAT is installed in D:\GNAT and GtkAda is installed in
D:\GtkAda-2.2.0.  D:\GNAT\bin and D:\GtkAda-2.2.0\bin are in my path.
In a gnatmake command I specify the directory where the GtkAda source
and objects are with -Id:/GtkAda-2.2.0/include/gtkada and things
compile fine.  The library files (*.a) are in
d:/GtkAda-2.20/include/gtkada, and gnatmake finds them there
automatically. 

Here's an example transcript:

    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.

    d:\home\tkb\tmp>copy d:\gtkada-2.2.0\share\gtkada\examples\tutorial\table\table* 
    d:\gtkada-2.2.0\share\gtkada\examples\tutorial\table\table.adb
    d:\gtkada-2.2.0\share\gtkada\examples\tutorial\table\table.ads
    d:\gtkada-2.2.0\share\gtkada\examples\tutorial\table\table_test.adb
	    3 file(s) copied.

    d:\home\tkb\tmp>gnatmake -Id:\gtkada-2.2.0\include\gtkada table_test
    gcc -c -Id:\gtkada-2.2.0\include\gtkada table_test.adb
    gcc -c -Id:\gtkada-2.2.0\include\gtkada table.adb
    gnatbind -aO./ -aOd:\gtkada-2.2.0\include\gtkada -I- -x table_test.ali
    gnatlink table_test.ali

    d:\home\tkb\tmp>.\table_test
    Hello again - button 1 was pressed
    Hello again - button 2 was pressed
    Quitting - Button Pressed

    d:\home\tkb\tmp>

BTW, if you are using a Unix-like shell (Cygwin or MSYS) under windows
you can use the gtkada-config script (which is in the
D:\GtkAda-2.2.0\bin directory onmy system) just like you would under
Unix, once you've changed the "prefix=" line at the beginning to point
to the type level GtkAda directory.  For instance, I changed it to

    prefix=d:/GtkAda-2.2.0

and am using it with MSYS so that my makefiles can be the same on Unix
and Windows.
-- 
T. Kurt Bond, tkb at tkb.mpl.com




More information about the gtkada mailing list