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



  • 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.


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.