ld: error: undefined symbol when compile rodio crate dependency #383
Replies: 5 comments
-
Oboe links against the static C++ STL by default unless EDIT: katyo/oboe-rs#28 and linked issues seem related, though only show the issues at runtime after presumably linking against the shared lib. |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing that out, I will close the issue now |
Beta Was this translation helpful? Give feedback.
-
Before closing, just to confirm: did this actually fix the issue? If so it might be a good idea to loop in @katyo since oboe-rs explicitly supports static c++ linking by default and has commits to make it work. Perhaps you're using an older version that doesn't support it yet? |
Beta Was this translation helpful? Give feedback.
-
I have add these lines in my Cargo.toml but the same issue appeared
|
Beta Was this translation helpful? Give feedback.
-
in my android11 project, it is ok after add c++_shared lib. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Error
Steps to reproduce
cargo apk run
I found another repo that are using Rust for Android & rodio library https://github.com/endragor/cpal-android-test , so I think there should be no problem to compile rodio. I guess there is some problem with the toolchain? I don't know what should I do.
Isn't it should use clang++ instead of clang? How do I set it up?
Beta Was this translation helpful? Give feedback.
All reactions