comp.lang.ada
 help / color / mirror / Atom feed
* Building GtkAda [with OpenGL] on Windows [XP]
@ 2009-12-18 14:52 Antoine Heijde, van der
  2009-12-18 22:42 ` Rick
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Heijde, van der @ 2009-12-18 14:52 UTC (permalink / raw)


Hello All,

I tried to compile the GtkAda testgtk application with the OpenGL
example but it looks like that I am missing the OpenGL binding which
should be used: Packages used in the file /testgtk/opengl/view_gl.adb

    * gl_h
    * Gdk.GL
    * glu_h
    * Gtk.GLArea

So I guess I have to build GtkAda from source.

So I got the files by SVN and installed MinGW[5.1.6] and MSYS
[1.0.11].

Also installed the GTK+ files for windows [2.14.7 bundle].

Reading the INSTALL file from GtkAda:
$ (cd src; patch -p0 < ../contrib/gtkada-2.10-win32.diff)
I did this.

  $ CC='gcc-3.2 -mms-bitfields' ./configure --prefix=<install_dir> --
build=i386-pc-mingw32
Can I use gcc instead of gcc-3.2, because the last is not found.

First tried to build as standaard without OpenGL turned on, and used
the gcc command.
Running $ CC='gcc -mms-bitfields' ./configure --prefix=c:/gtkada --
build=i386-pc-mingw32

Then I am getting the following output:
$ CC='gcc -mms-bitfields' ./configure --prefix=c:/gtkada --build=i386-
pc-mingw32
checking build system type... i386-pc-mingw32
checking host system type... i386-pc-mingw32
checking target system type... i386-pc-mingw32
./configure: line 1401: cygpath: command not found
ls: libgnat*.dll: No such file or directory
ls: libgnat*.dll: No such file or directory
checking for merge... true
checking for diff... /bin/diff
checking for the correct diff option... -u
checking for patch... /bin/patch
checking for the correct patch option... -f
checking for gcc... gcc -mms-bitfields
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -mms-bitfields accepts -g... yes
checking for gcc -mms-bitfields option to accept ANSI C... none needed
checking for gnatmake... /c/GNAT/2009/bin/gnatmake
checking that your gnat compiler works with a simple example... yes
checking for perl5... no
checking for perl... /c/Program Files/Git/bin/perl
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for pkg-config... /c/opt/gtk/bin/pkg-config
checking for GTK - version >= 2.2.0... yes
checking for PANGO_UNDERLINE_ERROR... yes
checking whether NLS is requested... yes
checking for gettext in libc... no
checking for bindtextdomain in -lintl... no
checking for OpenGL... no
checking for Mesa... no
checking Mesa with pthreads... no
*** OpenGL support will not be integrated into GtkAda ***
checking for libglade2... no
checking for gnome2... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile.common
config.status: creating src/Makefile
config.status: creating src/tools/gtkada-config
config.status: creating src/tools/gate
config.status: creating src/tools/Makefile
config.status: creating testgtk/Makefile
config.status: creating src/gtkextra/Makefile
config.status: creating src/opengl/Makefile
config.status: creating src/glade/Makefile
config.status: creating src/gnome/Makefile
config.status: creating docs/gtkada_ug/Makefile
config.status: creating docs/gtkada_rm/Makefile
config.status: creating po/Makefile
config.status: creating src/config.h
config.status: creating projects/gtkada.pc
config.status: creating projects/gtkada_install_dynamic.gpr

Problems seems to be:
./configure: line 1401: cygpath: command not found
ls: libgnat*.dll: No such file or directory
ls: libgnat*.dll: No such file or directory
But no idea how to fix this.

What I have after this when I do "make" compiling is ok, only the
linking is failing with a lot of "undefined references".

So something is wrong. Did I miss a step or should I defined some
environmental variables?

Thanks in advance!

PS I first had a problem that the PATH was not set correctly. For the
GTK version check I got an error about msvcr80.dll missing when the
builded application conftest started. But placing the GTK+ bin files
location first [c:\opt\gtk\bin] solved the problem.

PS2 why is the OpenGL binding not included in the GtkAda installation
for Windows?

Best regards,
Antoine



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

* Re: Building GtkAda [with OpenGL] on Windows [XP]
  2009-12-18 14:52 Building GtkAda [with OpenGL] on Windows [XP] Antoine Heijde, van der
@ 2009-12-18 22:42 ` Rick
  2010-01-05 12:53   ` Antoine Heijde, van der
  0 siblings, 1 reply; 3+ messages in thread
From: Rick @ 2009-12-18 22:42 UTC (permalink / raw)


Hi Antoine

I suggest you go to
gap-contact@adacore.com
join up and download the relevant executables.

There are some problems with these but the solutions are at
http://adasafehouse.webs.com/GtkAda.html

--------------------------------------------
Rick Duley
North Perth,
Western Australia
http://rickduley.webs.com
                                     .-_|\
                                    /     \
                              perth *_.-._/
                                         v
aussie : 0409 106 049
o'seas : +61 409 106 049
skype  : rickduley
--------------------------------------------
In olden days a glimpse of stocking
Was looked upon as something shocking
Now, heaven knows,
Anything goes!
                                 Cole Porter



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

* Re: Building GtkAda [with OpenGL] on Windows [XP]
  2009-12-18 22:42 ` Rick
@ 2010-01-05 12:53   ` Antoine Heijde, van der
  0 siblings, 0 replies; 3+ messages in thread
From: Antoine Heijde, van der @ 2010-01-05 12:53 UTC (permalink / raw)


Hello Rick,

Thanks for your answer!

Well in the meantime I found the problem, the program cygpath is
missing in my environment and that is why my build was failing.
Because of this failure a needed library was not included
[libgnat.dll] (still to test).

Only don't understand why a cygwin program is used in a mingw
environment, but I will investigate this next week. And hopefully also
build the OpenGL support in it.

And I didn't know about your site but I will keep a watch on it ;-)

PS as I am not an academic user I didn't contact the GAP program of
Adacore.

Best regards,
Antoine



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

end of thread, other threads:[~2010-01-05 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-18 14:52 Building GtkAda [with OpenGL] on Windows [XP] Antoine Heijde, van der
2009-12-18 22:42 ` Rick
2010-01-05 12:53   ` Antoine Heijde, van der

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