How to Setup Codeblocks for openGL for designing Graphics Programs

preview_player
Показать описание

Libraries,Header Files,dll files Links:

Steps:

1.Files to download

gl.h
glu.h
glut.h
libglu32.a
libglut32.a
libopengl32.a
2. Copy the 3 downloaded header files

gl.h
glu.h
glut.h
and paste to C:\Program Files\CodeBlocks\MinGW\include\GL
3. Copy the 3 downloaded library files

libglu32.a
libglut32.a
libopengl32.a
and paste to C:\Program Files\CodeBlocks\MinGW\lib
4. Copy the 3 downloaded DLL files

and paste to C:\WINDOWS\system32

Рекомендации по теме
Комментарии
Автор

thank you! I am studying Computer Science in Puebla México, i need this for my next course, you saved me, i am grateful :D

icepurple
Автор

thank you so much. nothing else worked at all. this is the first thing that has actually done anything, and is probably the last thing i would have tried before just trying sfml and not doing 3d.

waedge
Автор

Finally! Someone makes a good tutorial! Thanks a lot it helped.

hrbharry
Автор

How can anyone dislike this? This is so helpful!

zehawk
Автор

Very good tutorial. For me the difficulty of learning how to code in a particular language is usually not so much in the language itself, but rather in setting up the tools etc. I have looked up how to enable code::blocks for openGL on several websites, and followed each step carefully, but with this video I got it working for the first time. Looking forward to your next tutorial. On a critical note: I don;t like the music much. When learning, something more meditative would be more appropriate IMO. Cheers!

MrBatraaf
Автор

It was a great help indeed! Thank you so much for clearly mentioning the steps .

aashishbagal
Автор

yup its supposed to happen that way, i had not coded it entirely for all the possible conditions, its just a basic 3D rotational cube :) N yeah it gets bit annoying when it comes to explaining each and every step in detail, but m used to it, keeps me busy :) Your welcome :) Thanks for watching :)

bharath
Автор

Thanks OMG.... all I needed was Your vid Thanks :D

madao_desu
Автор

much appreciated man! really! thank you very much :) cheers from mexico

samuraimachone
Автор

Its because you have not pasted the library *.dll or include files in the appropriate directory. Follow the tutorial steps exactly. If you are using Visual studio 2010 you have to paste the library files in VC/LIB folder and the library files are to be placed within VC/INCLUDE directories. Be sure you have also pasted the the .dll files inside the system32 folder. If you are using 64bit system then you have to place the .dll files in c:/programfilesX86/

bharath
Автор

One more solution for this problem is to install the codeblocks platform which contains the MinGW compiler which as a fact has a greater setup file size than normal platform .
I think most probably the platfom needs an external compiler for execution of the code, which in fact you can get through the larger sized setup file .
i.e

bharath
Автор

you mean copy and paste as if they don't already exist? or if they exist replace them?? cause replacing would take a lot of other steps like getting permission and stuff

GjerdanPeterson
Автор

Thank you very much for posting this!

Автор

man, you helped me a lot!!!! thank you very much!!!!

zhenyashypitsyn
Автор

I got many errors.. all errors are undefined reference to glut functions..

amruteshmysore
Автор

Actually it doesn't matter if you have openGL or not.
Try the following steps:
--->go to Settings-Compiler & Debugger and it opens up in new window in here click on the 'restore defaults' button now it will automatically find your compiler.If that doesn't work choose toolchain executables next click auto detect.

(mine was in C:\Program Files\CodeBlocks\MinGW) --and this can be set in toolchain executables tab if the above doesnt work)

bharath
Автор

excuse me i keep getting a error saying no such file or directory.... somebody plz help....

EdwinCharlesMathew
Автор

The simplest solution is to turn off UAC temporarily copy the files, then turn it on again. If that doesn't work make sure you are logged in as Administrator.
If you have a 64bit OS then try copying the files to Windows\sysWOW64 folder.

bharath
Автор

i already follow the instructions..but why the result doesn't come out after run.

yummychannel
Автор

Actually yes according to my knowledge you have to link them each time you start a new project in CBlocks. But if you use Microsoft visual studio you don't need to do so just add the library files and you are good to go...i have uploaded a sample program on the description

bharath
visit shbcf.ru