Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Qt 5.15.0 for android on windows failed
QtWS25 Last Chance

Building Qt 5.15.0 for android on windows failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt for android
8 Posts 3 Posters 883 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.
  • M Offline
    M Offline
    massi_z
    wrote on 28 Sept 2020, 09:36 last edited by massi_z
    #1

    Hi everybody.
    I am currently building Qt 5.15.0 source for android on windows with mingw64-8.1 compiler but unfortunately, i get the following error.
    errorsqt.png
    What could be the cause of this error.

    i do appreciate your help.

    K J 2 Replies Last reply 28 Sept 2020, 10:52
    0
    • M massi_z
      28 Sept 2020, 09:36

      Hi everybody.
      I am currently building Qt 5.15.0 source for android on windows with mingw64-8.1 compiler but unfortunately, i get the following error.
      errorsqt.png
      What could be the cause of this error.

      i do appreciate your help.

      K Offline
      K Offline
      koahnig
      wrote on 28 Sept 2020, 10:52 last edited by
      #2

      @massi_z

      Hi and welcome to devnet forum

      What are the guidelines you are following for Qt compilation for Android?

      When you refer to MinGW64-8.1 this would be the compiler toolchain to be used for compilation for use with windows.

      Typically you need a different toolchain for your target platform.

      Vote the answer(s) that helped you to solve your issue(s)

      M 1 Reply Last reply 28 Sept 2020, 11:07
      0
      • M massi_z
        28 Sept 2020, 09:36

        Hi everybody.
        I am currently building Qt 5.15.0 source for android on windows with mingw64-8.1 compiler but unfortunately, i get the following error.
        errorsqt.png
        What could be the cause of this error.

        i do appreciate your help.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 28 Sept 2020, 10:56 last edited by
        #3

        @massi_z said in Building Qt 5.15.0 for android on windows failed:

        I am currently building Qt 5.15.0 source for android

        Why? Why don't you use prebuild Qt for Android?
        You should use the compiler provided with the Android NDK.

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

        M 1 Reply Last reply 28 Sept 2020, 11:33
        0
        • K koahnig
          28 Sept 2020, 10:52

          @massi_z

          Hi and welcome to devnet forum

          What are the guidelines you are following for Qt compilation for Android?

          When you refer to MinGW64-8.1 this would be the compiler toolchain to be used for compilation for use with windows.

          Typically you need a different toolchain for your target platform.

          M Offline
          M Offline
          massi_z
          wrote on 28 Sept 2020, 11:07 last edited by
          #4

          @koahnig Thanks alot.
          I use the guidelines provided in the link bellow:
          https://wiki.qt.io/Building_qt-android_on_windows
          except that i use android-clang compiler to compile qt source code.

          One question that has been on my mind is the difference between between -platform and -xplatform.

          J 1 Reply Last reply 28 Sept 2020, 11:11
          0
          • M massi_z
            28 Sept 2020, 11:07

            @koahnig Thanks alot.
            I use the guidelines provided in the link bellow:
            https://wiki.qt.io/Building_qt-android_on_windows
            except that i use android-clang compiler to compile qt source code.

            One question that has been on my mind is the difference between between -platform and -xplatform.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 28 Sept 2020, 11:11 last edited by
            #5

            @massi_z -platform specifies the host platform (Windows in your case). -xplatform specifies target platform when doing cross compilation (Android in your case). See "configure -h".

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

            M 1 Reply Last reply 28 Sept 2020, 11:19
            0
            • J jsulm
              28 Sept 2020, 11:11

              @massi_z -platform specifies the host platform (Windows in your case). -xplatform specifies target platform when doing cross compilation (Android in your case). See "configure -h".

              M Offline
              M Offline
              massi_z
              wrote on 28 Sept 2020, 11:19 last edited by
              #6

              @jsulm Thanks.
              I use this command to configure.
              "configure -static -release -opensource -confirm-license -prefix "C:\Qt5.15.0\qt-everywhere-src-5.15.0\build" -android-sdk %ANDROID_SDK_ROOT% -android-ndk %ANDROID_NDK_PATH% -android-ndk-platform android-28 -android-abis arm64-v8a,armeabi-v7a -nomake examples -nomake tests -platform win32-g++ -xplatform android-clang"
              Because I think the host is Windows, i used the version of MinGw mentioned in the site https://wiki.qt.io/MinGW

              1 Reply Last reply
              0
              • J jsulm
                28 Sept 2020, 10:56

                @massi_z said in Building Qt 5.15.0 for android on windows failed:

                I am currently building Qt 5.15.0 source for android

                Why? Why don't you use prebuild Qt for Android?
                You should use the compiler provided with the Android NDK.

                M Offline
                M Offline
                massi_z
                wrote on 28 Sept 2020, 11:33 last edited by
                #7

                @jsulm I use android-clang provided in path "D:\Android\android-ndk\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\bin" to compile code.
                Is Qt releasing prebuild version right now?

                J 1 Reply Last reply 28 Sept 2020, 11:34
                0
                • M massi_z
                  28 Sept 2020, 11:33

                  @jsulm I use android-clang provided in path "D:\Android\android-ndk\android-ndk-r21d\toolchains\llvm\prebuilt\windows-x86_64\bin" to compile code.
                  Is Qt releasing prebuild version right now?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 28 Sept 2020, 11:34 last edited by
                  #8

                  @massi_z said in Building Qt 5.15.0 for android on windows failed:

                  Is Qt releasing prebuild version right now?

                  Yes, you can install Qt for Android using online installer (or Qt Maintenance Tool if Qt is already installed).

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

                  1 Reply Last reply
                  0

                  5/8

                  28 Sept 2020, 11:11

                  • Login

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