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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d97397bba859f70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-18 06:32:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!solnet.ch!solnet.ch!surfnet.nl!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: David Holm Newsgroups: comp.lang.ada Subject: Re: Ada OpenGL bindings, how to use them with gnat ? Message-ID: <20030718153217.761d0b41.david@realityrift.com> References: <4a1641ae.0307150801.71bb5d16@posting.google.com> <20030717010405.349ead8c.david@realityrift.com> <4a1641ae.0307171242.5b143037@posting.google.com> <20030717232401.70a8dbc3.david@realityrift.com> <4a1641ae.0307180239.4222f084@posting.google.com> X-Newsreader: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Fri, 18 Jul 2003 13:32:15 GMT NNTP-Posting-Host: 217.208.105.88 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1058535135 217.208.105.88 (Fri, 18 Jul 2003 15:32:15 CEST) NNTP-Posting-Date: Fri, 18 Jul 2003 15:32:15 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:40468 Date: 2003-07-18T13:32:15+00:00 List-Id: On 18 Jul 2003 03:39:57 -0700 fab102@bluemail.ch (Karim) wrote: > 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' Seems some symbols are missing in your libGL.so. Try "nm /usr/X11R6/lib/libGL.so|grep glXQueryChannelRectSGIX" and "nm /usr/X11R6/lib/libGL.a|grep glXQueryChannelRectSGIX" it should say something like: 0004b8dc T glXQueryChannelRectSGIX (the number at the beginning may vary depending on your OpenGL lib). I'm using nVidias OpenGL library, both on linux and FreeBSD. > 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. AdaBindX is only necessary in case you want to use glX directly. If you use glut you won't need it. > 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 ? It should be in libGL.so > (I have installed the last FreeBSD nvidia driver and mesa) If you have both installed it is quite possible that Mesa overwrote your nVidia OpenGL libs. Make sure you have no conflicting libGL* in /usr/local/lib > > 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 . gnat 3.15p in FreeBSD uses mktemp and not mkstemp. If you want to fix it you need to modify the gnat source and submit a patch (the source is very clean so it shouldn't be difficult). //David Holm