INFORMATION:
$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
$ apt-cache policy libogre-dev
libogre-dev:
Instalados: 1.7.4-3
Candidato: 1.7.4-3
Tabla de versión:
*** 1.7.4-3 0
500 http://ch.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
PROBLEM:
I tried to tun the BasicTutorial 3 from the OGRE website: http://www.ogre3d.org/tikiwiki/BasicTutorial3Source
I can compile without problems, but when I run the program I get the errors described at the bottom and I can see a landscape but wihtout textures . The sky is ok, but the landscape is all grey and I know that this shouldn't be like that. The same happens if I try to run the Terrain demo from the SampleBrowser (see attached screenshot).
...
Parsing script RTShaderSystem.material
Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
...
*** Initializing OIS ***
High-level program OgreTerrain/205920841/sm2/vp/hlod/hlod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/hlod/hlod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/hlod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/hlod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/vp/llod/llod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/llod/llod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/llod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/llod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
WARNING: material OgreTerrain/205920841 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/hlod/hlod cannot be used - compile error.
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/llod/llod cannot be used - compile error.
High-level program OgreTerrain/205920841/sm2/vp/comp/comp encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/comp/comp in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/comp encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/comp in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
WARNING: material OgreTerrain/205920841/comp has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/comp/comp cannot be used - compile error.
...
I believe hat this has something to do with the CG libraries used by the given exampes. The attached image may be a hint.