Building Qt 5.5.1 with MinGW-w64
Solved
Installation and Deployment
-
Is it normal situation, when cofig tests failed?
Running configuration tests... process_begin: CreateProcess(NULL, rm -f arch.o, ...) failed. make (e=2): Не удается найти указанный файл. process_begin: CreateProcess(NULL, rm -f arch.exe, ...) failed. make (e=2): Не удается найти указанный файл. process_begin: CreateProcess(NULL, rm -f Makefile, ...) failed. make (e=2): Не удается найти указанный файл.
PS:
translation from russian language:
Не удается найти указанный файл == Can not find the fileError..
C:/mingww64/bin/mingw32-make -f Makefile.Debug all mingw32-make[4]: Entering directory 'F:/Qt_Static/mingw_w64_objs/qtbase/src/widgets' QT_PLUGIN_PATH=/F/Qt_Static/mingw_w64_objs/qtbase/plugins PATH=/F/Qt_Static/mingw_w64_objs/qtbase/lib${PATH:+:$PATH} 'F:\Qt_Static\mingw_w64_objs\qtbase\bin\uic.exe' F:/Qt_Static/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets/dialogs/qfiledialog.ui -o .uic/ui_qfiledialog.h C:/mingww64/bin/mingw32-make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x00007FFD39B70BC4) Makefile:38: recipe for target 'debug-all' failed mingw32-make[3]: *** [debug-all] Error 255 mingw32-make[3]: Leaving directory 'F:/Qt_Static/mingw_w64_objs/qtbase/src/widgets' Makefile:520: recipe for target 'sub-widgets-make_first' failed mingw32-make[2]: *** [sub-widgets-make_first] Error 2 mingw32-make[2]: Leaving directory 'F:/Qt_Static/mingw_w64_objs/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 'F:/Qt_Static/mingw_w64_objs/qtbase' Makefile:63: recipe for target 'module-qtbase-make_first' failed mingw32-make: *** [module-qtbase-make_first] Error 2
How to fix this errors?
-
The actual error is: Interrupt/Exception caught (code = 0xc0000005, addr = 0x00007FFD39B70BC4)
Does your MinGW work? Did you try to build a small program using it? -
Qt (static link) building with MinGW-w64 compiler ends successfully only with this *.bat (run from MinGW-w64 environment (non cygwin or msys2)):
SET _CD=%CD% SET _PATH=%PATH% SET QT_SOURCE=%_CD%\qt-everywhere-opensource-src-5.5.1 SET QT_BUILD=%_CD%\mingw_w64_objs SET QT_DIST=%_CD%\mingw64_Static REM Building Qt SET PATH=C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%QT_SOURCE%\qtbase\bin;%QT_SOURCE%\gnuwin32\bin;c:\python27\;%PATH%; CALL C:\Ruby22-x64\bin\setrbvars.bat ECHO ON PATH PAUSE MKDIR %QT_BUILD% CD /D %QT_BUILD% PAUSE CALL %QT_SOURCE%\configure.bat -prefix %QT_DIST% -debug-and-release -static -opensource -confirm-license -no-icu -nomake tests -opengl desktop -no-compile-examples -no-plugin-manifests -no-audio-backend -no-native-gestures -skip qtandroidextras -skip qtactiveqt -skip qtconnectivity -skip qtdeclarative -skip qtlocation -skip qtmacextras -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtserialport -skip qtwebengine -skip qtwebchannel -skip qtwayland -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtx11extras -developer-build ECHO ON PAUSE mingw32-make
No problems.