Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

valg3

OpenGL OpenGL\GLUT

This topic is 6380 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve recently purchased a book, OpenGL SuperBible, and the author uses the GLUT library for OpenGL. The cd that came with the book tells how to configure VC++ to compile it, but trouble always arises when my programs try to link, even the simple ones! If anyone out there uses GLUT could you tell me me how to install GLUT in my system so that it works? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
There are things you have to add to the project I believe they are glut.lib gl.lib glu.lib. Sorry if that didn''t help.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You should have glut32.lib, glu32.lib and opengl32.lib in the compilers lib directory. I guess the headers are OK since you can compile. You can put glut32.dll in windows\system so the programs finds it.

The author has a web page with errata and other good stuff.

Share this post


Link to post
Share on other sites
I also purchased the OpenGL SuperBible and also couldn''t link to glut32.lib without getting a wacky error telling me that the file wasn''t there or the disk was full (neither of which was the case). I suspect we got a bunk version of it...

OGL SuperBible comes with Mesa 3.0 on the CD... on the CD, goto \tools\MESA 3.0\lib (at least I think thats the path... you can find it easy) and copy MesaGLUT.lib into your libraries path for your compiler... That''s what I did, and all I had to do was link to mesaglut.lib instead of glut32.lib and it worked fine. That ONE link library was all I changed to make everything work.

I suspect if you go to the OGL official site you can download another version of glut32.lib that will more than likely work.

Share this post


Link to post
Share on other sites
do u have vc5 by any chance if so recompile the glut libs and use those instead of the libs u have now

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Sorry, I''ve already tried including all of those libs and it still doesnt work. MesaGLUT.lib doesnt work either. zedzeek, how do you recompile libraries? I havent tried recompiling libraries before. I am using VC 6.0 btw

Share this post


Link to post
Share on other sites
try downloading the latest glut version for windows
it works with vc6
http://www.xmission.com/%7Enate/glut.html

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!