Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Android builds to suppport 16 KB page size #1116

Open
dellis1972 opened this issue Feb 25, 2025 · 2 comments
Open

Upgrade Android builds to suppport 16 KB page size #1116

dellis1972 opened this issue Feb 25, 2025 · 2 comments

Comments

@dellis1972
Copy link

We are now seeing the following warning when building .net Android applications.

warning XA0141: Android 16 will require 16 KB page sizes, shared library 'libopenal.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'MonoGame.Library.OpenAL' version '1.23.1.10' which contains 'runtimes/android-x64/native/libopenal.so'. See https://developer.android.com/guide/practices/page-sizes for more details.

The Android build to produce 16 KB aligned .so files.
According to the docs there needs to be -Wl,-z,max-page-size=16384 in the linker args

e.g

target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")
@kcat
Copy link
Owner

kcat commented Feb 25, 2025

Should be handled with commit 5fa1973.

@dellis1972
Copy link
Author

Nice 😄 I'll bump the MonoGame binaries as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants