Hi folks, recently i've tried to compile the BTPro OpenTTD client, after some issues with ST2's help i finally did it.
So to those that want the amazing client that BTPro release to us and don't know how to do it this tuto ll help.
First of all, open a terminal window.
The first tool we need is the subversion (svn) version control system. If you don't have any installed use type the command
Install the SVN support
$ sudo apt-get install subversion;
The transition package to install the Apache Subversion server module for Apache httpd.
$ sudo apt-get install libapache2-svn
Restart the apache to SVN take place.
$ sudo service apache2 restart
Next step is gt the necessary libs (dependencies) to compile the source.
For Debian users you can get all that is needed using the command
$ sudo apt-get install build-essential pkg-config libsdl1.2-dev subversion patch zlib1g-dev liblzo2-dev liblzma-dev libfontconfig-dev libicu-dev
It'll take some time
After all dependencies installed is time to get the source code. Here i have some problems to find out what was the revision used by BRPro, i have to thank ST2 for the help.
In the terminal type
$ svn checkout svn://svn.openttd.org/tags/1.3.3/
And wait the full download of the 1.3.3 original sources complete. The SVN ll create an folder called 1.3.3 in the patch where you terminal is. how i was in ubuntu@ubuntu it's the root directory for ubuntu user (/home/ubuntu) so the folder 1.3.3 with the sources was created there.
Save the diff file
OS_Crossover
() in the 1.3.3 folder.
Enter in the folder typing in terminal
And use the command
$ patch -p0 < OS_Crossover_file
Where OS_Crossover_file is the name of the diff file u saved from BTPro website.
Now is time to compile, just type in terminal
And wait the process finish, it may take a some time so be patient.
After the compilation finish you already can play with the modified client by opening $ bin/openttd.
If u want the new client to take place of the older > "/1.3.3/debian".[/color]
Command :
The last step is create the package itself, so type the command
$ dpkg-buildpackage -rfakeroot -uc -us -b
Remove the old version of OpenTTD and install the new package
Enjoy it
I hope it's help.