Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 + QML on Android Things Developer Preview 5
Forum Updated to NodeBB v4.3 + New Features

Qt5 + QML on Android Things Developer Preview 5

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.5k Views 1 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.
  • J Offline
    J Offline
    jazzycamel
    wrote on 14 Aug 2017, 17:02 last edited by
    #1

    Just installed the new Android Things Developer Preview 5 on a Raspberry Pi 3 (with 7" official touchscreen) as this release supports OpenGL 2.0 (yay!). I tried running a really basic QML app (in fact the default from QtCreator) and, whilst it runs, I just get a black screen after the splash screen and the following cryptic warning from ADB:

    I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.gbm.so from the current namespace instead.
    W EGL-DRI2: Native format mismatch: 0x1 != 0x5

    The app runs fine on a phone and I can run a pure widget app with no problems.

    Anyone from the phone/embedded camp got any thoughts or suggestions as to whether this is solvable or a bug/limitation with the Things beta? The internet seems to think it might be a pixel format (RGBA rather than BGRA) issue?

    I'm using Qt 5.9.0 with NDK R15C and SDK 23 or 26.

    For the avoidance of doubt:

    1. All my code samples (C++ or Python) are tested before posting
    2. As of 23/03/20, my Python code is formatted to PEP-8 standards using black from the PSF (https://github.com/psf/black)
    R 1 Reply Last reply 16 Aug 2017, 15:27
    0
    • J jazzycamel
      14 Aug 2017, 17:02

      Just installed the new Android Things Developer Preview 5 on a Raspberry Pi 3 (with 7" official touchscreen) as this release supports OpenGL 2.0 (yay!). I tried running a really basic QML app (in fact the default from QtCreator) and, whilst it runs, I just get a black screen after the splash screen and the following cryptic warning from ADB:

      I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.gbm.so from the current namespace instead.
      W EGL-DRI2: Native format mismatch: 0x1 != 0x5

      The app runs fine on a phone and I can run a pure widget app with no problems.

      Anyone from the phone/embedded camp got any thoughts or suggestions as to whether this is solvable or a bug/limitation with the Things beta? The internet seems to think it might be a pixel format (RGBA rather than BGRA) issue?

      I'm using Qt 5.9.0 with NDK R15C and SDK 23 or 26.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 16 Aug 2017, 15:27 last edited by
      #2

      @jazzycamel
      i think you will have the best chances on the android-dev mailing list.
      If you find a solution be so kind and post it also here ;)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jazzycamel
        wrote on 17 Aug 2017, 09:24 last edited by
        #3

        @raven-worx
        I guessed that might be the case, I just wasn't sure if others had had issues with OpenGL and Qt on other embedded platforms, possibly with Android. I'm guessing it might be because this release is still a Beta and I think Google are focusing on 'native' apps written in pure Java against their SDKs first.

        Will post if I find a solution thought :)

        For the avoidance of doubt:

        1. All my code samples (C++ or Python) are tested before posting
        2. As of 23/03/20, my Python code is formatted to PEP-8 standards using black from the PSF (https://github.com/psf/black)
        1 Reply Last reply
        0

        1/3

        14 Aug 2017, 17:02

        • Login

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