[QBS] Why we need set Qt Default Path for qt-based application?

Loaden loaden at gmail.com
Wed Mar 14 05:47:06 CET 2012


*More information:*


>
> PATH=D:\qpSOFT\DEVx86\qt\bin;D:\qpSOFT\DEVx86\bin;D:\qpSOFT\DEVx86\sdk\irrlicht\bin;D:\qpSOFT\Source
>
> s\Qbs\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerSh
> ell\v1.0\;D:\qpSOFT\Extends\MinGW32\bin;D:\qpSOFT\Extends\AE32000\bin;D:\Program
> Files\Git\cmd;C:\Pr
> ogram Files\Common Files\Ulead Systems\MPEG;C:\Program
> Files\QuickTime\QTSystem\
>
> INCLUDE=D:\qpSOFT\DEVx86\sdk\directx\include;D:\qpSOFT\DEVx86\include;D:\qpSOFT\DEVx86\sdk\atl\inclu
> de;D:\qpSOFT\DEVx86\sdk\wtl\include;D:\qpSOFT\DEVx86\sdk\irrlicht\include
>
> LIB=D:\qpSOFT\DEVx86\sdk\directx\lib;D:\qpSOFT\DEVx86\lib;D:\qpSOFT\DEVx86\sdk\atl\lib;D:\qpSOFT\DEV
> x86\sdk\irrlicht\lib
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for
> 80x86
> Copyright (C) Microsoft Corporation.  All rights reserved.
> usage: cl [ option... ] filename... [ /link linkoption... ]
> D:\qpSOFT\DEVx86>cd ..
> D:\qpSOFT>cd Sources\Qbs\tests\manual\application
> D:\qpSOFT\Sources\Qbs\tests\manual\application>qbs platforms probe
> Detecting MSVC toolchains...
>   Windows SDK detected:
>     version 7.1.7600.0.30514
>     installed in D:\qpSOFT\DEVx86
>     This SDK contains C++ compiler(s).
>     This is the default SDK on this machine.
> Setting up platform WinSDK7.1.7600.0.30514
> Platform 'mingw32' detected in 'D:\qpSOFT\Extends\MinGW32'.
> D:\qpSOFT\Sources\Qbs\tests\manual\application>qbs
> Found project file D:\qpSOFT\Sources\Qbs\tests\manual\application\test.qbp
> loading project took:  109 ms
> build graph took:  10 ms
> for debug:
>   - [hpp, application] QtHelloWorld as debug
> ERROR: Error while setting up build environment: qt/core.binPath not set.
> Set the configuration valu
> es qt/default/binPath or qt/default/path.
> D:\qpSOFT\Sources\Qbs\tests\manual\application>
>


2012/3/14 Loaden <loaden at gmail.com>

> Hi, All! I am working on Windows, and use this env setting:
>
>>
>> @echo off
>> set QTDIR=%~dp0qt
>> set QMAKESPEC=win32-msvc2010
>> set PATH=%QTDIR%\bin;%~dp0bin;%~dp0sdk\irrlicht\bin;%PATH%
>> set
>> INCLUDE=%~dp0sdk\directx\include;%~dp0include;%~dp0sdk\atl\include;%~dp0sdk\wtl\include;%~dp0sdk\irrlicht\include
>> set
>> LIB=%~dp0sdk\directx\lib;%~dp0lib;%~dp0sdk\atl\lib;%~dp0sdk\irrlicht\lib
>> echo PATH=%PATH%
>> echo.
>> echo INCLUDE=%INCLUDE%
>> echo.
>> echo LIB=%LIB%
>> echo.
>> cl
>> if not {%1}=={-noqtc} start %QTDIR%\bin\qtcreator.exe -settingspath
>> %QTDIR%\config -disable-gdb -disable-sdb -disable-tcf
>>
>
> When I test Qbs with "tests\manual\application", I got this error, So I
> wonder why we need set a default qt path?
> And how to set it?
> Thanks!
>
>
>> D:\qpSOFT\Sources\Qbs\tests\manual>cd application
>> D:\qpSOFT\Sources\Qbs\tests\manual\application>qbs
>> Found project file D:\qpSOFT\Sources\Qbs\tests\manual\application\test.qbp
>> loading project took:  189 ms
>> build graph took:  11 ms
>> for debug:
>>   - [hpp, application] QtHelloWorld as debug
>> ERROR: Error while setting up build environment: qt/core.binPath not
>> set. Set the configuration valu
>> es qt/default/binPath or qt/default/path.
>> D:\qpSOFT\Sources\Qbs\tests\manual\application>set
>> "qt/default/path=D:\qpSOFT\DEVx86\qt"
>> D:\qpSOFT\Sources\Qbs\tests\manual\application>qbs
>> Found project file D:\qpSOFT\Sources\Qbs\tests\manual\application\test.qbp
>> loading project took:  111 ms
>> build graph took:  11 ms
>> for debug:
>>   - [hpp, application] QtHelloWorld as debug
>> ERROR: Error while setting up build environment: qt/core.binPath not
>> set. Set the configuration valu
>> es qt/default/binPath or qt/default/path.
>>
>
> --
> Regards
> Loaden
>
>


-- 
Regards
Loaden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20120314/7bcda38e/attachment.html>


More information about the Qbs mailing list