Building lr-ppsspp from RetroPie with a patched (also unpatched) header file yields this for me:
Code: Select all
/home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/../gfx_es2/gl3stub.h:506:147: error: ‘GLint (* glGetProgramResourceLocationIndexEXT)(GLuint, GL
enum, const GLchar*)’ redeclared as different kind of symbol
extern GL_APICALL GLint (* GL_APIENTRY glGetProgramResourceLocationIndexEXT) (GLuint program, GLenum programInterface, const GLchar *name);
^
In file included from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_common.h:8:0,
from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_debug_log.cpp:4:
/usr/include/GLES2/gl2ext.h:1127:30: note: previous declaration ‘GLint glGetProgramResourceLocationIndexEXT(GLuint, GLenum, const GLchar*)’
GL_APICALL GLint GL_APIENTRY glGetProgramResourceLocationIndexEXT (GLuint program, GLenum programInterface, const GLchar *name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_common.h:25:0,
from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_debug_log.cpp:4:
/home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/../gfx_es2/gl3stub.h:507:107: error: ‘GLint (* glGetFragDataIndexEXT)(GLuint, const GLchar*)’ r
edeclared as different kind of symbol
extern GL_APICALL GLint (* GL_APIENTRY glGetFragDataIndexEXT) (GLuint program, const GLchar *name);
^
In file included from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_common.h:8:0,
from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_debug_log.cpp:4:
/usr/include/GLES2/gl2ext.h:1128:30: note: previous declaration ‘GLint glGetFragDataIndexEXT(GLuint, const GLchar*)’
GL_APICALL GLint GL_APIENTRY glGetFragDataIndexEXT (GLuint program, const GLchar *name);
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_common.h:25:0,
from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_debug_log.cpp:4:
/home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/../gfx_es2/gl3stub.h:515:289: error: ‘void (* glCopyImageSubDataOES)(GLuint, GLenum, GLint, GLi
nt, GLint, GLint, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei)’ redeclared as different kind of symbol
extern GL_APICALL void (* GL_APIENTRY glCopyImageSubDataOES) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint
dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
^
In file included from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_common.h:8:0,
from /home/user/RetroPie-Setup/tmp/build/lr-ppsspp/lr-ppsspp/ext/native/gfx/gl_debug_log.cpp:4:
/usr/include/GLES2/gl2ext.h:290:29: note: previous declaration ‘void glCopyImageSubDataOES(GLuint, GLenum, GLint, GLint, GLint, GLint, GLuint, GLenum, GLint, GLint, G
Lint, GLint, GLsizei, GLsizei, GLsizei)’
GL_APICALL void GL_APIENTRY glCopyImageSubDataOES (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTa
rget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
Not too sure what is the best way to proceed, but it seems an internal copy of a header file is being used with mismatching symbol definitions/prototypes. Is there a CFLAG I can add? So far I've been able to take advantage of the GBM driver and got Emulation Station and Kodi 18.5 working just fine together.