-
Notifications
You must be signed in to change notification settings - Fork 211
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
Locating the android ndk path #950
Comments
Hi, Yeah, it assumes you used the As I said in earlier discussions on this subject, using |
I think just by defining ANDROID_NDK_ROOT alone should be enough to make gdnative-sys to work. In this way it's independent on how the NDK was installed (by either manually, using a package manager or sdkmanager cli tool). Unless I misunderstood some stuff about gdnative-sys that it needs the other 2 environment variables. Thoughts? |
godot-rust probably should not be opinionated about how the NDK was installed, as such I'd welcome if we also allowed an environment variable to be used. But like macalimlim, I'm not 100% sure if that's enough or users are very likely to immediately run into the next pitfall. It probably makes sense though if we document the recommended workflow (which is What do you both think? |
I don't really know what's the best, I pretty much kept what was there (the However, rust android ndk tools recommends using |
Thanks for the update! Would one of you guys have the motivation and time to add the And maybe someone to submit a PR that would allow an |
Hi @Bromeon and @orion78fr, I can probably do both, unless @orion78fr wants to do the additions to the guidebook. I also forked this docker image by @ufoot. In the fork, I implemented the changes needed by gdnative-sys to work. You can check it on this Dockerfile, plus the addition of setting up an iOS toolchain. I can also do a separate PR for that in the guidebook. If you want to test the new docker image out, just do Mike |
You can do both, I don't have much time to work on this these days. |
Hi,
@orion78fr
@Bromeon
I see that there are changes to
gdnative-sys/build.rs
about locating the ndk path (either having anndk
directory orndk-bundle
directory). The issue with my own setup is I downloaded the ndk from Google (using wget) and extracted its contents to my file system, to which thendk
and/orndk-bundle
directories does not exist. Does the current implementation ingdnative-sys/build.rs
assume it was downloaded by a package manager and/or by an Android IDE?Mike
The text was updated successfully, but these errors were encountered: