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

Problems when creating directories with "make install" (no mkdir -p on Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.0
    • Build tools: qmake
    • None

    Description

      The mkspecs tell qmake how to make a directory. Unfortunately, while Unix platforms have mkdir -p, Windows does not. As a result if you have an install rule:

      foo.files = foo
      foo.path = /exists/missing/missing
      

      The Makefile ends up with a statement like this:

      if not exist /exists/missing/missing mkdir /exists/missing/missing
      

      Both "if not exist" and "mkdir" come from the mkspec.

      The problem with this statement is that it fails due to the first missing directory. mkdir cannot create multiple levels of directories.

      It would be great if qmake could generate code more like this:

      if not exist /exists mkdir /exists
      if not exist /exists/missing mkdir /exists/missing
      if not exist /exists/missing/missing mkdir /exists/missing/missing
      

      Attachments

        Issue Links

          Activity

            People

              buddenha Oswald Buddenhagen
              lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: