[Qt-interest] build errors
Soumen Banerjee
soumen08 at gmail.com
Fri Apr 15 03:50:23 CEST 2011
Hi,
The solution is pretty obvious. Get the environment variable out of creating
trouble for you. Remove the stuff that causes mingw to look at the VS stuff.
Now use project wise config for both VS and Creator. Getting it working will
be quite problematic, but in an algorithmic sense, this is the only true
solution.
Regards,
Soumen
On Thu, Apr 14, 2011 at 4:00 AM, Malyushytsky, Alex <alex at wai.com> wrote:
> >> 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.
>
>
>
> Fortunately it does not, otherwise you would find one day that your other
> compiler stopped working.
>
>
>
> Environment variables should be set either by user for a specific session
> if you would like to work command prompt or handled by environment if you
> prefer to use UI.
>
>
>
> Example is VS. It provides a special bat files to open command window and
> set appropriate environment (32 bit, 64 bit for every VS version ).
>
>
>
> And it is better to avoid adding hardcoded path to the system path, even
> though the same VS allows this.
>
>
>
> This leads to problems if you have multiple compilers installed on the same
> system.
>
>
>
>
>
> Alex.
>
>
>
>
>
> *From:* qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:
> qt-interest-bounces+alex=wai.com at qt.nokia.com] *On Behalf Of *Bence Magyar
> *Sent:* Monday, April 11, 2011 10:16 AM
> *To:* Albert Beard
> *Cc:* qt-interest at qt.nokia.com
> *Subject:* Re: [Qt-interest] build errors
>
>
>
> 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
>
>
>
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> “This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you.”
>
> “Please consider our environment before printing this email.”
>
> _______________________________________________
> 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/20110415/a3d9f6ff/attachment.html
More information about the Qt-interest-old
mailing list