Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.8.2
-
None
-
Mac OS X 10.7.3 Lion, Qt Creator 2.5, Qt 4.8.2
-
0d128aded5e06f98fd8957ee79d5cb588f252914
Description
On Mac OS X 10.7.3:
1) Download and open the attached Qt project in Qt Creator.
2) From Qt Creator's Project Tree open the qmakeInstallProblem.pro.
3) Note the following lines in the project file:
appSettings.files = $${PWD}/settings/* appSettings.path = "$${OUT_PWD}/Application Settings" # note the space character between "Application" and "Settings" INSTALLS += appSettings
4) From Qt Creator open Build -> Run qmake. You don't have to build the project.
5) Go to the build folder for the current build configuration. There should be only one file - "Makefile".
6) Open the make file and note the install and uninstall sections:
install_appSettings: first FORCE ... -$(INSTALL_FILE) .../settings/config1.txt ...\Application\ Settings/ ... uninstall_appSettings: FORCE ... -$(DEL_FILE) -r $(INSTALL_ROOT)/.../Application Settings/config1.txt ...
Notice that the:
1. install section mentions the path "Application Settings" as:
Application\ Settings
2. uninstall section mentions the "Application Settings" path differently:
Application Settings - this is wrong. The space character is recognized as such by the Terminal by adding the \ control character before it.
7) Now open up the /Applications/Utilities/Terminal and navigate to the build directory.
8) Type: make install - the build directory is populated with the directories and files specified by the two additions to the INSTALL qmake variable.
9) Now type in the Terminal: make uninstall - the files added by "make install" are not removed.