Download QT static build on windows -
i have been trying months qt 5.2.x compile statically mingw on windows, none of online guides work. there website has pre-built libraries mingw qt 5.2.x available download?
after few hours of googling managed working qt 5.0.2, , have applied same steps 5.2.1 version.
retrieve sources http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip , extract them inside c:\qt\5.2.1-static-thedate\ you'll have configure.bat file directly in c:\qt\5.2.1-static-thedate. using date-based folders can usefull when dealing multiple versions of qt.
then open command prompt in folder , execute following command display possible flags, may want set or unset.
configure -platform win32-g++ -?
i personnaly have chosen command line compiling static version, suits needs, you'll have adjust fit yours.
configure -debug-and-release -opensource -static -nomake examples -nomake tests -nomake tools -accessibility -no-sql-sqlite -no-opengl -platform win32-g++ -no-neon -system-proxies -qt-zlib -qt-libpng -qt-libjpeg -confirm-license
that's it, qt ready compiled. then, use command launch make, 4 being number of parallel threads want use compiling (please note parallel compiling might cause errors, relaunch command when happens, should fine). step rather long.
mingw32-make -j 4
then launch command clean intermediate files used compilation.
mingw32-make clean
last thing register new version of qt in qt creator, , ... you're done :) !
Comments
Post a Comment