Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31415

Deploying Qt examples fails with imported qt submodule build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 14.0.1
    • All Other Issues
    • None
    • Windows

    Description

      Qt Creator reports error when trying to run examples and tests from imported Qt build

      I configure Qt Multimedia like this:

      K:\qt\android\qtmultimedia> ..\android\qtbase\bin\qt-configure-module.bat ..\qt6\qtmultimedia -- -DQT_BUILD_TESTS=ON -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES_AS_EXTERNAL=OFF 

      Then, I open QtMultimedia/CMakeLists.txt in Qt creator, and import the configured Qt build.

      When I select the "mediaplayerexample" target, and build it, I get this error:

      16:18:52: Running steps for project QtMultimedia...
      16:18:52: Starting: "C:\Program Files\CMake\bin\cmake.exe" --build K:/qt/android/qtmultimedia --target mediaplayerexample
      ninja: no work to do.
      16:18:52: The process "C:\Program Files\CMake\bin\cmake.exe" exited normally.
      16:18:52: Starting: "K:\qt\android\host\qtbase\bin\androiddeployqt.exe" --input K:/qt/android/qtmultimedia/examples/multimedia/video/mediaplayer/android-mediaplayerexample-deployment-settings.json --output K:/qt/android/qtmultimedia/examples/multimedia/video/mediaplayer/android-build --android-platform android-34 --jdk "C:/Program Files/Eclipse Adoptium/jdk-17.0.10.7-hotspot" --gradle
      Cannot find application binary in build dir K:/qt/android/qtmultimedia/examples/multimedia/video/mediaplayer/android-build//libs/arm64-v8a/libmediaplayerexample_arm64-v8a.so.
      16:18:52: The process "K:\qt\android\host\qtbase\bin\androiddeployqt.exe" exited with code 2.
      Error while building/deploying project QtMultimedia (kit: Android Qt 6.9.0 (android) Clang arm64-v8a)
      When executing step "Build Android APK"
      16:18:52: Elapsed time: 00:00. 

       The libmediaplayerexample_arm64-v8a.so library is not found in K:/qt/android/qtmultimedia/examples/multimedia/video/mediaplayer/android-build//libs/arm64-v8a/ but in K:\qt\android\qtmultimedia\examples\multimedia\video\mediaplayer

      This makes Qt for Android development hard, because I can't debug from Qt Creator.

      See User:Joger/Building Qt Multimedia for Android - Qt Wiki for a full example.

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              johanseg Jøger Hansegård
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes