There are many online tutorials, but some are easy to use and some are not.
There are two broad categories. One is that you don’t have to manually add libraries after you’ve configured them, but a New GLUT Project is needed to create a New Project instead of the usual Console Application. This category can refer to this document: https://wenku.baidu.com/view/7396dc8783d049649b66588c.html
Another type of configuration method, when configured, will be a New normal Console Application, but you will need to manually add the OpenGL library.
I chose the second category because I found that the console could not be tuned out of the configuration method of the first category, so I could not see the output of the console. Debug is very inconvenient, so I haven’t found a solution yet.
General reference is http://www.yalewoo.com/opengl_notes_2_use_opengl_in_codeblocks.html, but is not identical also, built after the project need to add one more libraries.
Steps:
Glut. h goes into the MinGW\include\GL directory of the compiler. .
glut32 lib in MinGW \ lib directory
glut32. The DLL into the C: \ Windows \ System in
There are two broad categories. One is that you don’t have to manually add libraries after you’ve configured them, but a New GLUT Project is needed to create a New Project instead of the usual Console Application. This category can refer to this document: https://wenku.baidu.com/view/7396dc8783d049649b66588c.html
Another type of configuration method, when configured, will be a New normal Console Application, but you will need to manually add the OpenGL library.
I chose the second category because I found that the console could not be tuned out of the configuration method of the first category, so I could not see the output of the console. Debug is very inconvenient, so I haven’t found a solution yet.
General reference is http://www.yalewoo.com/opengl_notes_2_use_opengl_in_codeblocks.html, but is not identical also, built after the project need to add one more libraries.
Steps:
Glut. h goes into the MinGW\include\GL directory of the compiler. .
glut32 lib in MinGW \ lib directory
glut32. The DLL into the C: \ Windows \ System in
Open the codeblocks create the console program, and then in the project to build the options – would add three static link library glut32 Settings. The lib, libopengl32. A, as well as libglu32. A, their paths in the lib folder of the compiler.
Read More:
- CodeBlocks OpenGL configuration process
- Using glut in CodeBlocks
- Configuring OpenGL with win 10 + CodeBlocks
- Configuring OpenGL environment with code blocks16.0 in Windows 10
- The simplest way to configure OpenGL development environment with vs2015
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- CodeBlocks configuring OpenGL
- Configuring OpenGL in Code:: blocks
- The first day of OpenGL [vs2017 + OpenGL environment configuration]
- Create an OpenGL project in codeblock
- CodeBlocks configuring OpenGL environment
- Solutions to the problem that CodeBlocks cannot be used
- Installation and use of OpenGL based on CodeBlocks
- Vc2010 configuring OpenGL environment
- The solution of configuring OpenGL in vs2017
- CodeBlocks environment error the compiler could not find a solution to the problem
- Using the third party OpenGL in codeblock
- OpenGL class library and environment configuration under win10 and vs2015
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library