bungee icon indicating copy to clipboard operation
bungee copied to clipboard

Missing build

Open toaster217 opened this issue 1 year ago • 3 comments

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?

toaster217 avatar May 03 '24 02:05 toaster217

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

kupix avatar May 12 '24 08:05 kupix

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 avatar May 12 '24 09:05 toaster217

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

toaster217 avatar May 12 '24 09:05 toaster217

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 avatar Jun 01 '24 11:06 kupix