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. Correct way to use QT_ANDROID_EXTRA_LIBS
Forum Updated to NodeBB v4.3 + New Features

Correct way to use QT_ANDROID_EXTRA_LIBS

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 437 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.
  • Ahmed Yarub Hani Al NuaimiA Offline
    Ahmed Yarub Hani Al NuaimiA Offline
    Ahmed Yarub Hani Al Nuaimi
    wrote on last edited by
    #1

    I have an application based on Qt using latest Qt 6.2 beta. I'm trying to build an Android apk on Windows but the scripts are not including the required shared libraries to the apk. The only ones that I can see are the Qt ones. The code looks something like this:

    find_package(dep1 CONFIG REQUIRED)
    qt_add_executable(app_name ${SRCS})
    target_link_libraries(CloudCompanionStandalone PUBLIC dep1)
    

    The only way to do it is by adding the dependencies manually:

    set_property(TARGET app_name PROPERTY QT_ANDROID_EXTRA_LIBS "full/path/to/dep1.so")
    

    This works but I can imagine that the paths can be extracted from target properties somehow instead of adding them manually which is rather fragile. Note that some of the dependencies are built within the same project and others are supplied with vcpkg.

    1 Reply Last reply
    0
    • Ahmed Yarub Hani Al NuaimiA Offline
      Ahmed Yarub Hani Al NuaimiA Offline
      Ahmed Yarub Hani Al Nuaimi
      wrote on last edited by
      #2

      Looks like this is tracked here https://bugreports.qt.io/browse/QTBUG-94714?jql=text ~ QT_ANDROID_EXTRA_LIBS ORDER BY created DESC
      With a proposed solution here https://codereview.qt-project.org/c/qt/qtbase/+/365396

      1 Reply Last reply
      1

      • Login

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