[SOLVED] Compiling 1.7.1 to ARM-based SBC

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
DerekCZ
Engineer
Engineer
Posts: 105
Joined: 29 Jul 2014 18:08
Location: Czech Republic

[SOLVED] Compiling 1.7.1 to ARM-based SBC

Post by DerekCZ »

Just... how?

I have ASUS Tinker Board running TinkerOS which is based on Debian and all of it is based on a 32-bit ARM quad-core CPU.
I tried following the Debian compile guide on wiki, but I am stuck at the part with "sudo apt-get build-dep openttd", it returns "you must put some 'source' URLs in your sources.list", which makes me completely confused as this is my first ever experience with Linux stuff.
I guess there's not a precompiled version anywhere, so my only hope is compiling it myself. Any advice? By the way Tinker Board is pretty much the same as Raspberry Pi, except 32-bit.
Last edited by DerekCZ on 29 Aug 2017 20:57, edited 1 time in total.
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: Compiling 1.7.1 to ARM-based SBC

Post by Sylf »

They might have stripped out the build dependency information for openttd.
What happens if you take the manual path?

Code: Select all

sudo apt-get install build-essential pkg-config libsdl1.2-dev subversion patch zlib1g-dev liblzo2-dev liblzma-dev libfontconfig-dev libicu-dev
If all of those packages are available to tinkeros and are installed, then you should be able to build openttd.
User avatar
DerekCZ
Engineer
Engineer
Posts: 105
Joined: 29 Jul 2014 18:08
Location: Czech Republic

Re: Compiling 1.7.1 to ARM-based SBC

Post by DerekCZ »

This:

Code: Select all

linaro@linaro-alip:~$ sudo apt-get install build-essential pkg-config libsdl1.2-dev subversion patch zlib1g-dev liblzo2-dev liblzma-dev libfontconfig-dev libicu-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsdl1.2-dev
E: Couldn't find any package by glob 'libsdl1.2-dev'
E: Couldn't find any package by regex 'libsdl1.2-dev'
E: Unable to locate package subversion
E: Unable to locate package zlib1g-dev
E: Unable to locate package liblzo2-dev
E: Unable to locate package liblzma-dev
E: Unable to locate package libfontconfig-dev
E: Unable to locate package libicu-dev
linaro@linaro-alip:~$ 
The main problem here is that the comunity of Tinker Board is pretty much nothing, so I can't really ask anywhere :/

EDIT: okay, just to make it clear, the TinkerOS is a distro of Linaro which is a distro of Debian. It's pretty much just Linaro with drivers for wifi, bluetooth and GPIO
User avatar
DerekCZ
Engineer
Engineer
Posts: 105
Joined: 29 Jul 2014 18:08
Location: Czech Republic

Re: Compiling 1.7.1 to ARM-based SBC

Post by DerekCZ »

EDIT: I would LOVE to share the compiled game, but I don't really know which files I should upload since it made files all over my SD card...

Nevermind, thanks to mr. Tobias I managed to compile it :D

Just instead of this:

Code: Select all

cd openttd-1.6.1/
./configure --enable-dedicated
make --jobs=4
I used this to compile the game itself:

Code: Select all

cd openttd-1.6.1/
./configure
make --jobs=4
User avatar
Sylf
President
President
Posts: 957
Joined: 23 Nov 2010 21:25
Location: ::1

Re: [SOLVED] Compiling 1.7.1 to ARM-based SBC

Post by Sylf »

So were you just missing apt-get update part?
Anyway. If you want to make a version you can share with others, you can use "make bundle", which will create a single package file (gzip or xz or some kind of archive file), which you can post somewhere.
User avatar
DerekCZ
Engineer
Engineer
Posts: 105
Joined: 29 Jul 2014 18:08
Location: Czech Republic

Re: [SOLVED] Compiling 1.7.1 to ARM-based SBC

Post by DerekCZ »

It was propably something with permissions. I had to reinstall the entire OS (just a matter of minutes thanks to high speed sd card 8) ) and now it works fine.

Also, thanks for the sharing advice, hopefully I will post it as soon as possible :)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 7 guests