Skip to content
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

Merged
merged 19 commits into from
Nov 30, 2024
Merged

fixed ffi build for android. #409

merged 19 commits into from
Nov 30, 2024

Conversation

cloudwebrtc
Copy link
Contributor

@cloudwebrtc cloudwebrtc commented Aug 26, 2024

@cloudwebrtc cloudwebrtc reopened this Oct 29, 2024
@cloudwebrtc cloudwebrtc force-pushed the duan/fix-build-for-android branch from 8554627 to 1fd3af7 Compare November 28, 2024 03:48
@cloudwebrtc cloudwebrtc force-pushed the duan/fix-build-for-android branch from 1fd3af7 to c60d376 Compare November 28, 2024 03:48
@cloudwebrtc cloudwebrtc force-pushed the duan/fix-build-for-android branch from c80764a to f08119e Compare November 28, 2024 04:01
@cloudwebrtc cloudwebrtc marked this pull request as ready for review November 28, 2024 04:11
@cloudwebrtc cloudwebrtc changed the title try to fix build for android. fixed ffi build for android. Nov 28, 2024
Copy link
Member

@nbsp nbsp left a 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/
Copy link
Member

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?

Copy link
Contributor Author

@cloudwebrtc cloudwebrtc Nov 28, 2024

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).

@cloudwebrtc cloudwebrtc merged commit 5a3a8ea into main Nov 30, 2024
14 of 18 checks passed
@cloudwebrtc cloudwebrtc deleted the duan/fix-build-for-android branch November 30, 2024 13:49
mikayla-maki pushed a commit to zed-industries/livekit-rust-sdks that referenced this pull request Dec 2, 2024
fixed ffi build for android.
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.

3 participants