[gtkada] Building GtkAda [with OpenGL] on Windows [XP]

Antoine Heijde, van der aheijde at gmail.com
Thu Dec 17 19:30:10 CET 2009


Hello,

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20091217/00c92696/attachment.htm 


More information about the gtkada mailing list