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

Error in androiddeployqt with custom install dirs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.12, 6.5.1
    • None
    • 2024wk04FOQtforAndroid

    Description

      When trying to build an android app I have this error reported in the log.
      Although there is is this error, the build finished successfully.
       

      /usr/lib/qt-android-6.5-host/bin/androiddeployqt --input /home/debci/androidnotifier/qmake-build/android-androidnotifier-deployment-settings.json --output /home/debci/androidnotifier/qmake-build/android-build --apk /home/debci/androidnotifier/qmake-build/android-build/androidnotifier.apk
      Generating Android Package
        Input file: /home/debci/androidnotifier/qmake-build/android-androidnotifier-deployment-settings.json
        Output directory: /home/debci/androidnotifier/qmake-build/android-build/
        Application binary: androidnotifier
        Android build platform: android-33
        Install to device: No
      /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so': No such file or directory
      /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so': No such file or directory
      /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/usr/lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so': No such file or directory
      Skipping createRCC
      

      Android build was configured this way:

      cd debian/build-arm64-v8a && cmake -DCMAKE_INSTALL_PREFIX=/usr
      -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc
      -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
      -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
      -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
      -GNinja -DCMAKE_VERBOSE_MAKEFILE=ON
      -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu
      --log-level=STATUS -DCMAKE_INSTALL_PREFIX=/usr
      -DINSTALL_BINDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/bin
      -DINSTALL_LIBDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a
      -DINSTALL_LIBEXECDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/libexec
      -DINSTALL_ARCHDATADIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a
      -DINSTALL_EXAMPLESDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/examples
      -DINSTALL_DATADIR=share/qt-android-6.5-arm64-v8a
      -DINSTALL_DESCRIPTIONSDIR=share/qt-android-6.5-arm64-v8a/modules
      -DINSTALL_DOCDIR=share/qt-android-6.5-arm64-v8a/doc
      -DINSTALL_SYSCONFDIR=lib/qt-android-6.5-arm64-v8a/etc/xdg
      -DINSTALL_INCLUDEDIR=include/aarch64-linux-gnu/qt-android-6.5-arm64-v8a
      -DINSTALL_PLUGINSDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/plugins
      -DINSTALL_TESTSDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/tests
      -DINSTALL_TRANSLATIONSDIR=share/qt-android-6.5-arm64-v8a/translations
      -DINSTALL_MKSPECSDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/mkspecs
      -DINSTALL_PUBLICBINDIR=lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/bin
      -DBUILD_WITH_PCH=OFF
      -DANDROID_SDK_ROOT=/builds/bastif/qt-android/android-sdk
      -DCMAKE_TOOLCHAIN_FILE=/builds/bastif/qt-android/r25b/android-ndk-r25b/build/cmake/android.toolchain.cmake
      -DANDROID_ABI=arm64-v8a -DQT_USE_CCACHE=ON -DQT_HOST_PATH=/usr
      -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/x86_64-linux-gnu/qt-android-6.5-host/cmake
      -DCMAKE_BUILD_TYPE=Release -DBUILD_qtwayland=OFF
      -DFEATURE_qtwebengine_build=OFF -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON ../..
      
      

      Then to build the example:

      + mkdir -p /home/debci/androidnotifier/qmake-build
      + cd /home/debci/androidnotifier/qmake-build
      + /usr/lib/aarch64-linux-gnu/qt-android-6.5-arm64-v8a/bin/qmake /tmp/autopkgtest-lxc.nccul331/downtmp/build.Gt0/src/qtbase/examples/corelib/platform/androidnotifier/androidnotifier.pro
      Info: creating stash file /home/debci/androidnotifier/qmake-build/.qmake.stash
      + make V=1 apk
      

      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:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes