Error when building Qt 5.4 Statically (MinGW)
I have been trying to build qt statically for a while now and I have had no luck building the qt libraries statically.
I have followed all the instructions I could find from the qt website but they don't seem to be very helpful, clear or specific. So I found a new-ish guide to compiling:
"How to build Qt 5.4 statically on Window 7":http://qt-project.org/forums/viewthread/51117
Since using the qt package manager kept failing to download the source libraries I found a manual download from the qt site named: qt-everywhere-opensource-src-5.4.0.zip
Windows 7 - 64 bit os
Qt 5.4 - and Qt Creator
When I run the configure it all seems to work fine until it gets to "Running configuration tests..." Here it looks like something from VS is messing the process up but I don't understand what, why or how to fix this. Here is the output that contains the issue:
@Running configuration tests...
In file included from arch.cpp:37:0:
C:\Program Files (x86)\Microsoft Visual Studio\VC98\include/stdio.h:77:24: error
: redeclaration of C++ built-in type 'wchar_t' [-fpermissive]
typedef unsigned short wchar_t;
mingw32-make: *** [arch.o] Error 1
Could not find output file: No such file or directory@
Any advice for building qt statically?
Sort out your build environment because it looks very confused:
C:\Program Files (x86)\Microsoft Visual Studio\VC98\include/stdio.h
don't sit well together.
I have no idea why it's looking at my VS files. Any advice on how to fix this?