When developing an OpenGL project, an error like the one shown in the figure can occur in the VS development environment.
OpenGL32.dll exists in the C :\ Windowssystem32 and SysWow64 folders. The program will compile normally, but will be prompted as soon as the program is running
“Could not start this program because OpenGL. DLL is missing from your computer. Try reinstalling the program to fix the problem.”
This is mainly due to the reference to both the static libraries “Glut.lib” and “Glut32.lib”.
That is, in the project ->; Property – & gt; Configure properties ->; The linker – & gt; Glut.Lib and Glut32.Lib are added to the attached dependencies, and Glut.DLL comes first, glut32.DLL comes second, so the linker first looks for OpenGl32.DLL instead of OpenGL32.DLL.
In addition, if you want to reproduce this error in VS, you need to rebuild the project after configuring the additional dependencies.
OpenGL32.dll exists in the C :\ Windowssystem32 and SysWow64 folders. The program will compile normally, but will be prompted as soon as the program is running
“Could not start this program because OpenGL. DLL is missing from your computer. Try reinstalling the program to fix the problem.”
This is mainly due to the reference to both the static libraries “Glut.lib” and “Glut32.lib”.
That is, in the project ->; Property – & gt; Configure properties ->; The linker – & gt; Glut.Lib and Glut32.Lib are added to the attached dependencies, and Glut.DLL comes first, glut32.DLL comes second, so the linker first looks for OpenGl32.DLL instead of OpenGL32.DLL.
In addition, if you want to reproduce this error in VS, you need to rebuild the project after configuring the additional dependencies.
Read More:
- This program cannot be started because the computer is missing COpenGL.dll
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- OpenGL program running prompt glut32.dll missing problem
- 0028opengl program running prompt glut32.dll missing one of the solutions
- Visual studio 2017, OpenGL program running prompt glut32.dll missing solution
- Because the computer is stuck, force to restart the computer and open idea idea to report an error on line 1: no content is allowed in the foreword.
- This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- Error in installing pywin32 under Windows: close failed in file object D estructor:sys.excepthook is missing lost sys.stderr
- The problem can not be viewed in the corner log of the Mac computer
- The solution of configuring OpenGL in vs2017
- A series of problems in configuring OpenGL development environment in vs2015
- Using Visual Studio 2015 to create. DLL and use. DLL
- When configuring ROS distributed / Error report solution and command requirements encountered in the process of master-slave computer
- Problems encountered in running OpenGL
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Start Tomcat and report an error: tcnative-1.dll: can’t load ia 32-bit. DLL on a amd 64 bit platform
- Configure OpenGL in CodeBlocks