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

sjj246 at gmail.com sjj246 at gmail.com
Mon Nov 2 21:00:47 CET 2009


Okay, so it should work.

I forgot to say that I am running Qt 4.5.3, Qt Creator 1.2.1 and
Windows 7 SDK on Windows 7. I downloaded the source codes
(deliberately chose not to download any binaries) for Qt 4.5.3 and Qt
Creator 1.2.1 and compiled them using Windows 7 SDK.

If it works on Windows Vista, it sounds to me that it should also work
on Windows 7 (those should not be so different, right?). Or could the
reason be that I am using Qt 4.5.3? I noticed that the forthcoming Qt
4.6 supports Windows 7.

\sjj


On Mon, Nov 2, 2009 at 10:34 AM, Eike Ziller <eike.ziller at nokia.com> wrote:
> 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
>
>
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>




More information about the Qt-creator-old mailing list