1) Remove or disable any previous version of MinGW

If you have previously used MinGW to compile RPCEmu using the Allegro libraries disable this version. This can be as simple as renaming C:\MinGW to C:\MinGW.old-allegro-version

2) Install MinGW C compiler and Qt5 libraries

This is a combined download of the Qt5 libraries and MinGW compiler files.

Visit http://download.qt.io/archive/qt/5.6/5.6.3/ and download qt-opensource-windows-x86-mingw492-5.6.3.exe

Run the installer, feel free to skip the Qt Account suggestions. The default suggested of path for Qt of C:\Qt\Qt5.6.3 is fine. On the component selection, do select all, to enable MinGW installation.

3) Update command path

You may want to use Qt's command line program 'Qt 5.6.3 for Desktop (MinGW 4.9.2 32 bit)', alternatively you can add the relevant Qt and MinGW directories to you systems 'Path' variable and run from any cmd.exe or powershell command prompt.

Add the following two entires to 'Path' in Control Panel->System->Advanced Properties->Environment Variables->Path

3) Compile RPCEmu

From windows command line

cd rpcemu\src\qt5

To compile the Recompiler version of RPCEmu, edit rpcemu\src\qt5\rpcemu.pro and add 'dynarec' to the CONFIG line at the top of the file, then rerun mingw32-make.

4) Running RPCEmu

If when running RPCEmu binary you get an error along the lines of 'The procedure entry point __cxa_throw_bad_array_new_length could not be located in the dynamic link library C:\Qt\Qt5.6.3\5.6.3\mingw49_32\bin\Qt5Core.dll'. Then please try the following, which will place the QT DLLs required in the binaries directory.

cd rpcemu
windeployqt .