The International Simutrans Forum

 

Author Topic: How to Compile Simutrans on Linux Mint 19.3 Tricia  (Read 308 times)

0 Members and 1 Guest are viewing this topic.

Offline NNW

  • *
  • Posts: 87
  • Languages: EN,DE,AT
How to Compile Simutrans on Linux Mint 19.3 Tricia
« on: June 13, 2020, 08:42:25 AM »
I think, this maybe usefull for some users.

Thanks to Prissi and Andarix to explain this for me:

1) You need the ST Sourcecode from

the Subversion Repo

svn://servers.simutrans.org/simutrans

or Github

https://github.com/aburch/simutrans

From Subversion you get 3 Directories: "branches" "patches" "trunk" Github has only 1: "simutrans"

2) Before you can compile the Code you need a bunch of Devel Libraries:

Open a Terminal an type in:

Code: [Select]
sudo apt-get update
 sudo apt-get install libsdl2-dev libfreetype6-dev libminiupnpc-dev libbz2-dev libpng-dev zlib1g-dev autoconf

This may take a bit.

3) Go to the "trunk" respectively "simutrans" folder in your Filemanager then.

Start a terminal inside (Rightclick => Open a terminal here) and type in:
Code: [Select]
autoconf && ./configure
You have now a File "config.default"
If you have downloaded the code from the github, it does not get the revision correctly. Instead you can use the following line (if you have a working svn aka subversion client installed).

Code: [Select]
echo "FLAGS = -DREVISION=$(svn info --show-item revision svn://servers.simutrans.org/simutrans) " >>config.default
With github, you need to run this everytime you download a new revision. If you do not join networkgames, you can ignore this.

4) Now you can compile ST by typing:

Code: [Select]
make
and get a cup of coffee, because this needs a minute or 3 ...

5) The last step, make the shell script "distribute.sh" executable and start it.

Code: [Select]
chmod a+x ./distrubte.sh
./distribute.sh

The Script closes the terminal Window after finishing his work

You find now a *.zip File with the complete simutrans package in the "trunk" folder.
If you need only the binary, look for a file named "sim" in trunk.

Edit on svn revison info by prissi 13.6.2020.
« Last Edit: June 13, 2020, 12:46:49 PM by prissi »