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

Unable to cross-compile for android #407

Open
GaryCraft opened this issue Mar 30, 2024 · 1 comment · May be fixed by #465
Open

Unable to cross-compile for android #407

GaryCraft opened this issue Mar 30, 2024 · 1 comment · May be fixed by #465

Comments

@GaryCraft
Copy link

I'm building an android application that requires support for the socket.io protocol to connect to a server, however, this requires cross-compilation and this crate requires openssl-sys

I have already tried many alternatives, like using Cross, or even bare docker images with qemu, but none have worked so far

Host: x86_64-unknown-linux-gnu (Ubuntu)
Target: aarch64-linux-android

#366 might be related, and maybe could fix this, but it seems to have no progress so far

additionally, could this be reasonably easy to implement?

@1c3t3a
Copy link
Owner

1c3t3a commented Apr 29, 2024

Mhm... openssl is an inherent problem of such crates and it is not super easy to get rid of it IMO. Feel free to fork this repo and try to get rid of the openssl dependency though. If you have questions, feel free to ask them as part of this issue.

ctrlaltf24 added a commit to ctrlaltf24/rust-socketio that referenced this issue Sep 20, 2024
Turned out to be rather easy due to all tls being handled by our dependencies.

Don't love the _fallback-tls feature, however with it we can use cargo-all-features,
which helps reduce feature related bugs.

Downside of cargo-all-features is it takes a long time to execute.

Fixes: 1c3t3a#407, 1c3t3a#366
@ctrlaltf24 ctrlaltf24 linked a pull request Sep 20, 2024 that will close this issue
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 a pull request may close this issue.

2 participants