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

Loaden loaden at gmail.com
Wed Mar 14 05:43:58 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20120314/669b0750/attachment.html>


More information about the Qbs mailing list