[QBS] Regression with Qbs 1.6 and Bullseye Coverage

Epting, Thomas thomas.epting at stryker.com
Tue Aug 2 12:28:50 CEST 2016


> > When the Bullseye "integration" for Visual Studio compilers is 
> > enabled, the installer adds one line to the end of each of the 
> > vcvarsXX.bat files in /<vc-install-dir>//VC/bin:
> >
> > @setPATH=c:/BullseyeCoverage/bin;%PATH%
> 
> Are you sure that it was ever working with this particular compiler executable? AFAIK the bat file was always looked up relative to cl.exe. 
> So calling setup-toolchains --detect using above PATH should have complained in 1.5...

Yes, we've been using it for about a year now (I think since QtCreator 3.6).

> > <...>\MsvcProbe.qbs:47: error: Error: Detecting the MSVC build 
> > environment failed: Cannot find 'C:\BullseyeCoverage\vcvarsall.bat'.

Interestingly, if doing it all manually (without QtCreator) it seems to work.

>>> qbs --version
1.6.0

>>> qbs config --settings-dir c:\tmp\qbs16 --list

>>> qbs setup-toolchains --settings-dir c:\tmp\qbs16 --type msvc c:\programs\mvs12\vc\bin\cl.exe mvs12
Setting up profile 'mvs12'.
Profile 'mvs12' created for 'C:\programs\mvs12\vc\bin\cl.exe'.

>>> qbs config --settings-dir c:\tmp\qbs16 --list
profiles.mvs12.cpp.compilerVersionMajor: "18"
profiles.mvs12.cpp.toolchainInstallPath: "C:/programs/mvs12/vc/bin"
profiles.mvs12.qbs.architecture: "x86"
profiles.mvs12.qbs.targetOS: "windows"
profiles.mvs12.qbs.toolchain: "msvc"

>>> qbs build --file c:\tmp\demo.qbs --settings-dir c:\tmp\qbs15 debug profile:mvs12
No build graph exists yet for this configuration.
Resolving project for configuration debug
Setting up build graph for configuration debug
Building for configuration debug
compiling main.cpp
linking demo.exe
embedding manifest into demo.exe
Build done for configuration debug.

In QtCreator with a similar kit however, opening the same project results in the error message from MsvcProbe.

So I assume the problem is more related to QtCreator?

> > Is this problem already known, is there a workaround or should I 
> > create a Jira issue?
> 
> Please create an issue.

Should it be created in Qbs or QtCreator project?

Thanks,
Thomas



--- demo.qbs ---
import qbs
CppApplication {
    name: "demo"
    files: "main.cpp"
}

--- main.cpp ---
#include <iostream>
int main()
{
    std::cout << "hello, world\n";
}




More information about the Qbs mailing list