-
Notifications
You must be signed in to change notification settings - Fork 109
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
cannot locate symbol "AConfiguration_getScreenRound" #12
Comments
looks like you're not linking against |
I've not had that issue, so I'm not sure there's something wrong with the bindings... |
Yup, I was missing this in my
Thanks for pointing me in the right direction! |
cc @dvc94ch Well this is strange. I thought it was my build process for compiling
Here is the rustc command that compiled
And yet I am still getting cannot locate symbol "AConfiguration_getScreenRound" at runtime. Any idea what's going on here? I'm now at a loss where to go next. PS: Sorry to bother you with my own personal issues, you just seemed like a good person to ask. edit I just realized that |
Hard to tell. You're not using cargo-apk so I don't know. This seems weird: |
Did it work before you added camera support? |
Yup, the challenge is building without cargo-apk it seems. The I was initially making headway with camera support using the texture-view example, but this is a slightly different setup for the main activity thread, and doesn't require The problem started when I attempted to switch to the basic example since it has functionality for taking photos, which I wanted to test. This example uses This is where I've been stuck the past few days. And everything was going so smoothly up to this point. I may just scrap the basic example for now and just focus on the capture feed (aka texture-view). The structure of the application should be irreverent to the api regardless. Thoughts? |
Well you should be testing things individually. So the code should work before and after your changes. |
Unfortunately, I can't even get a simple "Hello, World!" up and running using the |
|
Stumbled upon this in a following case:
Getting device API level
Not sure how to solve this yet. My current guess is this is caused because the symbols usages have been baked into FFI (https://github.com/mb64/android-ndk-rs/tree/master/android-ndk-sys/src)) - maybe these should be generated when compiling based on the desired target level? |
Hello,
I am having a bit of trouble linking your ffi bindings with my own, and was hoping to get some feedback on where I can start working on the problem. Everything works as expected until I do this:
let app = unsafe { AndroidApp::from_ptr(state) };
, which throws the following runtime exception.It could be related to this issue, which was fixed in NDK r22, which isn't out yet. I am on r21, while your bindings were generated with r20. Do you have plans to update your bindings for the new LTS release, or should I just target r20 in my own ffi bindings? This may possibly be completly unrelated. I'm kinda stabbing in the dark here.
Cheers, and thank you for your time!
The text was updated successfully, but these errors were encountered: