
http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=341531&page=0&view=expanded&sb=5&o=&vc=1

QT 4.8.6
https://download.qt.io/official_releases/qt/4.8/

MinGW with GCC 4.8.2 (i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z)
https://sourceforge.net/projects/mingw-w...ds-posix/dwarf/

The batch file to build the static qt:
---------------------

set MINGW=C:\xxx\mingw32
set QT=C:\xxx\qt-everywhere-opensource-src-4.8.6
set PATH=%QT%\bin;%MINGW%\bin;%PATH%

configure -no-qt3support -platform win32-g++-4.6 -opensource -confirm-license -release -static -no-exceptions -no-accessibility -no-stl -no-phonon -no-webkit -no-scripttools -no-3dnow -no-sse -no-sse2 -no-openssl -no-rtti -qt-style-windowsvista -qt-style-plastique -qt-style-cleanlooks -no-style-motif -no-style-cde -nomake examples -nomake demos

mingw32-make -j3

pause

---------------------

You can delete the -j3 flag or change it according to the number of your cpu cores. 

And the following is the batch file to build mamepgui.exe:
---------------------
set MINGW=C:\xxx\mingw32
set QT=C:\xxx\qt-everywhere-opensource-src-4.8.6
set PATH=%QT%\bin;%MINGW%\bin;%PATH%

cd quazip
qmake
mingw32-make -j3
cd..

cd lzma
qmake
mingw32-make -j3
cd..

rem [compile MAMEPGUI]
lrelease mamepgui.pro
qmake
mingw32-make -j3

pause

---------------------

Delete the -j3 flag or change it according to the number of your cpu cores. 

