OpenGL, C++ and GLUT using CodeBlocks and MinGW

Bismillahir Rahmanir Rahim

Hey, what's up? Now i gonna show how configure GL,glut in codeblocks.
Download below file:

  1. CodeBlocks
  2. Glut
unzip Glut file .

Step-1:

Copy glut.h file

Go    C:\Program Files (x86)\CodeBlocks\MinGW\include\GL               for 64-bits
         C:\Program Files \CodeBlocks\MinGW\include\GL                        for 32-bits
past here....

Step-2:

Copy glut32.lib file

Go    C:\Program Files (x86)\CodeBlocks\MinGW\lib               for 64-bits
         C:\Program Files\CodeBlocks\MinGW\lib                        for 32-bits
past here....

Step-3:

Copy glut32.dll file

Go    C:\Windows\System32
past here....

Step-4:

Now create a Glut project

Browse your codeblocks MinGW
C:\Program Files (x86)\CodeBlocks\MinGW or
C:\Program Files\CodeBlocks\MinGW

Press Ok! and continue ..........

Now open main.cpp and write at top # include<windows.h>

Then Build and run....

IF showing any kinds of errors like as below

Then copy Glut32.dll

and go to your project location Ex: E:\C++ graphics\Hello\bin\Debug ( it's my project location )
you must go your project location and past glut32.dll file in Debug folder


For more details see the video :

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →