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. Android multi-ABI build for project with service (subdirectories)
Qt 6.11 is out! See what's new in the release blog

Android multi-ABI build for project with service (subdirectories)

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

    Is it possible to do multi-arch build for project with subdirectories?

    I tried minimal example for this: project "example" with two subdirectories "app" (that uses qt_add_executable()) and "service" (that uses qt_add_library()), enabled QT_ANDROID_BUILD_ALL_ABIS, and "Build Android App Bundle" in QtCreator

    example_project_tree.PNG

    app lib (libapp_*.so) generated for all arch's as expected, but service lib generated only for single arch (that is current kit, e.g. "libservice_arm64-v8a.so")

    Looks like that is flaw/bug in Qt 6.4.2 or i missing something?

    M 1 Reply Last reply
    0
    • M morte

      Is it possible to do multi-arch build for project with subdirectories?

      I tried minimal example for this: project "example" with two subdirectories "app" (that uses qt_add_executable()) and "service" (that uses qt_add_library()), enabled QT_ANDROID_BUILD_ALL_ABIS, and "Build Android App Bundle" in QtCreator

      example_project_tree.PNG

      app lib (libapp_*.so) generated for all arch's as expected, but service lib generated only for single arch (that is current kit, e.g. "libservice_arm64-v8a.so")

      Looks like that is flaw/bug in Qt 6.4.2 or i missing something?

      M Offline
      M Offline
      morte
      wrote on last edited by
      #2

      This issue was caused by missing add_dependency() between app and service

      1 Reply Last reply
      1
      • M morte has marked this topic as solved on

      • Login

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