Step 5 (Optional): Compiling libcod from Source
To compile libcod yourself, you first need to obtain the source code. There are currently several different versions of libcod available:
- Kung Foo Man – the original version.
- Mitch – a more experimental version with several additional features.
- Php – includes a number of useful functions but appears to be no longer actively maintained.
- voron00 – currently the best-maintained version.
You can either download the source code directly from GitHub and upload it to your server, or use Git:
sudo apt-get install git
git clone <github-url>
Once the source code has been downloaded, compile libcod using the following commands:
./doit.sh clean
./doit.sh base
./doit.sh cod2_1_3
If you are using a different Call of Duty 2 version, simply adjust the last command accordingly.
After a successful compilation, the finished shared library will be located in the bin directory:
bin/libcod2_1_3.so
