Compiling for debian 10 ARM

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Xillie
Engineer
Engineer
Posts: 3
Joined: 17 Jul 2022 15:38

Compiling for debian 10 ARM

Post 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.
User avatar
jfs
Tycoon
Tycoon
Posts: 1757
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Compiling for debian 10 ARM

Post by jfs »

You use the RelWithDebInfo build type, which has debug info. Try using the Release build type instead.
Xillie
Engineer
Engineer
Posts: 3
Joined: 17 Jul 2022 15:38

Re: Compiling for debian 10 ARM

Post 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
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 26 guests