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

Missing build #2

Closed
toaster217 opened this issue May 3, 2024 · 4 comments
Closed

Missing build #2

toaster217 opened this issue May 3, 2024 · 4 comments

Comments

@toaster217
Copy link

I'm trying to build the static library .a
But when I run:

cd bungee
mkdir build && cd build
cmake ..
cmake --build .

There's only one libbungee.a, and its target arch is arm64, which is missing for IOS and Android
Am I missing something?

@kupix
Copy link
Owner

kupix commented May 12, 2024

Can you share more details... for example what is your host and target platform and what are you trying to achieve?

@toaster217
Copy link
Author

My target is to build shared library for both IOS and Android, I run the command exactly in Readme. but it only produce one libbungee.a for x86_64 linux

@toaster217
Copy link
Author

And I also notice that maybe there's a mistake in the CmakePresets.json:
https://github.com/kupix/bungee/blob/main/CMakePresets.json#L64

It should be arm64-v8a

@kupix
Copy link
Owner

kupix commented Jun 1, 2024

Yes, there was an error in CMakePresets.json, thank you, fixed now.

Regarding building iOS and Android, you have to have the correct toolchains installed and then invoke cmake with the appropriate preset. It is probably worth looking at the Github Actions workflow configuration file to see how the CI does this. It runs in two stages, first on a Linux machine, then on MacOS for the iOS build.

See https://github.com/kupix/bungee/blob/main/.github/workflows/release.yml

@kupix kupix closed this as completed Jun 1, 2024
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