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. Is there any gui way to add runtime dependant plugins and qmls to android resources under bundled_in_assets in libs.xml

Is there any gui way to add runtime dependant plugins and qmls to android resources under bundled_in_assets in libs.xml

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 412 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.
  • NoWhereMan1979N Offline
    NoWhereMan1979N Offline
    NoWhereMan1979
    wrote on last edited by NoWhereMan1979
    #1

    #qt3d-editor #android
    The main challenge is to port the qt3d-editor project to android.
    I want to add almost all qt plugins and qmls into an android port of a qt app
    I've found that androiddeployqt cannot guess all runtime dependencies, so I must add them in android resources.
    According to the documents, those should be added in android template packege, in libs.xml under bundled_in_assets section.

    any help is appreciated.

    1 Reply Last reply
    0
    • NoWhereMan1979N Offline
      NoWhereMan1979N Offline
      NoWhereMan1979
      wrote on last edited by NoWhereMan1979
      #2

      after hours of searching and testing various suggestions, we found that androiddeployqt doesn't search in libraries for qml imports, seems it just searches the directory of app's standalone.pro file. so a some hackish suggest was to make a symlink to "../editorlib/qml" and the other one was to make a qml file in app's standalone.pro directory and import all qml modules in that file.
      someting like:
      @
      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtQuick.Layouts 1.2
      import QtQuick.Controls 1.4
      import QtQuick.Controls.Styles 1.4
      Page{}
      @
      we chose the first one and made the symlink.
      for having necessary libs in android apk adding next line to standalone.pro solved missing dependant libs in android.
      @
      QT += qml quick widgets 3dcore 3drender 3dextras 3dinput 3dlogic 3dquick 3drender-private core
      @
      and the app ran on android like a charm.
      also bonus point is that there is no need to create android template in project, no manifest editing or etc..

      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