Game Development Community

Linux Build Broken

by James Urquhart · in Torque Game Engine · 07/17/2004 (1:24 am) · 7 replies

Looks like *someone* forgot to update the unix/linux platform source for the new GL loading code...

Quote:
--> Compiling platformX86UNIX/x86UNIXGL.cc
platformX86UNIX/x86UNIXGL.cc:17:37: platformX86UNIX/gl_func.h: No such file or directory
platformX86UNIX/x86UNIXGL.cc:22:37: platformX86UNIX/gl_func.h: No such file or directory
platformX86UNIX/x86UNIXGL.cc:75:37: platformX86UNIX/gl_func.h: No such file or directory
platformX86UNIX/x86UNIXGL.cc:85:37: platformX86UNIX/gl_func.h: No such file or directory
make[1]: *** [out.GCC3.DEBUG/platformX86UNIX/x86UNIXGL.obj] Error 1

The dedicated build however is ok ;)

#1
07/18/2004 (12:28 pm)
On an additional note, the win32 GCC build is also broken...

Lesser warnings(when compiling platformWin32/winGL.cc) :
Quote:
...
platform/GLCoreFunc.h:164: warning: 'dllglLightModelfv' initialized and
declared 'extern'
platform/GLCoreFunc.h:165: warning: 'dllglLightModeli' initialized and declared
'extern'
platform/GLCoreFunc.h:166: warning: 'dllglLightModeliv' initialized and
declared 'extern'
platform/GLCoreFunc.h:167: warning: 'dllglLineStipple' initialized and declared
'extern'
platform/GLCoreFunc.h:168: warning: 'dllglLineWidth' initialized and declared
'extern'
platform/GLCoreFunc.h:169: warning: 'dllglListBase' initialized and declared
'extern'
platform/GLCoreFunc.h:170: warning: 'dllglLoadIdentity' initialized and
declared 'extern'
platform/GLCoreFunc.h:171: warning: 'dllglLoadMatrixd' initialized and declared
'extern'
...

Serious errors :
Quote:
--> Compiling platformWin32/winGLSpecial.cc
In file included from platformWin32/winGLSpecial.cc:2720:
platform/GLCoreFunc.h: In function 'void cGLEnableLogging(SimObject*, int,
const char**)':
platform/GLCoreFunc.h:129: error: invalid conversion from 'const
GLubyte*(*)(unsigned int)' to 'const GLubyte*(*)(unsigned int)'
platform/GLCoreFunc.h:363: error: invalid conversion from 'void*(*)(int, int)'
to 'void*(*)(int, int)'
In file included from platformWin32/winGLSpecial.cc:2721:
platform/GLExtFunc.h:88: error: invalid conversion from 'void*(*)(int, float,
float, float)' to 'void*(*)(int, float, float, float)'
make[1]: *** [out.GCC3.DEBUG/platformWin32/winGLSpecial.obj] Error 1
make: *** [default] Error 2

NOTE: the build compiles fine in linux (when i fix the above error, that is).

As for the mingw version :
Quote:
gcc version 3.3.1 (mingw special 20030804-1)
#2
07/20/2004 (4:58 pm)
Doh! Looks like the linux loader didn't make its way onto CVS and I didn't see this forum thread in time today. I'm going to be away in LA at the TribalWars LAN party until monday, so this will have to wait until next week :(
#3
07/20/2004 (5:26 pm)
I compiled for Linux recently and saw that flaw.

I just copied a gl_func.h in I had from a previos snapshot of torque. SEemed to compile and run just fine...
#4
07/21/2004 (6:51 pm)
I tried restoring the file in cvs, but it wouldn't let me do it, even though I tried several different methods documented at the cvs site. Apparently I need to delete the repository file itself first, which I don't have access to. So we'll have to wait. But as Paul says, you can just use a gl_func.h from a previous version and there should be no problems.
#5
07/27/2004 (9:19 am)
Ok, now I don't have access to a linux machine, so I'll have to take care of this tonight. Sorry for any inconvenience.
#6
07/27/2004 (8:47 pm)
Ok, I think I fixed it. Post here if any more problems are found.
#7
11/26/2004 (4:49 am)
Looks like this has happened again. I couldn't get Linux to build due to the same missing gl_func.h and glu_func.h errors.