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

Error Linking | armv7a-linux-androideabi28-clang | Linux Mint #38

Closed
sotrh opened this issue Jun 5, 2020 · 4 comments
Closed

Error Linking | armv7a-linux-androideabi28-clang | Linux Mint #38

sotrh opened this issue Jun 5, 2020 · 4 comments

Comments

@sotrh
Copy link

sotrh commented Jun 5, 2020

I've been trying to run gfx-rs/wgpu-rs on Android, and I've run into a linking error with version 0.1.0 of the ndk package.

I've created a repository that replicates the issue.

https://github.com/sotrh/wgpu-on-android

I've attached an the stderr output of cargo apk run as well.
error.txt

Let me know if I can provide more information.

@MarijnS95
Copy link
Member

MarijnS95 commented Jun 5, 2020

Hi!

The problem, at least for me when building your application, is name = "android". This results in your target library being named libandroid.so, which is the name of the library containing the symbols it's missing.
Fwiw I see wgpu-on-android/target/aarch64-linux-android/debug/deps/libandroid.so: file not recognized: File truncated instead.

@sotrh
Copy link
Author

sotrh commented Jun 6, 2020

I've updated the crate name, but the error still persists. My guess is that I'm missing a native package, but I don't know which one.

@dvc94ch
Copy link
Contributor

dvc94ch commented Jun 6, 2020

If you rename the crate, you probably still have libandroid.so in your target folder. Can you try manually removing the file or doing a clean build?

@sotrh
Copy link
Author

sotrh commented Jun 6, 2020

It's compiling now

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

No branches or pull requests

3 participants