Step 4 (optional): Installing libcod prerequisites
As copied from the libcod github:
Code:
sudo apt-get -y install gcc-multilib
sudo apt-get -y install libmysqlclient-dev:i386
sudo apt-get -y install g++-multilib
I've tried installing these all in one command, but that failed for some unknown reasons. So just keep these as separate commands.
Step 5 (optional): compiling libcod from source
In order to compile libcod, you first need to obtain the source code. There are currently multiple libcod versions out there:
Kung foo man's original version
Mitch's version which is a bit more experimental and has a few more features than the original version
Php's version has a few nice functions but seems to be out-of-date
voron00's version which seems to be the best maintained version currently
To obtain the code, either download the source from github and upload, or
Code:
sudo apt-get install git
git clone [github url here]
You can then easily compile the stuff with
Code:
./doit.sh clean
./doit.sh base
./doit.sh cod2_1_3
For different cod versions, change the last line.
The final product (the actual libcod "executable") is then inside the bin folder as libcod2_1_3.so