Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74432

Cannot build Qt Quick application for Android with self-built MinGW Qt for Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.12
    • Build System
    • None
    • Android

    Description

      I built (shadow build) Qt for Android on Windows 10 with MinGW using the following script:

      @echo off
      cd C:\dev
      set buildDir=C:\dev\qt5.12-android-d
      
      if exist "%buildDir%" (
          rmdir /s /q %buildDir% || echo "Couldn't remove %buildDir%" && exit /b
      )
      mkdir %buildDir% || echo "Couldn't create %buildDir%" && exit /b
      cd %buildDir% || echo "Couldn't cd to %buildDir%" && exit /b
      
      set PATH=%PATH%;C:\dev\qt-unified\Tools\mingw730_64\bin
      call C:\dev\qt5.12\configure -xplatform android-clang -debug -developer-build -opensource -confirm-license -nomake tests -nomake examples -android-ndk C:\dev\Android\android-ndk-r19b-windows-x86_64 -android-sdk C:\dev\Android\SDKs -android-ndk-host windows-x86_64 -android-toolchain-version 4.9 -android-ndk-platform android-23
      REM call C:\dev\qt-unified\Tools\QtCreator\bin\jom.exe
      call mingw32-make
      

      When I try to build a Qt Quick application using that Qt build, I get the following error:

      Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
      Stripping libraries to minimize size.
      Updating Android package files with project settings.
        -- res/values/libs.xml
        -- AndroidManifest.xml 
      Pregenerating entry list for assets file engine.
      Building the android package failed!
      12:40:13: The process "C:\dev\qt5.12-android-d\qtbase\bin\androiddeployqt.exe" exited with code 14.
      Error while building/deploying project untitled8 (kit: qt5.12-mingw-android-d)
      When executing step "Build Android APK"
      12:40:13: Elapsed time: 00:10.
      

      Empty Qt Quick application project: untitled8.zip

      Verbose build output: verbose-build-log.txt

      Build directory contents: tree.log

      Kit:

      Qt version info as reported by Creator:

      Name:
      Qt 5.12.2 (qt5.12-mingw-android-d)
      ABI:
      arm-linux-android-elf-32bit
      Source:
      C:\dev\qt5.12\qtbase
      mkspec:
      android-clang
      qmake:
      C:\dev\qt5.12-android-d\qtbase\bin\qmake.exe
      Default:
      debug
      Version:
      5.12.2
      QMAKE_SPEC
      win32-g++
      QMAKE_VERSION
      3.1
      QMAKE_XSPEC
      android-clang
      QT_HOST_BINS
      C:\dev\qt5.12-android-d\qtbase\bin
      QT_HOST_DATA
      C:\dev\qt5.12-android-d\qtbase
      QT_HOST_LIBS
      C:\dev\qt5.12-android-d\qtbase\lib
      QT_HOST_PREFIX
      C:\dev\qt5.12-android-d\qtbase
      QT_INSTALL_ARCHDATA
      C:\dev\qt5.12-android-d\qtbase
      QT_INSTALL_BINS
      C:\dev\qt5.12-android-d\qtbase\bin
      QT_INSTALL_CONFIGURATION
      
      QT_INSTALL_DATA
      C:\dev\qt5.12-android-d\qtbase
      QT_INSTALL_DEMOS
      C:\dev\qt5.12-android-d\qtbase\examples
      QT_INSTALL_DOCS
      C:\dev\qt5.12-android-d\qtbase\doc
      QT_INSTALL_EXAMPLES
      C:\dev\qt5.12-android-d\qtbase\examples
      QT_INSTALL_HEADERS
      C:\dev\qt5.12-android-d\qtbase\include
      QT_INSTALL_IMPORTS
      C:\dev\qt5.12-android-d\qtbase\imports
      QT_INSTALL_LIBEXECS
      C:\dev\qt5.12-android-d\qtbase\bin
      QT_INSTALL_LIBS
      C:\dev\qt5.12-android-d\qtbase\lib
      QT_INSTALL_PLUGINS
      C:\dev\qt5.12-android-d\qtbase\plugins
      QT_INSTALL_PREFIX
      C:\dev\qt5.12-android-d\qtbase
      QT_INSTALL_QML
      C:\dev\qt5.12-android-d\qtbase\qml
      QT_INSTALL_TESTS
      C:\dev\qt5.12-android-d\qtbase\tests
      QT_INSTALL_TRANSLATIONS
      C:\dev\qt5.12-android-d\qtbase\translations
      QT_SYSROOT
      
      QT_VERSION
      5.12.2
      

      Qt Creator version:

      Qt Creator 4.8.1
      Based on Qt 5.12.0 (MSVC 2015, 32 bit)
      Built on Jan 15 2019 22:17:12
      From revision e8df914ef2
      

      Java version:

      java version "1.8.0_201"
      Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
      Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
      

      The NDK is android-ndk-r19b-windows-x86_64.

      Attachments

        1. qtbug74432-build-output-after-workaround.txt
          94 kB
        2. qtbug74432-mingw-android-kit.PNG
          qtbug74432-mingw-android-kit.PNG
          19 kB
        3. tree.log
          3 kB
        4. untitled8.zip
          2 kB
        5. verbose-build-log.txt
          14 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              andysh Andy Shaw
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes