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

windeployqt expects qmlimportscanner to be in the same folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9, 6.10.0
    • None
    • Windows

      When using Qt in windows with a UNIX directory tree and `cmake install` to install stuff, `qmlimportscanner` ends up in `/share/qt6/bin/` whereas `windeployqt` ends up in `/bin`, but `windeployqt` expects `qmlimportscanner` to be in the same folder as itself:

      See https://invent.kde.org/qt/qt/qtbase/-/blob/v6.10.0/src/tools/windeployqt/qmlutils.cpp#L89

      ```
      const QString binary = QStringLiteral("qmlimportscanner");
      if (!runProcess(binary, arguments, QDir::currentPath(), &exitCode, &stdOut, &stdErr,
      errorMessage, timeout))
      return result;
      ```

      I submitted a fix in Msys2 [packaging](https://github.com/msys2/MINGW-packages/pull/26127), but they want to know your stance on this.

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

            owolff Oliver Wolff
            adelks Adel Kara Slimane
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes