Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 5 Posters 3.2k Views 2 Watching
  • 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
    daljit97
    wrote on last edited by
    #1

    I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:

    qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc"
    Invalid json output from qmlimportscanner.
    

    I am not really sure what the source of this error could be, I assume it must have to do with translation file but that's just a guess.

    C G 2 Replies Last reply
    1
    • D daljit97

      I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:

      qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc"
      Invalid json output from qmlimportscanner.
      

      I am not really sure what the source of this error could be, I assume it must have to do with translation file but that's just a guess.

      C Offline
      C Offline
      Cajus Pollmeier
      wrote on last edited by Cajus Pollmeier
      #2

      @daljit97 I've a similar problem here. In my case, the qmake generated android-*-deployment-settings.json contains the wrong path for qmake_qmake_qm_files.qrc.

      https://bugreports.qt.io/browse/QTBUG-81477

      1 Reply Last reply
      2
      • D Offline
        D Offline
        daljit97
        wrote on last edited by
        #3

        Thanks for the bug report. Unfortunately, for now I just conveniently switched back to Qt 5.13 and everything works there.

        1 Reply Last reply
        0
        • D daljit97

          I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:

          qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc"
          Invalid json output from qmlimportscanner.
          

          I am not really sure what the source of this error could be, I assume it must have to do with translation file but that's just a guess.

          G Offline
          G Offline
          GingerFerguson
          wrote on last edited by GingerFerguson
          #4

          @daljit97 said in Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory:

          I am trying to build my Qt app for Android using Qt 5.14 which allows the possibility to create an app bundle that allows to deploy one single file for different architecture. My app builds fine with 5.13.1 but when I try with Qt 5.14 I get this:

          qmlimportscanner: No such file or directory: "/home/casa/build-NotiziePLUS-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_0_for_Android-Release/qmake_qmake_qm_files.qrc"
          Invalid json output from qmlimportscanner.
          

          I am not really sure what the source of this error could be, I assume it mcdvoice survey must have to do with translation file but that's just a guess.

          i think you might be right bcoz i have similer problem.

          1 Reply Last reply
          0
          • ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            Android Templates are different between 5.13 and 5.14 - have you (re)created your templates on 5.14 ?

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            Aleksey_KA 1 Reply Last reply
            0
            • ekkescornerE ekkescorner

              Android Templates are different between 5.13 and 5.14 - have you (re)created your templates on 5.14 ?

              Aleksey_KA Offline
              Aleksey_KA Offline
              Aleksey_K
              wrote on last edited by
              #6

              @ekkescorner said in Unable to build project on Android with Qt 5.14: qmlimportscanner: No such file or directory:

              Android Templates are different between 5.13 and 5.14 - have you (re)created your templates on 5.14 ?

              I've regenerated templates, however got same errors:

              qmlimportscanner: No such file or directory: ".../Code/build-MyApp-Android_Qt_5_15_1_Clang_Multi_Abi-Debug/rcc/arm64-v8a/qmake_qmake_qm_files.qrc"
              Invalid json output from qmlimportscanner.
              19:38:59: The process "~/Qt/5.15.1/android/bin/androiddeployqt" exited with code 4.
              Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.1 Clang Multi-Abi)
              When executing step "Build Android APK"
              

              Any other ideas?

              1 Reply Last reply
              0
              • Aleksey_KA Offline
                Aleksey_KA Offline
                Aleksey_K
                wrote on last edited by
                #7

                Seems Qt bug: https://bugreports.qt.io/browse/QTBUG-81477?focusedCommentId=532414&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-532414 as it searches for qmake_qmake_qm_files.qrc in wrong dir.

                1 Reply Last reply
                0
                • Aleksey_KA Offline
                  Aleksey_KA Offline
                  Aleksey_K
                  wrote on last edited by Aleksey_K
                  #8

                  Nevermind, solved, removed unncecessary assignment RCC_DIR = $${OUT_PWD}/rcc in old project .pro file.

                  1 Reply Last reply
                  1

                  • Login

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