MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Bug reports => Topic started by: tomreyn on 22 April 2011, 05:10:35

Title: [Fixed] FTB: d38f8c8a4afb98f17078f766db472829d198b988
Post by: tomreyn on 22 April 2011, 05:10:35
d38f8c8a4afb98f17078f766db472829d198b988 fails to build for me on Ubuntu 11.04 beta2 x86_64

Code: [Select]
[  3%] Building CXX object source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/model_renderer_gl.cpp.o
/home/tomreyn/SCM/glestae/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp: In member function 'virtual void Shared::Graphics::Gl::ModelRendererGl::renderMesh(const Shared::Graphics::Mesh*, int, int, Shared::Graphics::UnitShaderSet*)':
/home/tomreyn/SCM/glestae/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp:303:23: error: 'anim' was not declared in this scope
/home/tomreyn/SCM/glestae/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp:304:53: error: call of overloaded 'setUniform(const char [16], int&)' is ambiguous
/home/tomreyn/SCM/glestae/source/shared_lib/include/graphics/gl/shader.h:38:15: note: candidates are: virtual bool Shared::Graphics::ShaderProgram::setUniform(const std::string&, GLuint)
/home/tomreyn/SCM/glestae/source/shared_lib/include/graphics/gl/shader.h:39:15: note:                 virtual bool Shared::Graphics::ShaderProgram::setUniform(const std::string&, GLfloat)
/home/tomreyn/SCM/glestae/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp:305:47: error: call of overloaded 'setUniform(const char [13], int&)' is ambiguous
/home/tomreyn/SCM/glestae/source/shared_lib/include/graphics/gl/shader.h:38:15: note: candidates are: virtual bool Shared::Graphics::ShaderProgram::setUniform(const std::string&, GLuint)
/home/tomreyn/SCM/glestae/source/shared_lib/include/graphics/gl/shader.h:39:15: note:                 virtual bool Shared::Graphics::ShaderProgram::setUniform(const std::string&, GLfloat)
make[2]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/sources/graphics/gl/model_renderer_gl.cpp.o] Error 1
make[1]: *** [source/shared_lib/CMakeFiles/shared_lib.dir/all] Error 2
make: *** [all] Error 2
Title: Re: FTB: d38f8c8a4afb98f17078f766db472829d198b988
Post by: hailstone on 22 April 2011, 05:54:22
I've applied a fix to make it compile.
Title: Re: FTB: d38f8c8a4afb98f17078f766db472829d198b988
Post by: silnarm on 22 April 2011, 08:48:45
sorry guys.. I was tired and it seems I had a bit of a brain freeze  :|

Everything should work again, the basic shader even does point lights now  ;)

But shadow mapping is still broken.