Bug in Qt Creator 5.1.1 regarding icns on Mac OS X
-
I migrated an old project from Qt 4 to Qt5. This all went well except that after I generated a new Makefile the build failes with a no rule to make target regarding the icns.
After some fiddling around it seems that QMake doesn't generate a correct Makefile when there are spaces involved in the path. My path is: Qt Projects/Project/project.pro and the image is in Qt Projects/Project/images/project.icns.
The broken line in the makefile:
@Project.app/Contents/Resources/project.icns: /Users/patrickvollebregt/Documents/Qt Projects/Project/images/project.icns
@test -d Project.app/Contents/Resources/ || mkdir -p Project.app/Contents/Resources/
@$(DEL_FILE) Project.app/Contents/Resources/project.icns@The fix:
@Project.app/Contents/Resources/project.icns: /Users/patrickvollebregt/Documents/Qt\ Projects/Project/images/project.icns
@test -d Project.app/Contents/Resources/ || mkdir -p Project.app/Contents/Resources/
@$(DEL_FILE) Project.app/Contents/Resources/project.icns@For now I will stop using paths with spaces in it.
-
I think it's a known (and not worked on) "bug":https://bugreports.qt-project.org/browse/QTBUG-19505