$ROOT refers to directory where MinGW is installed
~ refers to home directory of MSYS ($ROOT\msys\1.0\home\$USERNAME\)
All mentioned files are contained in reqs\ folder of https://bitbucket.org/svajoklis/pcem/src which is a fork of PCem I did for the kicks. Files mentioned are in svajoklis_repack branch.
============== MINGW ==============
Open up the installer and mark these for installation from the "Basic Setup":
!! IMPORTANT !! Actually install marked packages by selecting "Apply changes".
Mark these for removal in "All packages" (bin, lic, src variants):
============== MINGW manual packages ==============
We'll manualy install GCC!
> Source: https://sourceforge.net/projects/mingw/ ... c-4.7.2-1/
We will also need some other manual MinGW packages:
> https://sourceforge.net/projects/mingw/ ... r-2.4.1-1/
> https://sourceforge.net/projects/mingw/ ... c-0.8.1-1/
> https://sourceforge.net/projects/mingw/ ... 2api-3.18/
Extract all downloaded archives to $ROOT (so that contained bin, include, etc. folders match the ones in $ROOT).
============== CMake ===============
> CMake installer for Your architecture (x86-64 or x86, this has no relation to MinGW, just Your system)
Install CMake to a location of Your choosing. Make sure You either mark "Add to PATH" in installer or extend the PATH variable in MinGW shell Yourself by typing (or adding to Your .bash_profile if You want it to stick between sessions)
Code: Select all
$ PATH=$PATH:/c/Program Files/CMake/bin
We have installed all MinGW prerequisites. We will now install some outer dependencies, that is OpenAL, and DirectX.
============== OpenAL ==============
> OpenAL SDK.
Install it to default dir and navigate there.
Copy include\ folder to $ROOT.
Copy libs\win32\OpenAL32.lib to $ROOT\lib\libopenal32.a (notice the rename)
============== DirectX ==============
Extract files same as previous ones to $ROOT.
============== WinPcap networking ===========
IF You want networking capabilities:
> WinPcap 4.1.2 Developer's Pack
Extract include directory to your /include directory.
Extract lib/libpacket.a and lib/libwpcap.a to your /lib directory.
Make sure -DUSE_NETWORKING is defined in C_FLAGS in Your makefile.
============== Get PCem source ==============
Download PCem source code using Your favourite hg client and put it to ~\pcem so that pcem\ contains README.
============== Compile PCem ==============
Code: Select all
$ make -f Makefile.mingw
There is a heckload of warnings, but it should complete fine.
============== Install PCem ==============
Download the latest PCem from PCem homepage.
Copy pcem.exe You built from ~\pcem\src\
Create 'configs' folder in the same folder where You put the .exe
I'm concerned about the dx library swiped from Allegro, but if it's good enough for them, it's good enough for me!