Failure when building QT on Windows with MinGW
Hello,
I've downloaded the QT open-source for windows.
Also downloaded the last MinGW installation - verified all modules are up-to -date with QT compiler support notes.
Followed the instructions for building QT statically:
In the command prompt wrote:
Code:
cd C:\<Path to QT>
configure -static -platform win32-g++
mingw32-make sub-src
This cause the following error:
:
:
./tmp\obj\release_static\deps.o:deps.cpp:(.text+0x1c f8): more undefined referenc
es to `QString::free(QString::Data*)' follow
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/qt-win-opensource-src-4.3.1/src/tools/
uic3'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/qt-win-opensource-src-4.3.1/src/tools/
uic3'
mingw32-make: *** [sub-uic3-make_default-ordered] Error 2[/CODE]
What have I been doing wrong? :confused:
Thanks in advance,
Sharon
Re: Failure when building QT on Windows with MinGW
I'd suggest using the version of MinGW that is bundled in (or actually downloaded by) the binary installer of Qt. It's guaranteed to work nicely along with Qt.
Re: Failure when building QT on Windows with MinGW
yes you are right. when downloading the mingw during the installation of QT opensource,the installation application maybe zombie,but it still downloads the Mingw completely ,and you can find that setup files at download archive,then you must cancel the QT installation,and install MingW which locates at c:\qt4.4.2\download.After you install MingW,you can install the QT library without downloading MingW.
It's my tip.Hope this tip can help you.