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

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 1.7k 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.
  • M Offline
    M Offline
    massi_z
    wrote on 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 jsulmJ 2 Replies Last reply
    0
    • M massi_z

      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 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
      0
      • M massi_z

        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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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
        0
        • K koahnig

          @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 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.

          jsulmJ 1 Reply Last reply
          0
          • M massi_z

            @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.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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
            0
            • jsulmJ jsulm

              @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 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
              • jsulmJ jsulm

                @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 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?

                jsulmJ 1 Reply Last reply
                0
                • M massi_z

                  @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?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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

                  • Login

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