Qt (QWidget) for Android by Clang. Possible?
-
Hi
Please recommend the exact version of Qt + exact version of NDK + choose between 32 and 64 arm versions. I would like to build my QWidget based project for Android with Clang compiler.
-
Hi,
You have these information in the Android Getting Started chapter of Qt's documentation.
-
@SGaist said in Qt (QWidget) for Android by Clang. Possible?:
Hi,
You have these information in the Android Getting Started chapter of Qt's documentation.
Thank you! I am using
Qt 5.12.1 (latest release version)
NDK 19.1.5304403 (latest release version)This is exactly what needed according to the documentation.
And I see the following error after build attempt -/Users/misha/Library/Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lc++
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libHelloWorld.so] Error 1
08:50:17: The process "/Users/misha/Library/Android/sdk/ndk-bundle/prebuilt/darwin-x86_64/bin/make" exited with code 2.
Error while building/deploying project HelloWorld (kit: Android for arm64-v8a (Clang Qt 5.12.1 for Android ARM64-v8a))
When executing step "Make"What am I doing wrong?