I would like to compile GTK+3 on a AMLOGIC set-top-box (MALI) which has OpenGLESv2 (libGLESv2.so)
Actually, for those who are interested, I am running a OPENELEC fork for AMLOGIC set-top-boxes. Kodi runs flawlessly. My ultimate goal is to install WebKitGTK. There is no XServer running on that platform. I first compiled xorg-server and now I would like to compile Gtk+3, before moving to WebKitGTK

xorg-server is installed. Actually I just need Xvfb, because I would like to run webkitgtk in a frame buffer. Xvfb starts without problem with the following command :
$this->bbcode_second_pass_code('', 'Xvfb :1')
Now I am focusing on Gtk+3. My test program is as simple as :
$this->bbcode_second_pass_code('', '
main()
{
gtk_init()
}
')
So here is my problem : GTK+3 uses libepoxy so I started compiling libepoxy.
Libepoxy can be built with GLX and/or EGL :
- If I activate EGL alone, GTK+3 compilation complains about GLX not found.
- If I active EGL and GLX in libepoxy, GTK+3 compiles successfully but, at runtime, it complains that glXQueryExtension() could not be found in libGLESv2.so. It seems that Gtk+3 asks libepoxy to call glXQueryExtension. Libepoxy loads the libGLESv2.so library dynamically and doesn't find the function...
So :
- Is GLX mandatory for GTK+3 ? I couldn't find any flag to disable GLX and compile it with EGL only.
- Is the problem located in GTK+3 or in the X server ? I read somewhere that X11 uses GLX.
I am lost because I am not sure how all theses pieces go together. Please help me, I am stuck on that problem for almost 2 weeks
