$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 ==============
From
> https://sourceforge.net/projects/mingw/files/
Download
> mingw-get-setup.exe
Open up the installer and mark these for installation from the "Basic Setup":
> mingw-developer-tools
> mingw32-base
> mingw32-gcc-g++
> msys-base
!! IMPORTANT !! Actually install marked packages by selecting "Apply changes".
Mark these for removal in "All packages" (bin, lic, src variants):
> mingw32-gcc
> mingw32-gcc-g++
Apply changes.
============== MINGW manual packages ==============
We'll manualy install GCC!
From
> Source: https://sourceforge.net/projects/mingw/ ... c-4.7.2-1/
Download
> gcc-core-4.7.2-1-mingw32-bin.tar.lzma
> gcc-c++-4.7.2-1-mingw32-bin.tar.lzma
We will also need some other manual MinGW packages:
From
> https://sourceforge.net/projects/mingw/ ... r-2.4.1-1/
Download
> libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
From
> https://sourceforge.net/projects/mingw/ ... c-0.8.1-1/
Download
> libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
From
> https://sourceforge.net/projects/mingw/ ... 2api-3.18/
Download
> w32api-3.18.2-mingw32-dev.tar.xz
Extract all downloaded archives to $ROOT (so that contained bin, include, etc. folders match the ones in $ROOT).
============== CMake ===============
From
> https://cmake.org/download/
Download
> 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
============== OpenAL ==============
From
> http://openal.org/downloads/
Download
> 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 ==============
From
> http://liballeg.org/download.html
Download
> dx9mgw.zip
Extract files same as previous ones to $ROOT.
============== WinPcap networking ===========
IF You want networking capabilities:
From
> https://www.winpcap.org/devel.htm
Download
> 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 ==============
In
> ~\pcem\src
Run
Code: Select all
$ make -f Makefile.mingw
============== 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
Run.
========================================
I'm concerned about the dx library swiped from Allegro, but if it's good enough for them, it's good enough for me!