trying to build residualvm with opengles support, but ran into some problems.
./configure -enable-static --enable-opengl-shaders --force-opengles2
config.log
Code: Select all
#include <GL/gl.h>
int main(void) { return GL_ES_VERSION_2_0; }
g++ -athread=native -Wl,--no-keep-memory -L/sdk/local/newlib/lib -Wl,--export-dynamic -L/sdk/local/newlib/lib --std=gnu++11 -gstabs -W -Wno-unused-parameter -Wno-empty-body -pedantic
-Wno-long-long -Wno-format ./residualvm-conf.cpp -o ./residualvm-conf -DPPC_TARGET -DSDL_BACKEND
./residualvm-conf.cpp: In function 'int main()':
./residualvm-conf.cpp:2:25: error: 'GL_ES_VERSION_2_0' was not declared in this scope
int main(void) { return GL_ES_VERSION_2_0; }
^~~~~~~~~~~~~~~~~
./residualvm-conf.cpp:2:25: note: suggested alternative: 'GLU_VERSION_1_2'
int main(void) { return GL_ES_VERSION_2_0; }
^~~~~~~~~~~~~~~~~
GLU_VERSION_1_2
return code: 1
#include <OpenGL/gl.h>
int main(void) { return GL_ES_VERSION_2_0; }
g++ -athread=native -Wl,--no-keep-memory -L/sdk/local/newlib/lib -Wl,--export-dynamic -L/sdk/local/newlib/lib --std=gnu++11 -gstabs -W -Wno-unused-parameter -Wno-empty-body -pedantic
-Wno-long-long -Wno-format ./residualvm-conf.cpp -o ./residualvm-conf -DPPC_TARGET -DSDL_BACKEND
./residualvm-conf.cpp:1:10: fatal error: OpenGL/gl.h: No such file or directory
#include <OpenGL/gl.h>
^~~~~~~~~~~~~
compilation terminated.
return code: 1
#include <GLES2/gl2.h>
int main(void) { return GL_ES_VERSION_2_0; }
g++ -athread=native -Wl,--no-keep-memory -L/sdk/local/newlib/lib -Wl,--export-dynamic -L/sdk/local/newlib/lib --std=gnu++11 -gstabs -W -Wno-unused-parameter -Wno-empty-body -pedantic
-Wno-long-long -Wno-format ./residualvm-conf.cpp -o ./residualvm-conf -DPPC_TARGET -DSDL_BACKEND
return code: 0
Code: Select all
User picked target 'grim-win' (gameid 'grim')...
Looking for a plugin supporting this gameid... Grim Engine
Starting 'Grim Fandango'
INFO: TinyGL front buffer pixel format: RGB565@2
WARNING: Lua_V1::SetGamma, implement opcode, level: 0.000000!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: !!!! Trying to call MakeSectorActive without a scene!
WARNING: Lua_V1::SetGamma, implement opcode, level: 0.000000!
1) Videos are down to 2-7 fps (while they were at ~30 fps with OpenGL only
2) The gameplay itself sped up to 20-25 fps, where it was at 10-15 with OpenGL only
3) The colors are all wrong, every animated character (Manny, NPC, pidgeons etc.) and i.e. the floor in Manny's office where his shadow is drawn is completely pink.
Any help greatly appreciated