-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
android build support #94
Comments
Failed to build shared library. with eorrors:
|
I can confirm that the c-embedded/main.c is working with static library build using I'm against releasing large debug artifacts, but we can add a Release artifact for aarch64-linux-android in the near term and add tests later, and I can also attach an example Android NDK project. Edit: Well this is awkward, I have included an example project but it requires a patch to Zig 0.12.0, see the README. I would have upgraded to 0.13.0 but that version introduces miscompilation for packed structs. So far now we are stuck on 0.12.0 and will have to hold off on a Android release artifact. |
Thanks for your response, I downloaded the source from master, It works well. Let me try linking to the static library. |
what |
ziglang/zig#19217 |
ziglang/zig#17575 |
Hi , I am trying to embed it into my android game (a c++ project), will you please add cross build for android? static and shared, debug and release options?
I am not farmiliar with zig.
But I have built a "libcyber.a" static libary succsussfully.
It encounted some errors, and it fixed by modifing the build.zig. Maybe you guys will do better. Here is my building command:
zig build lib -Doptimize=ReleaseFast -Dtarget=aarch64-linux-android
The modifed build.zig is attached, just focus on lines including "addIncludePath(.{ .path = "D:/Prog/Android.....".
I will be happy if android building is supported. Thank you.
build.zig.txt
The text was updated successfully, but these errors were encountered: