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

androiddeployqt fails with message that neither libqtforandroid.so or libqtforandroidGL.so are included

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.14, 5.15, 6.2.8, 6.5.1, 6.6.0
    • 5.15
    • None
    • QtCreator 4.12.4, Qt 5.15.0, NDK 21.1.6352462, JDK 1.8.0.251, Windows 10 Prof. , Platform 29.0
    • Android
    • 147e6281c (dev), a9c8870b5 (dev), 6e09b6481 (6.4), bb01e0bc0 (6.5), 47e5e4c9f (tqtc/lts-6.2), 2b966fe7a (tqtc/lts-5.15), 92746da86 (6.4), d670ce853 (6.5), 5d2c0991e (tqtc/lts-5.15), da273fed3 (tqtc/lts-6.2)
    • 2023wk10FOQtforAndroid

    Description

      androiddeployqt fails with message when building a QBS project for Android with Qt 5.15.0 for multi ABI.

      "No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one."

      Steps to reproduce issue (with Powershell):

      1. $qbs setup-android --settings-dir settings --ndk-dir <path to ndk> --sdk-dir <path to sdk> --qt-dir <path to qt> my_android
      1. $qbs build --settings-dir "settings" profile:my_android

      It generally also occurs with QtCreator.

      An example project is attached: Unable to embed resource: qbs.issue.androiddeployqt.zip of type application/zip

      The problem  seems to exist in the area of ​​line 1292 in

      https://github.com/qt/qtbase/blob/1c571e5fe7a31e7accb04b37a1d3bd7c8855d05c/src/tools/androiddeployqt/main.cpp#L1292-L1293

      Maybe a reason in this context could be that in Qt 5.15 the libqtforandroid.so (e.g. in Qt 5.13) is named libplugins_platforms_qtforandroid_armeabi-v7a.so in Qt 5.15 that is having the target as suffix.

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              codezeug codezeug
              Vladimir Minenko Vladimir Minenko
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: