Page 1 of 1

[SOLVED] Compiling 1.7.1 to ARM-based SBC

Posted: 29 Aug 2017 17:01
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.

Re: Compiling 1.7.1 to ARM-based SBC

Posted: 29 Aug 2017 17:20
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.

Re: Compiling 1.7.1 to ARM-based SBC

Posted: 29 Aug 2017 18:49
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

Re: Compiling 1.7.1 to ARM-based SBC

Posted: 29 Aug 2017 20:43
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

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

Posted: 29 Aug 2017 21:31
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.

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

Posted: 29 Aug 2017 21:43
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 :)