[Qt-creator] Setting build environment variables from command line (Windows)

Eike Ziller eike.ziller at nokia.com
Mon Nov 2 09:34:10 CET 2009


Hi,

Am Nov 1, 2009 um 12:20 PM schrieb ext sjj246 at gmail.com:

> Hello,
>
> I have a batch script that I'm using to launch Qt Creator.
>
> set path=C:\MY_ADDITIONAL_PATH;%path%
> bin\qtcreator.exe
>
> Qt Creator starts fine, but to my surprise C:\MY_ADDITIONAL_PATH is
> not found in the PATH environment variable that Qt is seeing (checked
> Projects -> Build Settings -> Debug/Release Build Environment). Am I a
> total noob to expect to this to work? Or am I missing something?

Seems to work for me (Windows Vista). But note (also for what you want  
to achieve below) that Qt Creator
prepends additional paths to the PATH environment variable, e.g. the  
path to the MSVC tool chain if you use a Qt version that uses this  
tool chain by default, or the path to the MinGW tools if you use a Qt  
for MinGW.

++ Eike

> What I am after is that I am setting tool chains using batch scripts
> and I wish not to add them all to the PATH environment variable at the
> same time or by default. Instead, I would like to able to select a
> specific tool chain just by double clicking the batch script and it
> would also start Qt Creator.
>
> Cheers,
> \sjj
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com








More information about the Qt-creator-old mailing list