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

androiddeployqt searches plugin in wrong path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.1
    • None

    Description

      create an android-build with -DINSTALL_ARCHDATADIR=myarchdatadir

       

      Then try to build with cmake the sample androidnotifer project that is in qtbase.

       

      It will fail with "No such file or directory"

      Reading Android dependencies for Qt6Core_armeabi-v7a
      Reading Android dependencies for Qt6Gui_armeabi-v7a
      Reading Android dependencies for Qt6Widgets_armeabi-v7a
      /opt/android-sdk/ndk/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/x86_64-linux-gnu/qt6-base-android-armeabi-v7a/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      /opt/android-sdk/ndk/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/x86_64-linux-gnu/qt6-base-android-armeabi-v7a/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      Reading dependencies from /usr/lib/x86_64-linux-gnu/qt6-base-android-armeabi-v7a/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so
      /opt/android-sdk/ndk/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/x86_64-linux-gnu/qt6-base-android-armeabi-v7a/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      Scanning for QML imports.
      

      Since we used -DINSTALL_ARCHDATADIR=myarchdatadir
      the files are actually in
      /usr/lib/x86_64-linux-gnu/qt6-base-android-armeabi-v7a/myarchdatadir/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              ban F S
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes