How to build Qt 5.2 x32 with mingw64 (with the -m32 key)?
-
I made the following steps:
-
Unpack the source to: c:\Qt\qt-everywhere-opensource-src-minGW-x32-5.2.0
-
Edit the file: c:\Qt\qt-everywhere-opensource-src-minGW-x32-5.2.0\qtbase\mkspecs\win32-g++\qmake.conf
and add -m32 key to:
QMAKE_CFLAGS = -pipe -fno-keep-inline-dllexport -m32
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -m32
QMAKE_LINK = $${CROSS_COMPILE}g++ -m32
QMAKE_LINK_C = $${CROSS_COMPILE}gcc -m32 -
Create bath file on the root of source:
set PATH=C:\MinGWw\x64\mingw64\bin;C:\Perl64\bin;C:\Qt\jom;C:\Qt\fart32;C:\Python27;
set PATH=%PATH%;c:\Windows\system32;
set LANG=en
configure.bat -platform win32-g++ -opensource -debug -debug-and-release -no-icu -no-accessibility -nomake examples -no-vcproj -no-cetest -
Run this bath file and go to: C:\Qt\qt-everywhere-opensource-src-minGW-x32-5.2.0\qtbase\bin
After the configure the qmake.exe will be build - its 64-bit exe. -
Return to console and run: mingw32-make.exe
During assembly, the moc.exe и rcc.exe will be created and using during the building.
But:
rcc.exe — Application Error
The application was unable to start correctly (0xc000007b). Click OK to close the application.
ОК
Somebody can help?
-