Unable to build Qt examples . Getting error while building in windows
E:\\android-ndk-r20-windows-x86_64\\android-ndk-r20/toolchains/aarch64-linux-
andro
The error: cannot find -lc++
using ndk r20 can be solved like this:
https://codereview.qt-project.org/c/qt/qtbase/+/264903/9/mkspecs/android-clang/qmake.conf#34
For example to compile for android armv7 ndk r20, locate the file:
C:\Qt\5.13.0\android_armv7\mkspecs\android-clang\qmake.conf
and add the missing -nostdlib++
for android x86 (i use this for emulator), locate the file:
C:\Qt\5.13.0\android_x86\mkspecs\android-clang\qmake.conf
According to this page installing ndk version 19 should fix it. Did it for me.