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. QT_ANDROID_NO_DEPLOY_QT_LIBS doesn't work
Qt 6.11 is out! See what's new in the release blog

QT_ANDROID_NO_DEPLOY_QT_LIBS doesn't work

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 463 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.
  • zappy.mansZ Offline
    zappy.mansZ Offline
    zappy.mans
    wrote on last edited by
    #1

    Hello bro,
    I want to exclude qt lib inside my apk file so I followed this document : https://www.qt.io/blog/using-qt-as-shared-system-libraries-in-android
    This is my CMakeList.txt file:
    cmake_minimum_required(VERSION 3.16)

    project(SimpleQt3 VERSION 0.1 LANGUAGES CXX)

    set(CMAKE_AUTOMOC ON)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)

    find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)

    qt_add_executable(appSimpleQt3
    main.cpp
    )

    qt_add_qml_module(appSimpleQt3
    URI SimpleQt3
    VERSION 1.0
    QML_FILES main.qml
    )

    set_target_properties(appSimpleQt3 PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    QT_ANDROID_NO_DEPLOY_QT_LIBS True
    QT_ANDROID_SYSTEM_LIBS_PREFIX /system/lib64/qt/
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
    )

    target_link_libraries(appSimpleQt3
    PRIVATE Qt6::Quick)

    install(TARGETS appSimpleQt3
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
    But after building the apk file, I decompile apk and it still contains qt lib.
    Could you help me to exclude qt lib from my apk file ?

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

      Hi,

      From a quick look look at the article you linked, you need Qt 6.4 at least.

      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