Space in QT install path on MacOS
-
Hi,
I have installed QTCreator on Mac in a path containing a space (/Volumes/Macintosh HD/). Now I have a Problem with building my application, because qmake escapes the space twice for the clang-lib (all other lib paths are properly escaped):
... -F/Volumes/Macintosh\\ HD/QTCreator/5.7/clang_64/lib -F/Volumes/Macintosh\ HD/...
which gives an error message when linking:
clang: error: no such file or directory: 'HD/QTCreator/5.7/clang_64/lib'
Is there a way to fix this aside from not installing QTCreator in a path without spaces?
Best regards,
Torstenedit: had to escape the '\'
-
@Torsten-S. Can I see the pro file? Also you could try using quotes instead of escaping the spaces.
-
Hi and welcome to devnet,
The only workaround currently AFAIK is to use a symlink without space.
-
Hi ambershark and SGaist,
thanks for the answers. I have been unable to read this forum for a while so I could not reply sooner.
@ambershark said in Space in QT install path on MacOS:
@Torsten-S. Can I see the pro file? Also you could try using quotes instead of escaping the spaces.
I have copied the offending line from the .pro file in my answer above. Also I tried both single and double quotes, it did not work either. But ...
@SGaist said in Space in QT install path on MacOS:
Hi and welcome to devnet,
The only workaround currently AFAIK is to use a symlink without space.
I thought that might be the case and reinstalled it on a different drive with no space in the path name. So the problem is solved for me, although it might still be a good idea to fix this in the code sometime.
I try to mark this topic as solved next :)
Best regards,
Torsten