[Request] - Guide how to compile Openttd @Raspberry PI

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
juxreal
Engineer
Engineer
Posts: 2
Joined: 17 Feb 2014 10:05

[Request] - Guide how to compile Openttd @Raspberry PI

Post by juxreal »

Good morning,

i have a problem to compile openttd for my Raspberry. I have search via google for a guide, but i cant find a "generall" guide. And in this Forum i have found Posts about the possibilit. But no guide. (or i am blind ).

So i start this request:

:bow: Please - can someone make a sort Step by Step guide how to complie Openttd on a Raspberry pi from Source?

I want to host a small dedicate ( start option -D ).
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by planetmaker »

http://wiki.openttd.org/Compiling_on_%2 ... x_and_*BSD applies there as well. You can skip the video and sound libraries, if you ./configure --enable-dedicated
juxreal
Engineer
Engineer
Posts: 2
Joined: 17 Feb 2014 10:05

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by juxreal »

:? i am sorry :bow: .

This is the first time, that i try to compile from source.

I dont understand the Wiki article.

:oops:


Edit:

if i try

Code: Select all

sudo apt-get build-dep openttd 
there is a error: you must put some 'source' URLs in your sources.list

i have no idea how to add this source there.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by Eddi »

this line only works if you have a repository which offers some version of openttd already. if you do not have such a repository, you must install the dependencies (compiler, libraries) manually.
Endrivis
Engineer
Engineer
Posts: 1
Joined: 19 Feb 2014 21:16

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by Endrivis »

The guide for compiling OpenTTD for Linux, *bsd and other unix derivatives is kind of lackluster and messy.
Although it is entirely possible to compile it on a raspberry pi once you have the commands nailed down, it's gonna take some time to compile though (a few hours depending on existing CPU load, which seems to be the bottleneck on the 512MB model)

Here's a download link for a compiled dedicated server based on the 1.3.3 source, the executable is in the /bin directory in the openTTD folder:
http://filesmelt.com/dl/openttd-1.3_.3- ... d_.tar.bz2
Haven't tested it thoroughly but it works, even without the SDL libraries it would otherwise complain about.

But as said, the page for compiling it for anything *nix or alike REALLY needs a overhaul to both clean it up and making it more comprehensive and also easier to understand for someone new to compiling things themselves.

Especially considering ARM based hardware is on the rise and official precompiled packages targeting those platforms isn't being offered.

Although if adding ARM hardware to the compile farm it would probably be an idea to look at something like the ODROID-U3 Community Edition IF it can be set to compile for older ARM architecture like the Raspberry pi's SoC.
Since then it'll both be much faster at compiling and also cover a broad range of ARM devices, except for the upcoming 64bit ones.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by planetmaker »

Endrivis wrote:The guide for compiling OpenTTD for Linux, *bsd and other unix derivatives is kind of lackluster and messy.
You're invited to spend your energy on improving and expanding existing guides (instead of ranting on how bad the existing ones are). It's a wiki. And you obviously have gone through the process recently (and for the first time?) and thus know which things actually are missing.
User avatar
kamnet
Moderator
Moderator
Posts: 8705
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: [Request] - Guide how to compile Openttd @Raspberry PI

Post by kamnet »

Ditto, more people working on keeping the Wiki updated would be a great contribution!
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 13 guests