Set the openGL programming environment in Linux

Source: Internet
Author: User
In Linux, set the openGL programming environment-general Linux technology-Linux programming and kernel information. The following is a detailed description. Install freeglut or mesa first.
Take freeglut as an example. After installation, glut. h will appear in/usr/include/GL and libglut. so will appear in/usr/lib. If not, copy it yourself.
Then write a test program, such as test. c, and compile it with the following command:
Gcc-lglut test. c-o test
Generate the executable file test, and then:
./Test
If the box is displayed, the installation is successful.

Attachment: install JAVA in ubuntu
After ubuntu is installed, the first step is to install JAVA. There are two ways to install java in ubuntu: first, use sudo apt for installation. Second, use common commands like other linux. I chose the second one. Because the redhat and ubuntu installation commands are the same, the redhat will not be completely discarded.

Download JDK from the SUN website. Select the bin package for linux. It is convenient to install the binfile without compiling the source code. Terminate --> cd. bin directory --> authorization -->./installation

Example:
Cd/home/root/Desktop

Chmod + x jdk-6u3-linux-amd64.bin

/Jdk-6u3-linux-amd64.bin

Chmod explanation:
Usage: chmod [-cfvR] [-- help] [-- version] mode file...
Note: The file calling permissions for Linux/Unix are divided into three levels: file owner, group, and others. Chmod can be used to control how files are called by others.

Common parameters:
+ Adds permissions.
-Indicates that the permission is revoked.
= Indicates the unique permission.
R indicates readable
W indicates that data can be written.
X indicates executable
X indicates that only when the file is a subdirectory or the file has been set to executable.

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.