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. Android deployment with Ministro
Forum Updated to NodeBB v4.3 + New Features

Android deployment with Ministro

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidqt 5.7deployingministro
21 Posts 2 Posters 11.6k 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.
  • raven-worxR raven-worx

    @KroMignon said in Android deployment with Ministro:

    just to pass this annoying question about JNI. I have made a simple test, on which I removed all JNI functions (from Java => C++)
    This also didn't work.

    same error/exception?!?!

    KroMignonK Offline
    KroMignonK Offline
    KroMignon
    wrote on last edited by
    #21

    @raven-worx : I've got an answer from BogDan Vatra, in fact Ministro does not support Qt 5.7.x
    This is why nothing works when generating APK with Ministro.

    Qt5.7.x support will be added some time later. This is a bad news for me... I can't wait for a Ministro update.

    So I found a workaround, I give it here, perhaps this could help someone else.

    I have create a APK with Qt lib included, in release mode but not signed.
    From this APK, which is in fact a ZIP archive, I've extract all Qt specific stuff:

    • assets/--Added-by-androiddeployqt--/*
    • lib/armeabi-v7a/libplugins_*
    • lib/armeabi-v7a/libqml_*
    • lib/armeabi-v7a/libQt5*
    • lib/armeabi-v7a/libgnustl_shared

    I copy those files on device, into internal storage.
    Then, I generate new APK (same configuration: release, with Qt libs and not signed).
    To generate the update APK, I remove from this the Qt specific stuff (so APK size is now less than 2MB).
    I transfer this APK on device, on device side I insert missed Qt libs into.
    Then I start APK installation on device.

    This a very dirty way to do it, but it WorksForMe(TM)

    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

    1 Reply Last reply
    1

    • Login

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