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

On Windows, INSTALL_ROOT cannot target a different drive letter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Won't Do
    • Affects Version/s: 4.7.2
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Microsoft Windows

      Description

      Here is a typical install rule in a (NMAKE-compatible) makefile produced by qmake:

      install_target: first FORCE
              @$(CHK_DIR_EXISTS) z:$(INSTALL_ROOT)\qt\arch\win32 $(MKDIR) z:$(INSTALL_ROOT)\qt\arch\win32
              -$(INSTALL_FILE) "..\..\..\..\lib\QtWebKit.prl" "z:$(INSTALL_ROOT)\qt\arch\win32\QtWebKit.prl"
              -$(INSTALL_FILE) "..\..\..\..\lib\QtWebKit4.lib" "z:$(INSTALL_ROOT)\qt\arch\win32\QtWebKit4.lib"
              -$(INSTALL_FILE) "$(DESTDIR_TARGET)" "z:$(INSTALL_ROOT)\qt\arch\win32\$(TARGET)"
      

      I can set INSTALL_ROOT so that "make install" copies files to a directory other than the configured prefix of \qt\arch\win32\ on the Z: drive. However, if Z: is a read-only network drive, then I am SOL. There is no way to copy out an install tree so that I can then put it into a zipfile and send it to an admin to place it on the network drive.

      How about something like

      INSTALL_ROOT_DRIVE = z:
      
      install_target: first FORCE
              @$(CHK_DIR_EXISTS) $(INSTALL_ROOT_DRIVE)$(INSTALL_ROOT)\qt\arch\win32 $(MKDIR) $(INSTALL_ROOT_DRIVE)$(INSTALL_ROOT)\qt\arch\win32
              -$(INSTALL_FILE) "..\..\..\..\lib\QtWebKit.prl" "$(INSTALL_ROOT_DRIVE)$(INSTALL_ROOT)\qt\arch\win32\QtWebKit.prl"
              -$(INSTALL_FILE) "..\..\..\..\lib\QtWebKit4.lib" "$(INSTALL_ROOT_DRIVE)$(INSTALL_ROOT)\qt\arch\win32\QtWebKit4.lib"
              -$(INSTALL_FILE) "$(DESTDIR_TARGET)" "$(INSTALL_ROOT_DRIVE)$(INSTALL_ROOT)\qt\arch\win32\$(TARGET)"
      

      ? This would allow the flexibility I need, without breaking the existing semantics of INSTALL_ROOT.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              skunk Daniel Richard G.
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes