[Qt-interest] build errors

Bence Magyar mw.mzperx at gmail.com
Mon Apr 11 19:15:54 CEST 2011


When I worked on Windows with Qt I also came across this thing. It's a shame
that the default windows Qt installer does not add itself to the default
system PATH.

Here's what I did:
Control Panel -> System -> Advanced -> Environment Variables

Added this to PATH: (!!!!"Add" means append!!!!)

C:\Qt\2010.01\qt\bin;C:\Qt\2010.01\bin;C:\Qt\2010.01\mingw\bin;
(use whatever Qt directory you have)

Based on your error file it seems that it pulls the visual c++ stuff instead
of the standard lib :)
Since the PATH is read from left to right if it's an include situation and
you want your visual c++ stuff untouched adding the above may not be the
resolution. If you put it to the end of the PATH, it never will be reached
when iterating through the libraries and if you put it before the visual c++
directories it will mess them up (but worth a try :)).

I suggest you hack around with the .pro file.
You could add INCLUDEPATH to the .pro file with for example:
C:\Qt\2010.01\mingw\include\string.h

I hope some of these helps you :)

Cheers,

Bence

2011/4/11 Albert Beard <Albd41 at comcast.net>

> I am a new user of Qt.
>
> I installed the SDK  and am using Qt Creator 2.0.1
> I have Microsoft Visual C++ 6.0 and Microsoft .NET 1.1 (2003) installed on
> my Windows XP machine.
>
> When I try to compile a sample QT app (animation framework >  animated
> tiles( I get many, many build errors and warnings.
> They seem to be arising from #include files from MS VC 6
>
> I think it has to do with the environment variables INCLUDE and PATH.
>
> When I look at those variables, I see nothing pointing to Qt files.
>
> Questions
> 1)  How do I resolve the build errors?
> 2) If changes to the environment variables are needed, how do I confine
> them to Qt and not affect the VC 6.0 builds?
>
>  I have attached the compile output and the environment variables.
>
> Thanks in advance.
>
> Alby
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110411/830f8642/attachment.html 


More information about the Qt-interest-old mailing list