Page 1 of 1

Compiling errors (ubuntu 6.06 LTS)

Posted: 08 Nov 2007, 15:31
by Dmytry
Hello,

I'm trying to build it on ubuntu 6.06 LTS and while scons configure works allright, when building i get following errors:

Code: Select all

rts/Lua/LuaShaders.cpp: In function 'GLuint CompileObject(const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, GLenum, bool&)':
rts/Lua/LuaShaders.cpp:342: error: '' was not declared in this scope
rts/Lua/LuaShaders.cpp:346: error: 'glGetShaderInfoLog' was not declared in this scope
rts/Lua/LuaShaders.cpp: In static member function 'static int CLuaShaders::CreateShader(lua_State*)':
rts/Lua/LuaShaders.cpp:447: error: 'glGetProgramiv' was not declared in this scope
rts/Lua/LuaShaders.cpp:451: error: 'glGetProgramInfoLog' was not declared in this scope
rts/Lua/LuaShaders.cpp: In static member function 'static int CLuaShaders::GetActiveUniforms(lua_State*)':
rts/Lua/LuaShaders.cpp:553: error: 'glGetProgramiv' was not declared in this scope
scons: *** [build/rts/Lua/LuaShaders.o] Error 1
scons: building terminated because of errors.
I'm going to try checking includes now to see if maybe GLext or something isn't included...

Posted: 08 Nov 2007, 15:55
by Dmytry
Update:
I checked glext.h and there are definitions of glGetShaderiv and other functions i see in error. But those are only compiled if GL_GLEXT_PROTOTYPES is defined. So, I tried adding
#define GL_GLEXT_PROTOTYPES
#include <GL/glext.h>
but it didn't help (neither did help adding #define GL_GLEXT_PROTOTYPES in beginning of file ).
I'm completely puzzled now.

Posted: 08 Nov 2007, 17:59
by Auswaschbar
You should consider some dist-upgrades.
It is known that it compiles fine on newer *buntus (althought i didn't test it):
see here: http://spring.clan-sy.com/wiki/SetupGuide#Ubuntu

Posted: 08 Nov 2007, 19:40
by Dmytry
Hmm finally got it to compile after updating glew (downloaded it from glew website). Works perfectly, using SpringLobby.