Skip to content

Conversation

@heydocode
Copy link
Contributor

This PR adds a build script for firewheel-cpal which imports/locates in the binary the shared C++ STL, which is currently required for firewheel-cpal on Android, as CPAL needs C++ full collection of symbols, but at default oboe tends to import a static C++ STL, which is optimized away by the compiler (so we get an error of type: "dynamic linker is unable to find symbol ..."). This is why we need to explicitly state to import a shared C++ STL on Android.

I'll look at CPAL future releases to update/remove this build script if outdated/redundant, as CPAL seems migrating from oboe, but I don't know how much time it will take and if a fallbacks for older devices will be set, so two options in the future are update (e.g. refine the build script for older devices) and remove (if CPAL removes all C++ ffi needs)

@BillyDM
Copy link
Owner

BillyDM commented Apr 6, 2025

Could you run cargo fmt please?

@heydocode
Copy link
Contributor Author

For sure!

@BillyDM BillyDM merged commit d141fdb into BillyDM:main Apr 8, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants