SparceMatrix
09-01-2002, 12:10 PM
I have made several attempts to apply programming with OpenGL using several tutorials and I am not meeting with any consistancy in either my successes or failures. My first attempt is in the chapter on OpenGL programming in "Linux Programming Unleased 2nd Ed" This chapter explains to me that I have to have the Mesa libraries in order to implement OpenGL. After some searching around I found Mesa 4.0.3 and installed that according to the Install instructions. But, the sample program in this chapter will not compile because it is missing MesaGLU (-lMesaGLU). After looking in the various include directories in my Red Hat 7.3 installation, I can't find another mesa file, MesaGL, either.
With my Mesa 4.0.3 download, there are numerous demo programs. The installation of Mesa can also compile these programs which I did. But, roughly over half of the programs do not function. They do not appear to return errors, they just never start.
I've tried some of the tutorials at nehe.gamedev.net, but the introduction does not explain how to install OpenGL in Linux. To make matters even more confusing the downloads for linux come in three different types with no explanations of what the differences are. I tried the 'Linux' download for a few of the lessons and when I compile and run the program, I get an error message, "GLUT: Fatal Error in <program name>: visual with necessary capabilities not found.
Another thing is that the demo programs I was able to get going did not seem to have hardware support because they were very sluggish. I have an nVidia card and I think I understand that OpenGL supports nVidia cards. Looking for 'Systems Supported' at the mesa3d.sourceforge.net, I was refered to yet another version of OpenGL called Utah GLX (utah-glx.sourceforge.net), but the site there advised me that I could not use it with my latest 4.0.3 version of mesa. How do I get my OpenGL libraries to support my card's hardware. I notice in my XF86Config-4 file that DRI is set to:
Section "DRI"
Mode 0666
EndSection
Is this right?
Meanwhile, I am seeing discussion elsewhere that suggest I'm not supposed to be using Mesa at all.
So what is the summary of what my OpenGL libraries are supposed to be and where do I get them, if I haven't got them already? What are the sources of all these errors? How do I get hardware support for my nVidia card?
With my Mesa 4.0.3 download, there are numerous demo programs. The installation of Mesa can also compile these programs which I did. But, roughly over half of the programs do not function. They do not appear to return errors, they just never start.
I've tried some of the tutorials at nehe.gamedev.net, but the introduction does not explain how to install OpenGL in Linux. To make matters even more confusing the downloads for linux come in three different types with no explanations of what the differences are. I tried the 'Linux' download for a few of the lessons and when I compile and run the program, I get an error message, "GLUT: Fatal Error in <program name>: visual with necessary capabilities not found.
Another thing is that the demo programs I was able to get going did not seem to have hardware support because they were very sluggish. I have an nVidia card and I think I understand that OpenGL supports nVidia cards. Looking for 'Systems Supported' at the mesa3d.sourceforge.net, I was refered to yet another version of OpenGL called Utah GLX (utah-glx.sourceforge.net), but the site there advised me that I could not use it with my latest 4.0.3 version of mesa. How do I get my OpenGL libraries to support my card's hardware. I notice in my XF86Config-4 file that DRI is set to:
Section "DRI"
Mode 0666
EndSection
Is this right?
Meanwhile, I am seeing discussion elsewhere that suggest I'm not supposed to be using Mesa at all.
So what is the summary of what my OpenGL libraries are supposed to be and where do I get them, if I haven't got them already? What are the sources of all these errors? How do I get hardware support for my nVidia card?