Add an error message if android NDK is not installed#1344
Conversation
|
Does this actually lead to the message getting printed in your testing? In looking into this previously, this code: ... was preventing the See #791 |
|
Yeah, actually, if you look at the top of the |
Yes, the printing worked, tested on Windows: whereas before I was just getting linker errors:
For me it was getting run. The problem is that it doesn't actually check if the files exist on disk, all it does is construct a path to the NDK. I could modify it to do the exists check in |
dsnopek
left a comment
There was a problem hiding this comment.
Ah, ok, so this is handling the case where ANDROID_HOME or ANDROID_NDK_ROOT are set, but NDK can't actually be found at the specified location?
That makes sense! And it seems to be working in my testing :-)
| env.Append(LINKFLAGS=["-shared"]) | ||
|
|
||
| if not os.path.exists(toolchain): | ||
| print("ERROR: Could not find NDK toolchain at " + toolchain + ".") |
There was a problem hiding this comment.
| print("ERROR: Could not find NDK toolchain at " + toolchain + ".") | |
| print("ERROR: Could not find NDK toolchain at " + toolchain + ".") |
Trailing whitespace
|
Thanks! And congrats for your first merged Godot contribution 🎉 |
|
Cherry-picking to 4.2 in #1372 |
|
Cherry-picking to 4.1 in #1373 |
I had trouble figuring out why I couldn't compile for android and realized I didn't have the right NDK version installed. So I figured I would add an error message to make it more obvious.