Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Deploying multiple apps at once to Android with Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Deploying multiple apps at once to Android with Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 511 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.
  • T Offline
    T Offline
    traits
    wrote on last edited by
    #1

    Hi all,

    System:
    Host: Qt Creator 3.3.0 on Windows, Qt 5.4.0, NDK 10d
    Device: Android 4.4.2 x86

    Subject says it all - how to do it?

    My project contains one library and two dependent example apps. They all compile fine, and can be successfully deployed, as long as they are single projects. The following configuration won't work, unfortunately:

    @
    TEMPLATE = subdirs
    CONFIG += ordered
    SUBDIRS =
    src
    examples/qt/simpleplot
    examples/qt/quickexample

    simpleplot.depends = src
    quickexample.depends = src
    @

    I played with 'ordered', commented all or parts of the lines containing 'depends' statements to no avail. What happens is, that only the 'simpleplot' example becomes installed, at times with strange side effects as:

    -The installed app is'nt always 'simpleplot' (save the name) but actually quickexample-

    The app crashes immediately (even deinstalling and rebuild + deployment doesn't help)

    (2) doesn't happen if "Clean Temporary Libraries Directory on Device" is pressed in Creators Run settings

    1. and 3) don't happen always, but 1) does.

    What certainly works is to comment out one of the app projects completely in the pro file from above. But how can I install both apps?

    edit: OK, (1) was my mistake and redundant. But the fact, that only one app installs remains.

    edi(2): What I found in the meantime, are command lines like this one:

    (...) /bin/i686-linux-android-g++ --sysroot=C:\android\ndk\10d/platforms/android-19/arch-x86/ -Wl,-soname,libquickexample.so -Wl, (...)

    Similarly 'libsimpleplot.so'. So the thing builds libraries and mixes them to some master app in spite of TEMPLATE=app in every pro and pri file for the application subprojects.

    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