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

qmake with MinGW does not call mkdir -p

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.4
    • 4.7.3
    • Build tools: qmake
    • None
    • Windows XP32 SP3 and also Windows 7, together with MinGW

    Description

      When the INSTALLS feature of qmake shall create some directory, it calls mkdir. On a standard Windows installation this calls the mkdir version of windows which creates all non-existent directories in the path (e.g. mkdir a\b\c will create a and b and c also if b and c do not exist) If a Linux shell is available (!isEmpty(QMAKE_SH) in the <QTDIR>\mkspecs\win32-g++) this calls mkdir from Mingw/MSys which does NOT create intermediate directories. So sometimes the make process crashes when creating the directory.

      This may be resolved by changing the line:
      QMAKE_MKDIR = mkdir
      to
      QMAKE_MKDIR = mkdir -p
      in <QTDIR>\mkspecs\win32-g++, within the !isEmpty(QMAKE_SH)

      { ... }

      block (see attatched, changed file!).

      In the Unix makespecs this is set the right way via in <QTDIR>/mkspecs/common/linux.conf .

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jkriege2 Jan Krieger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes