[Qbs] qbs 1.8.1 tools/version.h not installed?
Andrzej Telszewski
atelszewski at gmail.com
Sun Jul 9 17:19:52 CEST 2017
On 09/07/17 10:15, Andrzej Telszewski wrote:
> On 09/07/17 09:40, Andrzej Telszewski wrote:
>> Hi,
>>
>> I'm building from source.
>> Shouldn't "tools/version.h" be installed when qbs is installed?
>>
>> tools/version.h is included by qtenvironment.h and qtenvironment.h
>> gets installed.
>>
>> The problem is Qt Creator fails to build, because of missing
>> tools/version.h.
>>
>> I'm using source tarballs from github.
>>
>> Thanks in advance.
>>
>
> One thing I found is that in qbs 1.8.0 "tools/version.h" is not included
> by "qtenvironment.h", so there is a change between 1.8.0 and 1.8.1 in
> that respect.
>
It looks like indeed "tools/version.h" should be installed.
After installing it:
diff --git a/src/lib/corelib/tools/tools.pri
b/src/lib/corelib/tools/tools.pri
index 0fa9114..fb0c225 100644
--- a/src/lib/corelib/tools/tools.pri
+++ b/src/lib/corelib/tools/tools.pri
@@ -125,7 +125,8 @@ qbs_enable_unit_tests {
$$PWD/generatorpluginmanager.h \
$$PWD/installoptions.h \
$$PWD/setupprojectparameters.h \
- $$PWD/toolchains.h
+ $$PWD/toolchains.h \
+ $$PWD/version.h
tools_headers.path = $${QBS_INSTALL_PREFIX}/include/qbs/tools
INSTALLS += tools_headers
}
Qt Creator builds fine.
--
Best regards,
Andrzej Telszewski
More information about the Qbs
mailing list