Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-19-03, 12:38 PM   #1
damike
Registered User
 
Join Date: Apr 2003
Posts: 3
Default OpenGL/Glut - missing functions

I am running FreeBSD 4.8 with the Nvidia drivers - everything works fine under X when I work normally.

Lately I tried to build a simple OpenGL programm by using glut (took it from a textbook) but I received errors about some missing functions. I compiled the programm just fine on a FreeBSD machine without Nvidia drivers/OpenGL so I think it must be the OpenGL libs from Nvidia!

I attached the really short source with the compile call as well as the error messages!
Attached Files
File Type: txt make_simple.txt (7.3 KB, 231 views)
damike is offline   Reply With Quote
Old 04-19-03, 12:52 PM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

First, programs should not link against libglx.so. That is for the X server's internal use. All the glX* functions will either be in libGL.so, or in libX11.so. So get rid of -L/usr/X11R6/lib/modules/extensions, and get rid of -lglx.

That will take care of the missing symbols in libglx.so.

For the other symbols (glX*SGIX), see this other thread where others have had the exact same problem with FreeBSD (searching the forums for "FreeBSD *SGIX*" found this, by the way... might have been quicker if you'd have done that ):

http://www.nvnews.net/vbulletin/show...BSD+%2ASGIX%2A

And here for someone that had the same problems but with RH 9 (I only include this because it's where I gave instructions on how to compile only Mesa's glut library rather than the whole glut package):

http://www.nvnews.net/vbulletin/show...threadid=10032
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-19-03, 01:30 PM   #3
damike
Registered User
 
Join Date: Apr 2003
Posts: 3
Default silly me

thanks for the quick answer - if i would have known for sure that this is the problem ...

I will try to rebuild Mesa glut and see what comes out of that. But just to clear things up for me:
1) the standard libglut tries to call functions from libGL that need not neccessarily be there
2) libglut should check if they are there and don't use them if they are not implemented
3) this is an error in the libglut implementation of FreeBSD

About right?

Thx, mike
damike is offline   Reply With Quote
Old 04-19-03, 08:43 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Pretty much. It's not entirely FreeBSD's fault (since they didn't write that glut), but the problem goes away if you use Mesa's glut library, yes.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 07-25-03, 08:57 AM   #5
sms
Registered User
 
Join Date: Jul 2003
Location: Norway
Posts: 1
Thumbs up FreeBSD 4.8, NVIDIA drivers and glXChannelRectSyncSGIX problems

Ive been following the diffrent threads on this ...SGIX problem for a while, as I was struck by "the gang of five" myself.

glXBindChannelToWindowSGIX
glXQueryChannelDeltasSGIX
glXChannelRectSyncSGIX
glXChannelRectSGIX
glXQueryChannelRectSGIX

None of the Linux (rebuilding Mesa etc) or FreeBSD solutions worked for me.

I wound up installing from ports the freeglut-1.3 and adjusted my makefiles accordingly.

Now it works OK!

Example of a simple compile command:

gcc -o ex1 example1.c -I/usr/local/include -I/usr/X11R6/include -L/usr/local/lib -lfreeglut-1.3

Happy GLUTting
sms is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Video Modes Enverex NVIDIA Linux 0 06-22-12 06:30 AM
NVIDIA 302.17 - missing apps: nvidia-settings, nvidia-installer, nvidia-xconfig zbiggy NVIDIA Linux 6 06-20-12 04:54 PM
IBM Courts the Missing Middle with Platform Computing and One-Stop Shopping News Archived News Items 0 06-04-12 10:20 AM
ftp://download.nvidia.com missing directory ioni NVIDIA Linux 7 05-19-12 02:45 PM
Glx mrbig1344 NVIDIA Linux 7 09-30-02 06:45 AM

All times are GMT -5. The time now is 08:04 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.