-
Notifications
You must be signed in to change notification settings - Fork 2
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
flutter run fails on x86_64 emulator #553
Comments
I was able to reproduce on pretty much the same environment. The x86_64 emulator I used had an old version of c-breez installed that was functional. |
I had the exact same error when trying to run the React Native SDK example on an Android x86_64 image:
After some research, it turns out the issue doesn't exist on ARM (running the app on a connected physical Android) or just x86 emulator images. Try to use an x86 (instead of x86_64) image in your Android Studio, chances are that will fix this problem. |
Could it be related to this issue: Several configure&make packages give binaries with cannot locate symbol "__extendsftf2" Seems it could be related to the NDK version and maybe fixable with this workaround when building the library:
|
Same behavior for me on x86_64, even with the extra |
Just confirmed the same behavior on an Android x86_64 emulator in a Linux host. |
Try this workaround (must be added in build.rs) https://github.com/smartvaults/smartvaults/blob/master/bindings/smartvaults-sdk-ffi/build.rs |
@yukibtc Thanks a lot! Just tried your code and it works for us too. Made a PR here breez/breez-sdk-greenlight#479 |
Nice!
No |
For people stumbling on this issue for a solution, I recommend checking our current solution which links the right clang path for x86_64 builds here Probably even better to look at the latest version on the main branch in case more updates will be added later: https://github.com/breez/breez-sdk/blob/main/libs/sdk-bindings/build.rs |
SDK version: breez/breez-sdk-greenlight@4db7c57
c-breez version: b58026f
OS: macOS Ventura 13.3.1
clang version:
rustc version: 1.69.0
NDK version: 25.2.9519653
Emulator properties:
Output
@erdemyerebasmaz found a related issue here mozilla/rust-android-gradle#105 (comment)
The text was updated successfully, but these errors were encountered: