Configure the OpenGL development environment under Fedora13

Source: Internet
Author: User
Development of OpenGL Under Fedora I have been using Mesa + freeglut. It is a free open-source implementation and can be used in almost all Linux releases. The following describes the configuration process under Fedora13, which is applicable to various Fedora versions. 1. First install MesaMesa and integrate it into the system since FC5, But the package is not very full. We need a complete development environment. Root execution: yumlistmesa * & nbs

Development of OpenGL Under Fedora I have been using Mesa + freeglut. It is a free open-source implementation and can be used in almost all Linux releases.

The following describes the configuration process under Fedora 13, which is applicable to various Fedora versions.

1. First install Mesa
Mesa has been integrated into the system since FC5, But the package is not very full. We need a complete development environment.

Root execution:

Yum list mesa * // it lists all available mesa packages
Yum install mesa * // install all available mesa packages

2. Install freeglut

Root execution:

Yum install freeglut *

Now the configuration is complete. Is it simple? Haha!

In fact, this is not the end, because a link library must be added during program compilation.

-Lglut-lGLU-lGL

With these three, this is generally enough. The command to compile a file is:

G ++-lglut-lGLU-lGL-o main. cpp main // I use C ++. If it is a C language, the corresponding

Gcc-lglut-lGLU-lGL-o main. c main

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.