You are not logged in.

#1 2008-10-06 05:31:12

vdogvictor
Member
Registered: 2008-10-06
Posts: 12

How can I use GLUT on Arch?

I really don't know how to use GLUT on any system, best I can tell you need some packages called something like libglut3 and libglut3-dev.  but the closest thing I can find is freeglut, which isn't what I need (or isn't all I need at least).  I even went to opengl.org and manually downloaded the header files and put them in numerous directories that seemed like they might be true.  I'm sure this is simple but I have no clue what to do.  Thanks!

Offline

#2 2008-10-06 05:52:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: How can I use GLUT on Arch?

freeglut would have been my guess at what you needed.  What header files are you missing after installing that?

Offline

#3 2008-10-06 06:50:07

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: How can I use GLUT on Arch?

FreeGLUT is what you need.* It's nearly identical to the original, with the exception of some weird stuff you didn't need anyway.

Just make sure the freeglut package is installed and "#include <GL/glut.h>", along with any other OpenGL headers you need (GL/gl.h and GL/glu.h).


* Assuming you're trying to write or compile programs with it, which I take the meaning of "use GLUT" to be. I guess it's possible that you have some strange binary that needs a particular library version to operate.

Last edited by pauldonnelly (2008-10-06 06:56:41)

Offline

#4 2008-10-06 22:40:10

vdogvictor
Member
Registered: 2008-10-06
Posts: 12

Re: How can I use GLUT on Arch?

Thanks for the help, I had two things wrong but it's working now.  For one my #include statment used to just be

#include <glut.h>

instead of

#include <GL/glut.h>

I didn't even check that because of that because I was editing someone elses file that already had that and it worke don their system.  the other thing was that I geany wasn't using the -IGL and -Iglut options on gcc.  Thanks a lot!

Last edited by vdogvictor (2008-10-06 22:40:45)

Offline

Board footer

Powered by FluxBB