I configured CLion after configuring the VS environment with reference to this blog, so some of the content in this blog is the same as this blog.
reference link
you want to know the differences between OpenGL libraries, you can also refer to the link above.
Required components
- ClionMinGW compiler GLFW download address
GLFW I configuration using 64 – bit version, so don’t determine the 32-bit version can use the
download GLAD I directly handling the details of the reference wrote in the blog:
GLAD has an online service (that is, download address), directly under down can use (compiled) and sets the Language (Language) to the C/C + +, the API option, select OpenGL version 3.3 + (version 3.3 is a programmable pipeline, and also can work normally but newer versions). Then set the Profile to Core and make sure the Generate a Loader option is selected. Ignore the Extensions for now (for now). When you have selected everything, click the Generate button to Generate the library files
Specific operation
Copy the glad. C
Copy the downloaded glad.c into the project directory
Modify CMakeLists. TXT
You only need to change 4 lines
- add glad.c to add_executable (line 6, no blank line) add header directory (line 4,5) link library file (line 7)
GLFW the include directory can write “/ GLFW – 3.3. Bin. WIN64/include/GLFW” or “/ GLFW – 3.3. Bin. WIN64/include/”, just as the difference between when writing the code the include path is a little change, the former direct # include” glfw3. H “which is # include” GLFW/glfw3. H”
Hopefully’re done
with Cmake management code can actually such configuration
Read More:
- Configuration of OpenGL development environment under Windows environment, win10 + vs2019 + glfw + glad
- OpenGL development environment configuration [vs2017] + common problems
- Simple configuration of glfw + glad in vs2015 OpenGL development environment
- Vs configuration of OpenGL development environment: configuration of glfw library and glad Library
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- Construction of vs2015 OpenGL configuration environment
- Vs2013 + glfw + glew configure OpenGL development environment
- Configure OpenGL development environment (vs2015)
- Vs2015 OpenGL environment configuration
- Configure OpenGL development environment (glfw3 + glad) once and for all with visual studio
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- OpenGL class library and environment configuration under win10 and vs2015
- OpenGL environment configuration
- Visual studio 2019 + OpenGL environment configuration
- The simplest way to configure OpenGL development environment with vs2015
- Vs2015 + OpenGL environment configuration
- A series of problems in configuring OpenGL development environment in vs2015
- Problems encountered in vs2015 configuration using OpenGL environment
- Problems encountered in configuring OpenGL development environment in vs2015
- On the configuration of OpenGL Red Book eighth edition environment in vs2013