Recently, I helped my friends write Java OpenGLProgramSo I want to write something to myself on Linux.
I really don't want to fight against various bugs in Linux Desktop programs any more. I chose VMware. Start runlevel 3 with root, open the XFS service, and then startx/usr/bin/xterm. Everything works.
I copied a copy from the OpenGL Redbook.Code, GL + Glu + glut. An error occurred while compiling directly. After checking, I only have freeglut and no glut-devel in FC4, so I put # include <Gl/glut. h> changed to # include <Gl/freeglut. h>, then GCC 1.C-lgl-lglu-lglut is compiled. However, when a./A. Out is running, the program exits due to an error. The error message is
Freeglut (./A. Out): OpenGL Glx extension not supported by display': 100'
It seems that VMware's X driver does not support Glx. Can I only restart my NVIDIA Glx?
It suddenly occurred that mesa seemed to support pure software GL rendering. Go to mesa3d.org to download the source code, compile the code, and obtain a set of libraries such as libgl libglu and libglw. Not Installed because I am worried that it will overwrite my NVIDIA driver file. Use the-l parameter of GCC to specify the location of the library, and then specify LD_LIBRARY_PATH =./Mesa-6.2.1/lib to test run a. Out. The rendering is correct.