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 ~