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 console app supported on android?

Is console app supported on android?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.4k Views
  • 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.
  • V Offline
    V Offline
    vanferry
    wrote on last edited by
    #1

    Hi,
    I'm using Qt on mac with qt-opensource-mac-x64-android-5.3.1.dmg, I can compile and deploy qt examples to android device successfully.
    But when I create a console app with wizard, when I want to run it on device, I get

    @
    No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.
    Generating Android Package
    Input file: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/android-libqtapp.so-deployment-settings.json
    Output directory: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/android-build
    Application binary: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/libqtapp.so
    Android build platform: android-19
    Install to device: 015d14fec11c1612
    .....
    When executing step 'Deploy to Android device'
    00:47:15: Elapsed time: 00:01.
    @

    in Compile Output window.

    Can anyone give some advice? thank in advance.

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

      Hi,

      IIRC you need to add

      @QT += gui@

      to your pro file.

      It might look counter intuitive but currently the platform plugin containing all the low level stuff that is needed is there.

      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