Configure OpenGL

To run programs of computer graphics in Dev-C++ you first need to configure OpenGL in it. To do so follow these steps:
  1. Download Dev-C++ 5.4.1 from here. Download
  2. Download glutming.zip from here.   Download
  3. Extract the files and install Dev-C++ 5.4.1 from the setup file you just downloaded . 
  4. Copy glut.h from glutming-->include-->GL-->glut.h
  5.  Paste it into C:\program files\Dev-Cpp\ming32\include\GL
  6. Now copy libglut32.a from glutming-->lin-->libglut32.a
  7. Paste it into C:\program files\devcpp\Dev-Cpp\mingGW32\lib
  8. Copy glut32.dll from glutming folder
  9. Paste it into  C:\Windows\SysWOW64
  10. Now launch Dev-C++
  11. Go to Tools-->Compiler Options
  12. Tick "Add following commands when calling compiler".
  13. Write --lglu32 -lglut32 -lopengl32 in text area.
You are now ready to rock!!
Watch this video:

No comments:

Post a Comment