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. Nested Android CMake project - how to set androiddeployqt --input parameter
Qt 6.11 is out! See what's new in the release blog

Nested Android CMake project - how to set androiddeployqt --input parameter

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 389 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.
  • R Offline
    R Offline
    Ray Gray
    wrote on last edited by
    #1

    Consider hierarchical CMake project (for Android) with the 'top' project pointing to an actual app's folder:

    root
    |-- CMakeLists.txt (top)
    |-- app
    |---- CMakeLists.txt (app)

    # CMakeLists.txt top:
    
    cmake_minimum_required(VERSION 3.14)
    project(Top)
    add_subdirectory(app)
    
    # CMakeLists.txt app:
    cmake_minimum_required(VERSION 3.14)
    project(MyApp)
    ...
    qt6_finalize_executable(MyApp)
    

    Everything builds as expected (from the QtCreator). However, hitting the F5 for deploying (and running) fails:

    No target architecture defined in json file
    

    One solution is to copy the android-AndroidApp-deployment-settings.json from the app folder to the root.

    Is there a more elegant way by telling the androiddeployqt where to find the deployment-settings.json file (i.e. how to set the --input parameter for the androiddeployqt)? I've played with qt_android_generate_deployment_settings and qt_android_add_apk_target with no avail....

    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