You are missing glx in your system.
What video adapter do you have? nvidia/ati/...?
In case you have nvidia goto nvidia web pages and download newest drivers. For other accelerator manufacturers I can''t help
::BEWARE:: Newbie question contained**
quote: Original post by Tac-Tics
Aighty, obviously I shouldn''t rely on RPM''s to do anything useful =-/ I successfully compiled it from the source code and threw together a sample program and I got a nice, blank windo....err... Xwindow ^_^
Anyway, I might as well inquire furthur. I tried grafting OpenGL to my little SDL program, but I found something out: the glu.h is missing =-( I tried #include <glu.h> and #include <GL/glu.h> and looked hard through /usr/include/ but to no avail. So, I guess now I should ask:
1) am I REALLY missing glu.h? Would there be any way it didn''t come with my version of Lin (Mandrake distro)?
and
This is possible, but seems strange if you are using a recent distrobution.
quote:
2) how do I find/get glu.h? Can I just find a copy and throw it in my /usr/include/ dir? Or is there some other way that would be more proper to installing it?
The most common implementation of GL for linux is MESA/GLUT, there are some straight answers here:
http://esupport.csci.unt.edu/programming/mesa_glut.php
You might also take a look at the downloads and documentation sections of: http://www.opengl.org
Also, if you haven''t looked, there is some info on setting up GL with SDL on the libsdl.org page under "Doc Project."
quote:
Please forgive the newbism.
You have to start somewhere
quote:
::EDIT::
Also, I should note. When I try to compile a test program with OpenGL and SDL, I get the following errors:
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Can anyone explain to me what these might mean? I can provide the source if I need to.
On this, I''m not completely certain. I would think that this would be related to having a version of XF86 that doesn''t support GL. You should be able to setup X for GL, but I think the newer implementations of XF86 should already have this built in.
You shouldn''t need specific drivers for your video card (though just like in windows, they really speed things up), if X supports GL, because SDL should run in software emulation mode if there aren''t any drivers.
Somebody correct me if I''m wrong here, I don''t have tremendous experience with GL in *nix.
-- Aaron
| HollowWorks.com | Rhott.com |
June 28, 2002 03:36 PM
for the GLX error...
You''d have to add GLX support to your X server... for a standard X install you''d just have to add a line like
Load "GLX"
to the modules section of your Xserver configuration (usually /etc/X11/XF86Config) You do need the module, but unless your distribution sucks, it should be there already, if not... You''ll have to install something like mesa or (for NVidia people) Nvidia''s drivers.
As for compiling, it seems you''ve been successful, but for the record... the second post has the correct method.
to get GLX also try #include <X11/GLX.h> and the like... I''m going off of memory here, not sure which
You''d have to add GLX support to your X server... for a standard X install you''d just have to add a line like
Load "GLX"
to the modules section of your Xserver configuration (usually /etc/X11/XF86Config) You do need the module, but unless your distribution sucks, it should be there already, if not... You''ll have to install something like mesa or (for NVidia people) Nvidia''s drivers.
As for compiling, it seems you''ve been successful, but for the record... the second post has the correct method.
to get GLX also try #include <X11/GLX.h> and the like... I''m going off of memory here, not sure which
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement