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

windeployqt does not support Qt compiled with -libinfix option

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.3.1
    • None
    • Windows
    • 9f6ad1459 (6.4), 832a33783 (dev), ffd49ecdf (tqtc/lts-6.2)

    Description

      With compiling Qt6 with the libinfix option plugins now have the infix inserted in the filename.  Of particular importance this results in the windows platform plugin being called qwindowsINFIX.dll for release or qwindowsINFIXd.dll for debug.

      When running windeployqt the error "Unable to find the platform plugin." is reported.  This is because the filter passed to findSharedLibraries in utils.cpp is specifically "qwindows" resulting in only the names "qwindows.dll" and "qwindowsd.dll" being valid.

      A workaround is to rename platform plugins to remove the infix parameter.

      The solution is probably to add the value of the infix parameter at compile time to the string nameFilter between lines 115 & 116 of utils.cpp.

      Attachments

        For Gerrit Dashboard: QTBUG-105820
        # Subject Branch Project Status CR V

        Activity

          People

            timothee.keller Timothée Keller
            jtjbrady Jonathan Brady
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes