Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Is it possible to build application and deploy it to android without any Qt libs?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to build application and deploy it to android without any Qt libs?

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 895 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
    JeriX
    wrote on last edited by
    #1

    I tried to accomplish this in this steps:

    1. .pro
      @CONFIG -= qt
      QT =@

    2. AndroidManifest.xml
      @<application android:hardwareAccelerated="true" android:label="@string/app_name"
      android:name="android.app.Application">@
      instead of
      @<application android:hardwareAccelerated="true" android:label="@string/app_name"
      android:name="org.qtproject.qt5.android.bindings.QtApplication">@

    3. Java
      my own Activity instead of QtActivity

    But then I've got an error from androiddeployqt:
    No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.

    Then I've rebuilt androiddeployqt with commented return:
    @if (plugin.isEmpty()) {
    fprintf(stderr, "No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.\n");
    //return false;
    }@

    And then I've finally managed to build and deploy my application into device.

    So the questions are:
    Is this the only way?
    If developers plan to add support for deploy without Qt libs?

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I don't think that this use case has been thought of. You can ask this on the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more oriented)

      You can also check the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not you could consider opening a new report providing a simple compilable example project to help implement this.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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