Page 1 of 1

Compiling for debian 10 ARM

Posted: 20 Jul 2022 10:24
by Xillie
Hello,

I appear to have succesfully compiled openttd on debian 10 for ARM, however, I keep ending up with an openttd binary of 170 mb.
Am I doing something wrong?

Here is my cmake line:

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPTION_DEDICATED=ON -DOPTION_USE_ASSERTS=OFF -DOPTION_USE_THREADS=OFF ..

Cheers.

Re: Compiling for debian 10 ARM

Posted: 20 Jul 2022 15:25
by jfs
You use the RelWithDebInfo build type, which has debug info. Try using the Release build type instead.

Re: Compiling for debian 10 ARM

Posted: 20 Jul 2022 22:06
by Xillie
The faq states:

-DCMAKE_BUILD_TYPE=RelWithDebInfo: build a release build. This is significant faster than a debug build, but has far less useful information in case of a crash.

I think this is confusing people this will build a "Release Build with Debian Info".

I will try with "-DCMAKE_BUILD_TYPE=Release"

Cheers n thanks