Help Needed : Android QML App with OpenGL ES/EGL API interjector/shim
-
wrote on 19 Jan 2019, 11:19 last edited by
Hi all.
I'm in need of some help integrating an OpenGL/EGL shim in to a QML application.
Firstly let's assume I have 2 shared object files "libGLESv2_mine.so" and "libEGL_mine.so". These contain a complete implementation of both APIs including a lot of profiling/adaption etc.I thought of doing this by editing the Qt Android mkspecs to inject my new SO's by simply changing the EGL/GLES variables in the various config files to link against them. Then add the SO's themselves to the application via the "additional libraries" option in Qt Creator. Then clean/rebuild and away it should go. But it doesn't work.
Unzipping the APK seems to show my SO's in the correct place in the binary e.g. app/lib/armv7/libEGL_mine.so but the QML/Qt runtime does not dynamically link against these and continues to call the system libraries.
I surmise this by simply making (my) eglGetDisplay crash! The application didn't crash.
I've tried something similar with a "pure" Android NDK build by placing my SO's under (for example) app/lib/$platform_type/libGLESv2_mine.so" and, yes, it works.
I have not yet got this working with QML and I'd really like to achieve this.My NDK test application did crash!
I do not wish to replace the system SO's only those for this QML application.
1/1