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

qtenv2.bat is missing initialization of PATH to mingw toolchain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.7.0
    • 5.7.0 RC
    • Packaging & Installer
    • None
    • 072102c6fd833b4a68b5311bda8be9275b7ff970

      qtenv2.bat looks a bit suspicious:

      echo off
      echo Setting up environment for Qt usage...
      set PATH=C:\Qt\Qt5.7.0-rc\5.7\mingw53_32\bin;\bin;%PATH%
      cd /D C:\Qt\Qt5.7.0-rc\5.7\mingw53_32
      

      Notice that it is appending two paths, one to the qt binaries folder (which is correct), the other one is to a "\bin" folder. I suspect that part should refer to the mingw tools path.

      The consequence is that the "Qt 5.7 for Desktop (MinGW)" shortcut that is supposed to launch a command line shell with the environment ready for compiling Qt applications, will now launch a command line shell with an incomplete environment for compiling Qt applications (its missing the environment for the compiler etc).

      For experienced users this should not be a big hurdle, but for newcomers for Qt this might be a problem and does not exactly contribute to "love at first sight".

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

            iknd Iikka Eklund
            smd Jan Arve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes