undefined symbol: glGetSynciv
Since Kodi advertises that it should work on opengl 2.0 I tried running it with GL4ES but it seems glGetSynciv isn't wrapped over the GLES glGetSynciv. Looking at documentation it seems that both desktop GL and GLES versions are identical.
Tried adding it but not sure if the gles.h and gles.c are auto generated by some kind of tool...
This is only in GLES 3.0+, not before (well, there is probably an extension for this). I need to see how to implement (or fake implement) it.
gles.h and gles.c are indeed generated. Process is a bit tricky for now, not completly automated :(
In my case libmali implements glGetSynciv so it would be a 1 on 1 call but I guess that for other hardware an alternative implementation would be needed.
The symbol is present because libmali.so implement all EGL and GLES lib in 1 lib. I'm still unsure if that symbol "works" with an GLESv2 context (probably, but I think it's safer to use the GLES Extension)