Issue
So I am having this very annoying problem with Qt Creator. When I try to build any application I get the following:
.../NDK/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: not found Project ERROR: Cannot run target compiler
Now I have read here that this might be because of due to Android Studio and this can be solved just downloading the NDK separately from Google's website. So far I have tried the following things:
Removed Android Studio
Installed the SDK tools separately
Installed the NDK separately
Downgraded my JDK version to 8
Tried with different versions of the NDK (I have tried 20,19 and 18)
However none of these solutions work. I am using Qt Creator 4.9.2 with Qt 5.13.
Solution
Since ndk r19, the toolchains are already completely changed to llvm/clang, see here: https://stackoverflow.com/a/54800967/8034839 for more details.
From your error message, it looks you set the toolchain to gcc rather than clang, which might be the problem.
Answered By - shizhen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.