-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
Error compiling to Android with cargo apk #1307
Comments
@naomijub, looks like your stable rustc outdated. |
Updated it and got
|
cargo 1.44.0 (05d080faa 2020-05-06) |
glutin doesn't work on android now IIRC. There's a branch to make it work #1274 |
I have same errors with android. Unfortunately, I don't understand discussion #1274. I tried this branch with no success. Would you be able to provide path for stable version of glutin? |
Did anyone manage to compile? |
I'm also trying for days to get either winit, glutin or just some hello world app running on android without success. Is there any compiling and running example out there? |
I tried once and gave up after. Was waiting for this to be merged #1313 |
@Kaiser1989 Great. Can you publish your changes? |
Here is my running example: https://github.com/Kaiser1989/rust-android-example I forked glutin and winit to get some nice and easy cargo dependencies. It's completly based on your (@katyo ) glutin_simple project. I just did some hacky changes to winit and changed the ContextBuilder config. |
Hello Philipp. Thank you so much for this grate job. This example works perfect. Grate respect. Many thanks to @katyo for support and ideas. |
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Awesome work! I tried to use your winit fork in order to get egui running on android, but it seems that your fork is too outdated to work with the egui-winit backend. It would be great if you could update it, and maybe even get it merged. :D |
Finally rebased my custom versions of glutin and winit to newest versions: Created Pull-Request for winit: and glutin: Adjusted my working example to use these new versions: |
@Kaiser1989 you didn't link the glutin PR. It's #1385, not rust-windowing/winit#2118 |
Same problem #1405 anyone solved it? |
I made PRs for this above. Could someone help me reviewing and get them merged? |
@lattice0 General comment while looking through / reviewing your PRs: Try tackling one change at a time, use a descriptive title and explain in the PR description why you are making the change and think it's the correct one. "Android fix" is an example of a nondescriptive title 😉 Thanks otherwise! |
Part one of this is fixed in #1398, part two still needs some discussion but will get a proper PR soon. Thanks for bearing with us! |
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Currently this fails because of an Android incompatibility in glutin: rust-windowing/glutin#1307 rust-windowing/glutin#1313
Hi, I have tried to compile a project to android and I get this error.
Rust nightly:
rust stable:
The text was updated successfully, but these errors were encountered: