News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

No new Android build since 16k page support fails

Started by prissi, November 24, 2025, 01:28:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi

https://developer.android.com/guide/practices/page-sizes

But whatever I do, I cannot get simutrans to build it. Even excluding fliudsynth (which does not support it), the libs are still built with 4k pages, as it is simutrans.

I even added to all cmakefile calls
"-DCMAKE_EXE_LINKER_FLAGS=\"-Wl,-z,max-page-size=16384\"", "-DCMAKE_SHARED_LINKER_FLAGS=\"-Wl,-z,max-page-size=16384\"", "-DCMAKE_MODULE_LINKER_FLAGS=\"-Wl,-z,max-page-size=16384\""to no avail.

To test, use a linux terminal (or WSL) with apt support, copy the tools/android-helper to any folder, execute setup-android, setup-simutrans-projects, build_only

And open the apk in the Android studio. Only zstd is build with 16 k.

prissi

A progress report: Updating the bundle tool has now all but SDL2 and simutrans in 16k blocks. Now I just have to chase the linker information somewhere.