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

`$$resource_file` is wrong on Release build, Qt 5.14.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.14.2
    • 5.14.1
    • Build tools: qmake
    • None
    • macOS Catalina 10.15.3
    • macOS
    • 495db2cd2bb9130864f2dd1291788288765dfe7a

      Combined with "lrelease embed_translations" config, the Release build fails on Qt 5.14.1.

      The following is the error message:

      /Users/futabanzu/Qt/5.14.1/clang_64/mkspecs/features/resources_functions.prf:70: Cannot write file /qmake_qmake_qm_files.qrc: Cannot create parent directory

      19:34:58: プロセス "/Users/futabanzu/Qt/5.14.1/clang_64/bin/qmake" はコード 3 で終了しました。

      プロジェクト FooBar のビルド・デプロイ中にエラーが発生しました (キット Desktop Qt 5.14.1 clang 64bit)

      ステップ "qmake" 実行中

       

      By modifying "resources_functions.prf" like the following, I found that the $$resource_file seems to be wrong.

       

      The expected behaviour (on the Debug build) is:

      Project MESSAGE: /Users/futabanzu/build-FooBar-Desktop_Qt_5_14_1_clang_64bit-Debug/qmake_qmake_qm_files.qrc

      (i.e. $$resource_file should be in the build directory)

       

      while the behaviour on the Release build is:

      Project MESSAGE: /qmake_qmake_qm_files.qrc

       

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

            jbornema Joerg Bornemann
            3c1u Hikaru Terazono
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes