Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. configuring Qt to create android apps

configuring Qt to create android apps

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 299 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.
  • W Offline
    W Offline
    woodpecker
    wrote on 21 Mar 2025, 06:04 last edited by
    #1

    Hello!
    I am trying to configure the qt build to create android applications according to this instruction:
    https://doc.qt.io/qt-6/android-building.html .
    I downloaded android sdk and android ndk and placed them as indicated here:
    https://doc.qt.io/qt-6/android-getting-started.html .
    I have Linux, so in ~/Android/Sdk/.
    Also, I executed the commands:
    sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0" and
    sdkmanager "ndk;26.1.10909125" .
    I run:
    /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/configure -prefix my_installation_path -qt-host-path path_of_installed_qt6.8
    -android-abis x86_64 -android-sdk ~/Android/Sdk -android-ndk ~/Android/Sdk/ndk/26.1.10909125

    and I get the error:
    -- Configuring incomplete, errors occurred!
    See also "/home/.../qt-build-android/CMakeFiles/CMakeOutput.log".
    See also "/home/.../qt-build-android/CMakeFiles/CMakeError.log".
    CMake Error at /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/qtbase/cmake/QtProcessConfigureArgs.cmake:1139 (message):
    CMake exited with code 1.

    CMake Error at /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtIRProcessHelpers.cmake:173 (message):
    /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/qtbase/configure
    -top-level -prefix /home/.../qt6-android -qt-host-path /home/.../qt6
    -android-abis x86_64 -android-sdk /home/.../Android/Sdk-android-ndk
    /home/.../Android/Sdk/ndk/26.1.10909125 exited with status: 1

    Call Stack (most recent call first):
    /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error)
    /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure)
    /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelConfigureScript.cmake:17 (qt_tl_run_main_script) .

    CMakeError.log says:
    Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
    Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/.../Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin .

    What did I do wrong?
    Thanks in advance!

    J 1 Reply Last reply 21 Mar 2025, 06:12
    0
    • W woodpecker
      21 Mar 2025, 06:04

      Hello!
      I am trying to configure the qt build to create android applications according to this instruction:
      https://doc.qt.io/qt-6/android-building.html .
      I downloaded android sdk and android ndk and placed them as indicated here:
      https://doc.qt.io/qt-6/android-getting-started.html .
      I have Linux, so in ~/Android/Sdk/.
      Also, I executed the commands:
      sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0" and
      sdkmanager "ndk;26.1.10909125" .
      I run:
      /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/configure -prefix my_installation_path -qt-host-path path_of_installed_qt6.8
      -android-abis x86_64 -android-sdk ~/Android/Sdk -android-ndk ~/Android/Sdk/ndk/26.1.10909125

      and I get the error:
      -- Configuring incomplete, errors occurred!
      See also "/home/.../qt-build-android/CMakeFiles/CMakeOutput.log".
      See also "/home/.../qt-build-android/CMakeFiles/CMakeError.log".
      CMake Error at /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/qtbase/cmake/QtProcessConfigureArgs.cmake:1139 (message):
      CMake exited with code 1.

      CMake Error at /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtIRProcessHelpers.cmake:173 (message):
      /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/qtbase/configure
      -top-level -prefix /home/.../qt6-android -qt-host-path /home/.../qt6
      -android-abis x86_64 -android-sdk /home/.../Android/Sdk-android-ndk
      /home/.../Android/Sdk/ndk/26.1.10909125 exited with status: 1

      Call Stack (most recent call first):
      /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error)
      /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure)
      /home/.../Projects/cpp/qt/qt-everywhere-src-6.8.2/cmake/QtTopLevelConfigureScript.cmake:17 (qt_tl_run_main_script) .

      CMakeError.log says:
      Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
      Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
      Target: x86_64-unknown-linux-gnu
      Thread model: posix
      InstalledDir: /home/.../Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin .

      What did I do wrong?
      Thanks in advance!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Mar 2025, 06:12 last edited by
      #2

      @woodpecker Why are you trying to build Qt by yourself? You can simply install Qt for Android using Qt Online Installer.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        woodpecker
        wrote on 21 Mar 2025, 06:40 last edited by
        #3

        I would like to have all Qt libraries in one place, and not scattered across system folders.

        J 1 Reply Last reply 21 Mar 2025, 06:46
        0
        • W woodpecker
          21 Mar 2025, 06:40

          I would like to have all Qt libraries in one place, and not scattered across system folders.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 21 Mar 2025, 06:46 last edited by jsulm
          #4

          @woodpecker I don't get it: if you install Qt using the online installer then it will be installed in a folder in your user home folder (/home/USER_NAME/Qt by default).

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • W Offline
            W Offline
            woodpecker
            wrote on 21 Mar 2025, 06:57 last edited by
            #5

            So, to remove Qt you just need to delete the home/USER_NAME/Qt folder along with its contents?

            J 1 Reply Last reply 21 Mar 2025, 07:12
            0
            • W woodpecker
              21 Mar 2025, 06:57

              So, to remove Qt you just need to delete the home/USER_NAME/Qt folder along with its contents?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 21 Mar 2025, 07:12 last edited by
              #6

              @woodpecker yes

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • W Offline
                W Offline
                woodpecker
                wrote on 21 Mar 2025, 07:16 last edited by
                #7

                OK, I'll try now.
                Thanks.

                1 Reply Last reply
                0

                1/7

                21 Mar 2025, 06:04

                • Login

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