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

dlopen failed: cannot locate symbol "AConfiguration_getScreenRound" #2

Open
MarcoPolo opened this issue Dec 18, 2019 · 1 comment
Open

Comments

@MarcoPolo
Copy link

Hey there! thanks for this library!

I ran into this issue, possibly related to my build process, when I build some code using android_ndk. When I add android_ndk My .so file now has the symbol AConfiguration_getScreenRound. Which makes sense because you create the bindings for android/configuration. But Android can't seem to find the thing to link it to!

I also get this issue when adding AConfiguration_getScreenRound(state->config) to the native-activity sample in ndk-samples.

Maybe I didn't link some library? I looked at the symbols in all of the lib*.so in the ndk and I didn't see a symbol for AConfiguration_getScreenRound either (but I see symbols for AConfiguration_getScreenLong). So I don't think I'm forgetting to link something.

Maybe if you too can't get it working, then AConfiguration_getScreenRound should be behind a cargo feature?

Or am I missing something really obvious?

@MarcoPolo
Copy link
Author

Looks like it's an Android issue: https://issuetracker.google.com/issues/146458518

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

1 participant