Ok, thanks to KuroShiro, here's a complete guide to compiling ResidualVM on Windows.
Install GITGit is a version control system and you can download it here:
http://git-scm.com/When you install it, make sure you choose the option that adds to PATH. After that choose the recommended options for Windows.
Get ResidualVM's source code from GitHubOnce you have GIT installed with a PATH set up correctly, go to the command prompt, navigate to the PARENT directory you'd like your "ResidualVM" directory to be in and type:
git clone
https://github.com/residualvm/residualvm.gitIt should then download the latest source into the current directory.
In future, to update the sources to the latest version, you can type:
git pull
Install MingWThis is a necessary step. Download and install MingW from:
http://www.mingw.org/(It's a bit confusing: Go to "Downloads" and then look for the .exe link near "Looking for the latest version?")
Choose:
C++and
MingW Developer Tookit (including MSYS)Next is probably the most confusing part... Open up the command prompt in Windows and type 'path'. Make sure that all the MinGW directories are there. It should contain (assuming you installed to C:\MinGW)
';C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\4.5.2;C:\MinGW\msys\1.0\bin'
at the end. Those should have been added by the install program, but if not, you'll have to add them manually. To do this, go to Computer -> System properties -> Advanced System Settings (it's on the left). Then click on the Environment Variable button, and in the bottom dialog box scroll down until you see the PATH variable, and double click it. Then add the directories listed above, making sure to have a semi colon before all the directory names.
You now have the ResidualVM source and a compiler, but you need libraries before you can compile and make a ResidualVM.exe.
Install SDL Development LibrariesDownload the SDL Libraries from here:
http://www.libsdl.org/release/SDL-devel ... w32.tar.gzExtract the files to a directory on your computer, then move the contents of the following folders to their respective MingW folders:
include\ to c:\MingW\include\
lib\ to c:\MingW\lib\
bin\ to c:\MingW\bin\
Install zlibDespite what the ResidualVM site says, you apparently need zlib installed, too. This is another fiddly step, but not too difficult.
Download zlib from:
http://www.zlib.net/(You want the source code, not the DLL.)
Copy the contents of the zlib source archive to a temporary folder, e.g. "c:\zlib".
Now open up MSYS. This is done by going to MingW Shell in your START menu. A window should open that looks very much like the normal command prompt.
Type the following:
cd /c/zlib
make -f win32/makefile.gcc
After the code has compiled type:
cp -p libz.a /c/mingw/lib
cp -p zlib.h zconf.h /c/mingw/include
Done!
(Here's a guide to the basic commands of MSYS, if you're confused:
https://users.cs.jmu.edu/bernstdh/Web/c ... /index.php)
Compile ResidualVMYou need to go into MingW Shell (aka MSYS) again.
Simply navigate to your ResidualVM directory in the MingW Shell (see the above guide if you need help on that) and type:
./configure && make
At the end of the process you should have a (rather large) ResidualVM.exe in your ResidualVM folder. You've just compiled ResidualVM!
To strip out all the unnecessary debug gubbins and make a smaller, more efficient executable, type:
strip residual.exe
And you're done!