Compiling errors (ubuntu 6.06 LTS)

Compiling errors (ubuntu 6.06 LTS)

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
Dmytry
Posts: 8
Joined: 08 Nov 2007, 15:25

Compiling errors (ubuntu 6.06 LTS)

Post 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...
Dmytry
Posts: 8
Joined: 08 Nov 2007, 15:25

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Post 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
Dmytry
Posts: 8
Joined: 08 Nov 2007, 15:25

Post by Dmytry »

Hmm finally got it to compile after updating glew (downloaded it from glew website). Works perfectly, using SpringLobby.
Post Reply

Return to “Linux”