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. Build Qt Based Prjoect Qxmpp for Android 35
Forum Updated to NodeBB v4.3 + New Features

Build Qt Based Prjoect Qxmpp for Android 35

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 147 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.
  • F Offline
    F Offline
    fep29
    wrote on 6 Mar 2025, 19:27 last edited by
    #1

    Any hints on building Qxmpp project (Qt Core based) for Android 35?

    Reading around on the problem I found an old build script here:

    https://invent.kde.org/network/kaidan/-/blob/5f9abb28050c4b5f8cf135166b156bb1cdb7cffd/utils/build-android.sh#L136

    Using that, I cobbled this together:

    cmake .. \
        -DCMAKE_TOOLCHAIN_FILE="$HOME/Library/Android/sdk/ndk/29.0.13113456/build/cmake/android.toolchain.cmake" \
        -DECM_ADDITIONAL_FIND_ROOT_PATH="$HOME/QtAndroid/6.8.2/android_arm64_v8a" \
        -DANDROID_NDK="$HOME/Library/Android/sdk/ndk/29.0.13113456" \
        -DANDROID_SDK_ROOT="$HOME/Library/Android/sdk" \
        -DANDROID_SDK_BUILD_TOOLS_REVISION=35.0.0 \
        -DANDROID_PLATFORM=android-35 \
        -DCMAKE_PREFIX_PATH="$HOME/QtAndroid/6.8.2/android_arm64_v8a" \
        -DBUILD_EXAMPLES=OFF \
        -DBUILD_TESTS=OFF
    

    But getting this error:

    CMake Error at CMakeLists.txt:22 (find_package):
      Could not find a package configuration file provided by "QT" with any of
      the following names:
    
        Qt6Config.cmake
        qt6-config.cmake
        Qt5Config.cmake
        qt5-config.cmake
    
      Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
      a directory containing one of the above files.  If "QT" provides a separate
      development package or SDK, be sure it has been installed.
    

    Though I clearly see Qt6Config.cmake:

    my-MBP Qt6 % pwd             
    /path/to/QtAndroid/6.8.2/android_arm64_v8a/lib/cmake/Qt6
    my-MBP Qt6 % cat Qt6Config.cmake
    

    I have also tried modifying the CMAKE_PREFIX_PATH to: lib/cmake/Qt6 and everything in between.

    Hints?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fep29
      wrote on 6 Mar 2025, 22:30 last edited by fep29 2 days ago
      #2

      Answered my question here:

      https://github.com/qxmpp-project/qxmpp/issues/689

      One viable option is to use Craft automated build tool.

      https://develop.kde.org/docs/packaging/android/building_applications/

      As Linus pointed out. Tried it out. Seems to have worked.

      1 Reply Last reply
      0
      • F fep29 has marked this topic as solved on 6 Mar 2025, 22:41

      2/2

      6 Mar 2025, 22:30

      • Login

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