comp.lang.ada
 help / color / mirror / Atom feed
From: fab102@bluemail.ch (Karim)
Subject: Re: Ada OpenGL bindings, how to use them with gnat ?
Date: 18 Jul 2003 03:39:57 -0700
Date: 2003-07-18T10:39:58+00:00	[thread overview]
Message-ID: <4a1641ae.0307180239.4222f084@posting.google.com> (raw)
In-Reply-To: 20030717232401.70a8dbc3.david@realityrift.com

Hello David 

It still doesn`t work. I tried to compile the adaglut example in the
adaopengl-0.10/examples/adaglut dir.
The command was like this :
gnatmake adaglut.adb -I/usr/home/karim/ada/adaopengl-0.10/adaopengl
-largs
-L/usr/X11R6/lib -lX11 -lXext -lGL -lGLU -lglut 

Get this msg: 
/usr/local/lib/gcc-lib/i386-unknown-freebsd5.1/2.8.1/adalib/libgnat.so:
warning: mktemp() possibly used unsafely; consider using mkstemp()
/usr/X11R6/lib/libglut.so: undefined reference to
'glXBindChannelToWindowSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to
'glXQueryChannelDeltasSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to
'glXChannelRectSyncSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to 'glXChannelRectSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to
'glXQueryChannelRectSGIX'

gnatlink cannot call /usr/local/bin/adagcc 
gnatmake *** link failed. 

When I try to run the make file for (Make.conf , line 4 changed to
ADA_CC ?= adagcc) , I get the same error .

1. It seems that gnatmake has problem to find glx lib . Is this,
because I don`t installed adabinx ? I looked on the adabinx page, and
there is written this is for Linux. Does it also work on FreeBSD ?
Should I install the adabindx.

2. I also tried to locate my glx module, lib or whatever. I found only
this libs installed in /usr/X11R6/lib :
libGL.so / libGL.so.1 / libGLU.a / libGLU.so / libGLU.so.1 /
libGLcore.so /
libGLcore.so.1 /lbGLw.a   but none glx lib .  Are the libs o.k ? 
Where is the glx stuff ?

(I have installed the last FreeBSD nvidia driver and mesa)


3. General. I get the message "mktemp probaly unsafed..." each time I
compile code with gnatmake. What`s this all about ? It doesn`t matter,
but perhaps I can fix it .

much thank for your help 

Greetings  
Karim



  reply	other threads:[~2003-07-18 10:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 16:01 Ada OpenGL bindings, how to use them with gnat ? Karim
2003-07-16 23:03 ` David Holm
2003-07-17 16:37   ` chris.danx
2003-07-17 18:45     ` David Holm
2003-07-17 20:42   ` Karim
2003-07-17 21:23     ` David Holm
2003-07-18 10:39       ` Karim [this message]
2003-07-18 13:32         ` David Holm
2003-07-18 16:26           ` chris.danx
2003-07-18 17:24             ` David Holm
2003-07-18 21:46               ` Karim
2003-07-19 10:00                 ` David Holm
2003-07-22 14:28                   ` Karim
2003-07-22 14:59                     ` David Holm
replies disabled

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