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

Wrong CMAKE_BIN_SUFFIX for linguist tools in Qt5LinguistToolsConfig.cmake when crosscompiling

    XMLWordPrintable

    Details

    • Commits:
      6b8a875f630a554a43edaadcf1d6312ed4f19ffd

      Description

      When compiling Qt on Linux for crosscompiling to Windows, the IMPORTED_LOCATION of Qt5::lrelease is set to [...]/lrelease.exe. But this tool is built for the host system when cross compiling so the suffix .exe is wrong. The same problem exists for Qt5::lupdate.

      The issue is caused in linguist.pro by the line

      win32:CMAKE_BIN_SUFFIX = ".exe"

      I guess this line can be removed (but I cannot test in a native windows environment) because mkspecs/features/create_cmake.prf has the correct condition for host tools:

      equals(QMAKE_HOST.os, Windows): CMAKE_BIN_SUFFIX = ".exe"

      (Replacing the condition in linguist.pro does solve the problem.)

        Attachments

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

          Activity

            People

            Assignee:
            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            Reporter:
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes