Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Help Needed : Android QML App with OpenGL ES/EGL API interjector/shim
Forum Updated to NodeBB v4.3 + New Features

Help Needed : Android QML App with OpenGL ES/EGL API interjector/shim

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 259 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matthew.kuiash
    wrote on 19 Jan 2019, 11:19 last edited by
    #1

    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.

    The legendary cellist Pablo Casals was asked why he continued to practice at age 90. "Because I think I'm making progress," he replied.

    1 Reply Last reply
    0

    1/1

    19 Jan 2019, 11:19

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved