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

multi ABI build not working Qt 5.14

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0 Alpha
    • Build System
    • None
    • Android

    Description

      As the note on this page (https://wiki.qt.io/New_Features_in_Qt_5.14) I tried to built a project in multi abi mode. 

      The first error is that by default multi abi not working. After adding below line to pro file Qt tried to build by these abis, and did it. The source compiled into seprated folders of these abis.

           ANDROID_ABIS += arm64-v8a armeabi-v7a x86_64 x86

      But in the last step of APK creating these errors occurred:

       

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5QuickControls2_x86_64.so'

      make[1]: Leaving directory `/doc/Dev/Qt/build/transport/Android_for_Clang_Qt_5_14_0_for_Android_ARMv7/Debug'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Quick_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Widgets_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Gui_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5QmlModels_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Qml_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Network_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5AndroidExtras_x86_64.so'

      clang++: error: no such file or directory: '/home/hamed/Qt/5.14.0/android_armv7/lib/libQt5Core_x86_64.so'

      make[1]: *** [libtransport_x86_64.so] Error 1

      make: *** [x86_64-all] Error 2

      18:16:38: The process "/opt/apps/android-ndk-r20/prebuilt/linux-x86_64/bin/make" exited with code 2.

      Error while building/deploying project transport (kit: Android for (Clang Qt 5.14.0 for Android ARMv7))

      When executing step "Make"

      18:16:38: Elapsed time: 02:41.

       

      As you can see clang try to find a file in invalid path. For example the below path is incorrect

      /home/hamed/Qt/5.14.0/android_armv7/lib/libQt5QuickControls2_x86_64.so

      And the correct path for this file is:

      /home/hamed/Qt/5.14.0/android_x86_64/lib/libQt5QuickControls2_x86_64.so

       

      Note 1: I've selected kit android_armv7 for this project

      Note 2: All settings is OK and in single abi mode (the default settings) project compiles and apk created.

      Note 3: I've openned these files:

        Makefile.Armeabi-v7a, Makefile.Arm64-v8a, Makefile.X86_64, Makefile.X86

      All of them contains invalid path in LIBS variable

      Attachments

        Issue Links

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

          Activity

            People

              taipan BogDan Vatra
              blackdal Hamed Masafi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes