Codeblocks configuration OpenGL Environment under Utunbu

Source: Internet
Author: User

Really want to dozens, just started with Utunbu, what do not understand, do not understand where I installed all the software, do not know just like the system files under Windows where the file, do not know how to configure environment variables. In this way, but also to seize the time to install OpenGL, in Windows minutes will be loaded, under the Linux Leng two days, first of those packages are not installed, because of Linux under the mutual dependency of software. The problem is that the error message given by Apt-get is completely wrong, and there is no progress in the day. Then use the Aptitude,done, sure enough to be better than the previous one. This can be very good processing software dependency tree, there is also said to be more clean when unloading, this will be realized later. Then install, and then the compiler link, its options to configure, is to use the link process in the file path to it, Done,ok, in fact, this time to write the OpenGL code can run up. However, when creating a Plut project, it asks for the location of the glut, In fact, it is to provide the path of the header file and the. lib,.a file, and then, it took me a lot of time, one did not know that after the installation of the environment Linux put those files where, and two, I do not know what some files. This is the trouble, there is the information provided by Codeblocks also has the problem, that is, the header file can not be placed directly under the include file, but placed under the include/gl/. Then find a half-day, found that the system on those files are placed in the USR directory. The include of this directory, which is useful to all the header files, under Lib, there are static link files to use and dynamic link files. In this folder there seems to be a series of executable tool files. Anyway, it feels like a system file, and it's not changed by default. Of course, you can do whatever you want under Linux. However, until now, still did not solve all the problems, I suspect is not to use all the files copied to the directory I provided to Codeblocks, in fact, I do so, even if can run is not good, or to configure the environment variable to solve the better ...

Anyway ...

Codeblocks configuration OpenGL Environment under Utunbu

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.