Compiling from source newbie questions
Posted: 10 Jan 2022 09:06
Hi everyone,
I have just completed compiling from source on my Raspberry Pi 4 model B. The game works (yay!). The openttd executable resides in ~/Games/OpenTTD/build (with the source code in ~/Games/OpenTTD).
I have a few noob questions:
- why is the executable size massive, compared to the downloads on the openttd website? (170MB) I compiled the Release version. I accidentally installed the Debug version before that and that was 250+MB. Is this expected?
- what is the conventional way of putting openttd into the PATH? Do people move the executable into one of the /bin/ folders on the filesystem? (Sorry if this is a stupid question)
- what is the recommended way of "tidying up" after invoking the ``make`` command? Besides the (big) executable, a du -sh of the ~/Games/OpenTTD/build directory reveals a total of 850MB... what can be removed after compiling to save up space? (Also sorry if this is a stupid question)
Thanks and looking forward to learning more (if it isn't obvious, I'm also a bit of a Linux / RPi noob)!
I have just completed compiling from source on my Raspberry Pi 4 model B. The game works (yay!). The openttd executable resides in ~/Games/OpenTTD/build (with the source code in ~/Games/OpenTTD).
I have a few noob questions:
- why is the executable size massive, compared to the downloads on the openttd website? (170MB) I compiled the Release version. I accidentally installed the Debug version before that and that was 250+MB. Is this expected?
- what is the conventional way of putting openttd into the PATH? Do people move the executable into one of the /bin/ folders on the filesystem? (Sorry if this is a stupid question)
- what is the recommended way of "tidying up" after invoking the ``make`` command? Besides the (big) executable, a du -sh of the ~/Games/OpenTTD/build directory reveals a total of 850MB... what can be removed after compiling to save up space? (Also sorry if this is a stupid question)
Thanks and looking forward to learning more (if it isn't obvious, I'm also a bit of a Linux / RPi noob)!