OpenGL Development on Windows 7
Freeglut + Eclipse + GNU C/C++ Compiler MinGW
(This tutorial is for MinGW compiler)
- Setup eclipse for simple C++ development with MinGW.
- Next, you'll need to download the freeglut libraries which are way dated than the very old OpenGL libraries because freeglut is open source and is still alive. You can either download the source and compile your own package (what I did). Or, you can also download very nice pre-compiled zip archive click here
- All you have to do next is to extract this zip archive anywhere then:
- Copy the freeglut.dll to “C:\Windows\System32″OR
"C:\Windows\SysWOW64" if you are an x64 user. - Copy the contents of include\GL to “C:\MinGW\include\GL”
- Copy the contents of lib to “C:\MinGW\lib”
- Create a C++ executable project.
- Right click your project main folder from the project explorer and click properties.
- From the left menu expand C/C++ build and click settings.
- From the sub-menu that appears Click Libraries, which is found under MinGW C++ linker add the following libraries using the tiny add button at the top-right: "glu32”, "opengl32”, "freeglut" (Without the quotes). Then finally, click OK.
- Note that you will need to repeat these steps for every project you create. Now, eclipse is properly configured with freeglut.
No comments:
Post a Comment