[Solved] 5.3 mingw32 compile fails
-
I hope someone can help me out. I've been fighting qt for three days trying to compile a 5.3 -static build with mingw32. No problems compiling with OS X, but this is kicking my butt :(
Setup env:
@
set PATH=c:\mingw\bin;c:\qt5.3\qtbase\bin;c:\qt5.3\qtrepotools\bin;c:\qt\qt5.3\gnuwin32\bin;%PATH%
set QMAKESPEC=win32-g++
@@
configure -static -opengl desktop -opensource -confirm-license -nomake examples -nomake tests
@It blows up here:
@
....\include/QtGui/../../src/gui/opengl/qopenglversionfunctions.h:785:43: error: expected unqualified-id before ')' token
void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);
^
Makefile.Debug:10840: recipe for target '.obj/debug/qaccessible.o' failed
mingw32-make[4]: *** [.obj/debug/qaccessible.o] Error 1
mingw32-make[4]: Leaving directory 'C:/qt5.3/qtbase/src/gui'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory 'C:/qt5.3/qtbase/src/gui'
Makefile:333: recipe for target 'sub-gui-make_first' failed
mingw32-make[2]: *** [sub-gui-make_first] Error 2
mingw32-make[2]: Leaving directory 'C:/qt5.3/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/qt5.3/qtbase'
Makefile:63: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
@Please help if you can, thanks!
-
If you're stuck like I was go to:
http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW
There is a powershell script there ( windows-build-qt-static.ps1 ) that will flawlessly build a static mingw32 qt.