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

Qt 5.14.0 apk with openssl 1.1.1d under ndk r20 cannot build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.0 Beta2
    • Build tools: qmake
    • None
    • 5.14.0-beta2, clang, ndk-r20
    • Android

    Description

      Then I build new empty project with Clang for Android API 21+ I give error:

      Skipping Aapt2Extractor: /root/.gradle/caches/modules-2/files-2.1/com.android.tools.build/aapt2/3.5.0-5435860/66865322667c9abda54bb508555ec3f93c676193/aapt2-3.5.0-5435860-linux.jar as it is up-to-date.
      /cf2/test-fail-build/android-build/res/values/libs.xml:12:7: Resource and asset merger: The element type "item" must be terminated by the matching end-tag "</item>".
          org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 7; The element type "item" must be terminated by the matching end-tag "</item>".
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
      

      This error file:

      cat /cf2/test-fail-build/android-build/res/values/libs.xml
      <?xml version='1.0' encoding='utf-8'?>
      <resources>
          <array name="qt_sources">
              <item>https://download.qt.io/ministro/android/qt5/qt-5.14</item>
          </array>
      
          <!-- The following is handled automatically by the deployment tool. It should
               not be edited manually. -->
      
          <array name="bundled_libs">
              <item>armeabi-v7a;crypto_1_1    <item>armeabi-v7a;ssl_1_1
          </array>
      
          <array name="qt_libs">
              <item>armeabi-v7a;c++_shared</item>
              <item>armeabi-v7a;Qt5Core_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5Gui_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5Network_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5Qml_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5QmlModels_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5Quick_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5QuickParticles_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5QmlWorkerScript_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5QuickTemplates2_armeabi-v7a</item>
              <item>armeabi-v7a;Qt5QuickControls2_armeabi-v7a</item>
          </array>
      
          <array name="load_local_libs">
              <item>armeabi-v7a;libplugins_platforms_qtforandroid_armeabi-v7a.so:libplugins_bearer_qandroidbearer_armeabi-v7a.so:libQt5QuickParticles_armeabi-v7a.so</item>
          </array>
      
      </resources>
      
      

      Step to reproduce:
      I rebuild from sources Qt 5.14.0-beta2 and install with this env:

      NDK_VERSION=r20
      ANDROID_NDK_ARCH=arch-arm c
      ANDROID_NDK_EABI=llvm c
      ANDROID_NDK_HOST=linux-x86_64 c
      ANDROID_NDK_TOOLCHAIN_PREFIX=arm-linux-androideabi c
      ANDROID_NDK_TOOLCHAIN_VERSION=4.9 c
      ANDROID_BUILD_TOOLS_REVISION=29.0.2

      and with options configure:

      -android-arch armeabi-v7a -android-ndk /android-ndk-r20 -xplatform android-clang
      

      Create
      new QML project (example stack-view)

      Create template for Android manifest

      include openssl plugin

      Build with and start deploy with:

      androiddeployqt --release --verbose --input android-test-fail-build-deployment-settings.json --output /cf2/test-fail-build/android-build --deployment bundled --android-platform android-28 --gradle --no-gdbserver
      
      

      Or extract archieve to preconfigured env and reproduce bug with:
      ./build-android-gradle-project test-fail-build.pro

      Addition: 5.14.0-beta2 can't compile from source for arm_v7 with ndk-r19c (attached files
      config-ndk-r19c.tar.gz and error-ndkr19c.txt)

      Attachments

        1. config-ndk-r19c.tar.gz
          175 kB
        2. error-ndkr19c.txt
          20 kB
        3. test-fail-build.tar.gz
          2.80 MB

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              homdx Homdx Homdx
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes