Game Development Community

Static linking of GLU

by Gregory "Centove" McLean · in Torque Game Engine · 03/19/2005 (1:32 pm) · 2 replies

In mk/conf.UNIX.mk it states the following:

# GLU must be statically linked, otherwise torque will crash.
# JMQNOTE: aside from gluProject/unProject, GLU doesn't work.
# calling a GLU function that calls a GL function will cause a
# crash. let me know if you have a fix :)

And then has the ld voodoo to accomplish this.

However this don't appear to be true anymore? Removed all the static voodoo and it linked fine, and as a bonus it ran fine as well.

As to the JMQNOTE, I haven't messed with the GLU functions to see if that is still crashing or not.

#1
03/19/2005 (5:45 pm)
Could be the case only for certain distros of linux? Specifically, what if you don't have a working OpenGL install, as you might on a headless, GPU-less server?
#2
03/20/2005 (6:10 am)
@Ben
I'm not sure about the distro question. As far as the working OpenGL install.. Well you're not gonna run the non dedicated version on a headless, GPU-less server are you? It wouldn't work in even if you did statically link the stuff in, it would bail out unable to initialize OpenGL. As to the dedicated target, it don't link any of the OpenGL stuff.