[QBS] Target pathnames getting too long on Windows
thomas.epting.stryker at gmail.com
Mon Sep 22 15:52:29 CEST 2014
I had never thought that, but even on current versions of Windows there is
a 260 character limit for file paths (see
This means that each single file path passed as an argument (e.g. to
compiler or linker) cannot be longer than 260 characters.
Now with the new target structure introduced in Qbs 1.3 one can easily
exceed this limit. In this version, the target structure is composed of
these these parts (at least for MSVC):
There are 29 characters which are "fixed". Consider <targetpath> and
<srcpath> having are about 70 chars each, and <profile> about 25. This is
not too much for a large project. You'll end up with 219 characters. In
this case, only 40 chars are left for <filename> and <productname>, which
sometimes simply isn't enough.
In my opinion (futer versions of) Qbs should consider this Windows limit
and provide a way around it. What do you think?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qbs