Watch the video: [Link]
v=-vmkNGwlKEo
OR
Follow the step by step guidlines:
Step 1: Download and Inastall Codeblocks
Go to the following link:
[Link]
windows
Scroll down and look for “[Link]” (Make sure to install 64-bit
codeblocks):
Download and install it.
Step 2: Download and install Notepad++
Download and install notepad++ from here: [Link]
Step 3: Download freeglut
Go to the following link: [Link]
Scroll down and find “Martin Payne's Windows binaries (MSVC and MinGW)” under “Pre-
Compiled Packages” section and click on it.
Scroll down and find “ freeglut 3.0.0 MinGW Package” section. Click on the download link
under this section. It will download a zip file.
After downloading the zip file, extract it. It contain a folder named “freeglut”. Inside the
folder several files are present as below:
Step 4: Organize freeglut files
Go to the freeglut folder (\freeglut\bin\x64) that is extracted in the previous step. Copy the
“[Link]” file and paste it to C:\Windows (where windows is installed).
Go to the “\freeglut\include\GL” directory. Copy all files from and paste it inside
“C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\include\GL” (Where
codeblock is installed)
Go to “\freeglut\lib\x64” directory. Copy all files and paste it “C:\Program
Files\CodeBlocks\MinGW\x86_64-w64-mingw32\lib”
Step 5: Edit some files
Go to “C:\Program Files\CodeBlocks\share\CodeBlocks\templates” directory. Find “[Link]”
file. Open it in Notepad++. Replace all “glut32” by “freeglut”. Finally save it.
Go to “C:\Program Files\CodeBlocks\share\CodeBlocks\templates\wizard\glut” directory.
Find “[Link]” file. Open it in Notepad++. Replace all “glut32” by “freeglut”. Finally,
save it.
Step 6: Create GLUT project
Open codeblocks and create a project (File –> New -> project). Select GLUT project and
click on Go button.
Select the Checkbox and Next.
Give a project name and Next.
Select the folder “C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32” and Next.
Finish it.
Open the [Link] file from your project.
Run it. If all are okay, it will show as follow: