You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Required toolchain not found for platform" printed instead of more helpful errors such as "ANDROID_NDK_ROOT not set". #791
I wanted to build my extension for Android, so I casually ran scons p=android assuming it would tell me what's wrong. Instead I got "Required toolchain not found for platform".
In android.py, the helpful error is only printed in generate, which is called after exists in SConstruct:
SConstruct:
iftoolisNoneornottool.exists(env):
raiseValueError("Required toolchain not found for platform "+env["platform"])
tool.generate(env)
android.py:
defexists(env):
ifnot"ANDROID_NDK_ROOT"inos.environ:
returnFalsereturnTruedefgenerate(env):
ifnot"ANDROID_NDK_ROOT"inos.environ:
raiseValueError(
"To build for Android, ANDROID_NDK_ROOT must be defined. Please set ANDROID_NDK_ROOT to the root folder of your Android NDK installation."
)
I met the same problem and saw your issue.
at the end: scons platform=android arch=arm64 ANDROID_NDK_ROOT=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\23.2.8568313
changed the title [-]"Required toolchain not found for platform" printed instead of more helpful error.[/-][+]"Required toolchain not found for platform" printed instead of more helpful errors such as "ANDROID_NDK_ROOT not set".[/+]on Apr 2, 2023
Activity
Visense6 commentedon Mar 27, 2023
I met the same problem and saw your issue.
at the end:
scons platform=android arch=arm64 ANDROID_NDK_ROOT=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\23.2.8568313
[-]"Required toolchain not found for platform" printed instead of more helpful error.[/-][+]"Required toolchain not found for platform" printed instead of more helpful errors such as "ANDROID_NDK_ROOT not set".[/+]DmitriySalnikov commentedon Aug 23, 2023
It is still not specified anywhere that it is necessary to explicitly add
ANDROID_NDK_ROOTto environment variables or arguments.