From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6e0a8d41157168df,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!a10g2000pre.googlegroups.com!not-for-mail From: "Antoine Heijde, van der" Newsgroups: comp.lang.ada Subject: Building GtkAda [with OpenGL] on Windows [XP] Date: Fri, 18 Dec 2009 06:52:26 -0800 (PST) Organization: http://groups.google.com Message-ID: <94db54bd-9443-4fd6-9f3e-bbc845581c0c@a10g2000pre.googlegroups.com> NNTP-Posting-Host: 32.58.34.227 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1261147946 16569 127.0.0.1 (18 Dec 2009 14:52:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 18 Dec 2009 14:52:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a10g2000pre.googlegroups.com; posting-host=32.58.34.227; posting-account=egcTYQoAAAB1OxWcL6OcnvJfyA2-YfNv User-Agent: G2/1.0 X-HTTP-Via: 1.1 KNDPXS01 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8417 Date: 2009-12-18T06:52:26-08:00 List-Id: 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= -- 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