Search Projects

Thursday, December 31, 2015

How to install OpenGL Glut in Dev C++

SETTING UP OPENGL IN DEVC++

First of all install the Dev C++ while downloading it from the official website the latest version http://orwelldevcpp.blogspot.co.at/
After downloading it install with the normal configuration. When the installation is done. Open Dev C++.
Go to File->New->SourceFile  you can directly hit the keyboard shorcut Ctrl+N.
Now you have to download the glut files(Library, Header and System files) which can be obtained directly from the link described here.
http://www.mediafire.com/download/fwn0j0n123hn6e1/glutming.rar
Now Unzip the downloaded which will contain three files as shown.

Now you have to put these files to their appropriate places so let do it.
Take glut.h from the downloaded folder and copy it into the path  C:\Program Files (x86)\Dev-Cpp\MinGW32\include\GL  as shown.

Take libglut32.a file from the downloaded folder and put it in the path C:\Program Files (x86)\Dev-Cpp\MinGW32\lib as shown.

Now finally the system file take glut32.dll and copy to the path C:\Windows\System32 as shown.

Before compiling the program follow this last step.
Go to Tools->Compiler->General Tick the following as shown and write this line in the textarea -lglu32 -lglut32 -lopengl32 as shown



Finally compile and run the file you will get the following output as shown.
Updating with Code and image stay tune

No comments:

Post a Comment