[Qt-interest] INCLUDEPATH / LIBS with blank spaces
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed May 20 08:18:51 CEST 2009
Hi Miguel,
please write to the qt-interest at trolltech.com list instead, not to me in private, thanks.
Miguel Cardenas wrote on Wednesday, May 20, 2009 3:59 AM:
> ..
> I can't since it is an installed package (C:\Program Files\MySQL
> 6.0\...) and renaming the directory would break dependencies... By
> now I copied by hand lib/include libraries to C:\ and it "solved" the
> problem by now, but it is a nasty trick... is it really impossible to
> use pathnames with blanks?
Well, my comment about renaming the include directories - while certainly valid as a "everything else fails"-solution - was not meant very seriously. In fact, I could not resist making this suggestion with both a crying and laughing eye. Crying, because it reminded me of countless similar situations I "experienced" with computers (and the shortcomings thereof); laughing, because I think we will NEVER get rid of this "blanks in the path"-problem, not in the next hundred years to come (anyone wants to bet? ;). After all, how many years to computers exist and since how many years is it possible to have blanks in paths? ;)
But seriously, on Windows I am mostly developping with Visual Studio 2005 which /can/ cope with blanks in include paths. So you must be referring to qmake, which I am not sure whether it can handle blanks. As you already mentioned you have already tried "quoting the paths", which obviously did not work.
And googling for "qmake blank in path" came up with the following link which might or might not be directly related to your problem: it talks about the INSTALL option on Windows:
http://lists.trolltech.com/qt-interest/2006-07/thread00094-0.html
But the given solution there could help you as well: instead of using the "full" paths (with blanks), use the "8.3" DOS names, as in "Micros~1".
But also note that further down in the above thread it sais that the following /should/ actually work:
INCLUDEPATH *= "$${SDKPATH}/include"
(I assume that the "SDKPATH" would expand to something like "c:\Program Files\Microsoft\....", that is, with blanks in it.)
And at the very bottom Volker gives the following function:
http://doc.trolltech.com/4.1/qmake-function-reference.html#quote-string
(http://doc.trolltech.com/4.5/qmake-function-reference.html#quote-string)
Maybe that helps,
Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list