Lights work on Solaris but not on RH Linux.. why?

I’m currently learning OpenGL/GLUT on a Solaris system and tried to make my program run on my Linux PC at home – it runs but there is no light…
Am i forgetting some library during compilation?

gcc -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm -o prog prog.o prog2.o

I’m not sure i have all the required libraries, as i’m a beginner…

Thanks for any help!

That should not be a linking problem. The only things I can think of are:

  1. Buggy OpenGL implementation (under either system - most likely Linux)

  2. You are violating some limitation of the Linux OpenGL implementation (different implementations have diffrent limits, e.g. matrix stack depth, maximum number of light sources, maximum texture size etc).

  3. You are using different OpenGL versions, and your program requires a certain OpenGL version to work (less likely, since you would normally get a compile time error if you use the wrong OpenGL version)

ok, thanks for the reply, i’ll try with a newer version of linux.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.