-
Notifications
You must be signed in to change notification settings - Fork 61
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
fixed ffi build for android. #409
Conversation
8554627
to
1fd3af7
Compare
1fd3af7
to
c60d376
Compare
c80764a
to
f08119e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg
@@ -85,5 +88,6 @@ jobs: | |||
- name: Build (Android) | |||
if: ${{ contains(matrix.target, 'android') }} | |||
run: | | |||
ln -sf $ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/lib/${{ matrix.ndk_arch }}/{libunwind.so,libc++abi.a} $ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/lib/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an envvar we can set instead of symlinking these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using ndk r25 above, this error will appear, but I can't find the real reason for it. It may be a bug in cargo ndk when linking libunwind
. I observed the directory structure in ndk r27 and found that the libunwind.so
symbolic link corresponds to x86_64-unknown-linux-musl/libunwind.so
by default, but this is obviously a mistake for aarch64 and armv7 compilation. I guess I should see if there is any issue/patch in the cargo-ndk upstream (our repo does not directly depend on unwind related packages).
fixed ffi build for android.
Fixed compilation for android ffi
https://github.com/livekit/rust-sdks/actions/runs/12062288204