Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
4.7.2
-
None
-
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
- duplicates
-
QTBUG-75380 install qmldir uses incorrect install path on Android with Windows host
- Closed
- is duplicated by
-
QTBUG-44810 qmake: INSTALLS += ... generates invalid paths
- Closed
- relates to
-
QTCREATORBUG-9182 android: make install repeats the whole source path under INSTALL_ROOT
- Closed