Build a Glut development environment in Ubuntu

Source: Internet
Author: User
Download codeblocks first. This is a good open-source c/c ++ editor and supports multiple platforms. We strongly recommend that you use it ~ Download freeglut-dev in the package manager. After the package is downloaded, it is automatically installed under the/usr path of the system. After the installation is complete, the freeglut. h header file will appear under/usr/include/, and the libglut. so library will appear under/usr/lib. In this way, we can start development in codeblocks. Open codebl

Download codeblocks first. This is a good open-source c/c ++ editor and supports multiple platforms. We strongly recommend that you use it ~

Download freeglut-dev in the package manager. After the package is downloaded, it is automatically installed under the/usr path of the system. After the installation is complete, the freeglut. h header file will appear under/usr/include/, and the libglut. so library will appear under/usr/lib. In this way, we can start development in codeblocks.

Open codeblocks, select the glut project, select new, and enter the project name. A message is displayed, indicating that you must specify the installation path of the glut and directly specify it to/usr. If both of the above files are in, you should be able to establish the project smoothly.

Finally, an error about Xxf86vm occurs during compilation. Right-click the project and open the project Properties window. The "project settings" tab is displayed. Click "project's build options" and then click the "Linker settings" tab to delete the reference to Xxf86vm and compile it correctly.

I checked a lot of information this morning and finally set up the Glut development environment under Ubuntu. Here I will record it ~

Related Article

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.