Mesa, OpenGL and Vmware

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.