The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: prissi on November 24, 2025, 01:28:51 PM

Title: No new Android build since 16k page support fails
Post by: prissi on November 24, 2025, 01:28:51 PM
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.
Title: Re: No new Android build since 16k page support fails
Post by: prissi on November 26, 2025, 11:50:14 PM
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.