Build instructions - PatrikSamuelTauchim/OpenTTD GitHub Wiki
Compilation performed on Debian 7 x86_64
As a ROOT, install following packages
apt-get install build-essential
apt-get install gawk
apt-get install subversion
apt-get install zlib1g-dev
apt-get install libncurses5-dev
As standard (NON-ROOT) user, run following commands
mkdir turris
cd turris/
export TURRIS=$PWD
cd $TURRIS
git clone --depth 1 https://gitlab.labs.nic.cz/turris/openwrt.git
cd openwrt/
cp -f configs/config-turris-nand .config
make defconfig
make tools/install
make toolchain/install
make package/ncurses/install
Version numbers of two following packages can be different if new version is released. You can get correct version from following path.
-
export TURRIS_TOOLCHAIN=$TURRIS/openwrt/staging_dir/toolchain-powerpc_8540_gcc-4.8-linaro_uClibc-0.9.33.2
-
export TURRIS_NATIVE=$TURRIS/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2
-
export STAGING_DIR=$TURRIS_NATIVE
-
PATH=$TURRIS_TOOLCHAIN/bin:$PATH
-
cd $TURRIS
-
git clone --depth 1 https://github.com/PatrikSamuelTauchim/OpenTTD.git
-
cd OpenTTD
Architecture can be different on your system, use uname -m
to get yours
-
CC=powerpc-openwrt-linux-gcc CXX=powerpc-openwrt-linux-g++ ./configure \
-
--build=x86_64-linux-gnu --host=powerpc-openwrt-linux-uclibcspe \
-
--enable-dedicated \
-
--without-zlib --without-liblzma --without-liblzo2 --without-png --without-xdg-basedir --endian=BE
-
make bundle
Installation
- Now you should have your OpenTTD server built in $TURRIS/OpenTTD/bundle/
- Upload whole folder to your Turris
- Now you need some base set. opengfx for example.
- https://www.openttd.org/en/download-opengfx
- Put downloaded .tar file into /bundle/baseset/
- Run server with
./openttd -D
it should start with defaul settings, generate map and you will be able to join locally