[Qbs] Environment with AutotestRunner

Christian Kandeler christian.kandeler at qt.io
Tue Dec 1 10:50:14 CET 2020


On 12/1/20 8:59 AM, Björn Schäpers wrote:
>
> I'm developing on Windows and have a 64 Bit Qt in my path, but because 
> the linker in 64 Bit mode is much slower than its 32 Bit counterpart I 
> often develop in 32 Bit. If I run the programs directly from the 
> Creator everything is fine.
>
> If I click build for the AutotestRunner it seems that the environment 
> is not correctly set. While it loads correctly the 32 Bit runtime 
> (which is also not on the non modified path) the Qt path is not added 
> and it only finds the 64 Bit Qt5Core.dll (which fails to load).
>
> Who is at fault, qbs, QtCreator, or I (something not correctly 
> configured)? 

The AutotestRunner does not set up the environment automatically (like 
"qbs run" does). You need to do that yourself. See tests/tests.qbs in 
the qbs repository for an example.


Christian



More information about the Qbs mailing list