PDA

View Full Version : Files to program OpenGL (headers, lib etc)?



Jakec
06-11-2009, 01:23 PM
Hey,

I've been having so much trouble finding how to start programming OpenGL. I just can't find where to get the right files anywhere.

The getting started guide says I need these:

gl.h
glut.h
glu.h
Opengl32.lib
glut32.lib
glu32.lib
Opengl32.dll
glut32.dll
glu32.dll

Any idea where these are available for download?

I did try openg.org but couldn't find anything there.

Thanks alot in advance :)

martinsm
06-11-2009, 03:30 PM
OpenGL32.dll and glu32.dll comes with OS.
gl.h, glu.h, OpenGL32.lib and glu32.lib comes with your C++ compiler (MSVC or MinGW).
glut you can get from freeglut (http://freeglut.sourceforge.net/) project. Or alternatively use GLFW, SDL or SFML.

Jakec
06-12-2009, 02:43 PM
Right, starting again...

Thanks very much the response, it was very useful and easier to unerstand than some of the complicated ones I had recieved before =).

So I downloaded freeglut but it does not include glut32.dll.

Is it not meant to or...?

The files left that I do not have now are:

Opengl32.lib
glut32.lib
glu32.lib
glut32.dll

So, there are files missing from MinGW and freeglut (All .lib files and glut32.dll).

Also, when configuring freeglut it comes up with this response:

$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compile r cannot create executables
See `config.log' for more details.


Even though I compile programs with it all the time...

Any help would be so greatly appreciated =(

(Is it just me, or is Mac OS X the only operating system that seems to run normal, plain, updated OpenGL without weird extras or problems? Everything supplied by Apple when downloading the Mac SDK...)

Areal Person
06-21-2009, 10:15 PM
No, no no...

The only way you get OpenGL files is to spend MUCH TIME looking around for them and getting lucky.

God help you if you need a specific version like 2.0, 2.1

YOU'LL NEVER DO IT !

No one can tell you any correct information either.

He said... "OpenGL32.dll and glu32.dll comes with OS."

Ha, Ha Ha. I have no idea why someone would say that.

Good luck, you'll need it.

Ua.., Maybe if you figure it out you could help me ? :)

Thanks,
-Areal

Areal Person
06-21-2009, 10:25 PM
Hey, Try this, it might work :)

http://web.cs.wpi.edu/~gogo/courses/mingw/

Ilian Dinev
06-22-2009, 04:49 AM
There's a Wiki that you might bother reading; getting started with GL is a piece of cake.

Areal Person
06-22-2009, 10:28 AM
No offense intended but...

Ya, ya, ya...

Just like every dummy knows that ALL THINGS are infinitely complex until fully understood.

Ua... do you mean this wiki ? Or some other ?
http://en.wikipedia.org/wiki/OpenGL

This wiki says the following...

"OpenGL 2.1 was released on August 2, 2006 and is backward compatible with all prior OpenGL versions"

How does one locate and insure that they have version 2.1 ?
Is it a piece of cake ? Please tell me how ?

Thanks,
-Areal

Ilian Dinev
06-22-2009, 01:26 PM
http://www.opengl.org/wiki/
http://www.opengl.org/registry/

yooyo
06-23-2009, 02:46 AM
http://tinyurl.com/nkb3fz