Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Wrong qmake_qmake_immediate.qrc file location.
Qt 6.11 is out! See what's new in the release blog

Wrong qmake_qmake_immediate.qrc file location.

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 2 Posters 832 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    I get the following error while building my app for Android x86_64 with QT 6.2:

    Generating Android Package
      Input file: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-MyAppQt-deployment-settings.json
      Output directory: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-build/
      Application binary: MyAppQt
      Android build platform: android-30
      Install to device: No
    qmlimportscanner: No such file or directory: "E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/qmake_qmake_immediate.qrc"
    Invalid json output from qmlimportscanner.
    21:40:27: The process "E:\Qt\Qt6.2\windows\bin\androiddeployqt.exe" exited with code 4.
    Error while building/deploying project MyAppQt (kit: Android Qt 6.2.0 (android) Clang x86_64)
    When executing step "Build Android APK"
    

    qmake_qmake_immediate.qrc actually located in E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release, but not in E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/

    what can cause this?

    If I manually copy qmake_qmake_immediate.qrc file to E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/ folder the app builds successfully.

    D 1 Reply Last reply
    0
    • D Dmitriano

      I get the following error while building my app for Android x86_64 with QT 6.2:

      Generating Android Package
        Input file: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-MyAppQt-deployment-settings.json
        Output directory: E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/android-build/
        Application binary: MyAppQt
        Android build platform: android-30
        Install to device: No
      qmlimportscanner: No such file or directory: "E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/qmake_qmake_immediate.qrc"
      Invalid json output from qmlimportscanner.
      21:40:27: The process "E:\Qt\Qt6.2\windows\bin\androiddeployqt.exe" exited with code 4.
      Error while building/deploying project MyAppQt (kit: Android Qt 6.2.0 (android) Clang x86_64)
      When executing step "Build Android APK"
      

      qmake_qmake_immediate.qrc actually located in E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release, but not in E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/

      what can cause this?

      If I manually copy qmake_qmake_immediate.qrc file to E:/repos/examples/src/MyApp/build-MyAppQt-Android_Qt_6_2_0_android_Clang_x86_64-Release/x86_64/ folder the app builds successfully.

      D Offline
      D Offline
      Dmitriano
      wrote on last edited by
      #2

      @Dmitriano Tried to build qt5\qtbase\examples\corelib\platform\androidnotifier\androidnotifier.pro example and got the same effect.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yash001
        wrote on last edited by Yash001
        #3

        @Dmitriano said in Wrong qmake_qmake_immediate.qrc file location.:

        qmlimportscanner

        did you add find_package(Qt6 COMPONENTS QmlImportScanner) in your cmake file?

        D 1 Reply Last reply
        0
        • Y Yash001

          @Dmitriano said in Wrong qmake_qmake_immediate.qrc file location.:

          qmlimportscanner

          did you add find_package(Qt6 COMPONENTS QmlImportScanner) in your cmake file?

          D Offline
          D Offline
          Dmitriano
          wrote on last edited by
          #4

          @Yash001 no, but looks like qt_add_executable helped.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved