error: cannot find -lc++ qt 5.12 android
-
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#34For 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
-
@Albertino solution works for me (Qt 5.12.3)
-
@Albertino @AriosJentu Hello , I am getting while deploying 5.10 project into QT 5.13. It is perfectly deploying for windows but for android unable to deploy i have already tried all available solutions but nothing is working out for me.
This is my error-
clang++.exe: error: no such file or directory: 'c:\Utils\Android\android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++.so.21'
make: *** [libMNSBLauncher.so] Error 1
12:26:15: The process "C:\Android\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
Error while building/deploying project mobilauncher (kit: Android for arm64-v8a (Clang Qt 5.13.0 for Android ARM64-v8a))
When executing step "Make" 😢 -
@albertino THANK YOU! WOOORKS!!!!
-
@albertino said in error: cannot find -lc++ qt 5.12 android:
https://codereview.qt-project.org/c/qt/qtbase/+/264903/9/mkspecs/android-clang/qmake.conf#34
Solution works on 5.12.4
-
@trousev said in error: cannot find -lc++ qt 5.12 android:
You also can write this into your own qmake file, not into system one. To be precise, just add into your project's .pro the following:
QMAKE_LINK += -nostdlib++
and that's it
Worked for me!
-
FYI If this is https://bugreports.qt.io/browse/QTBUG-70631, it's claimed to be fixed with 5.12.5 and 5.13.0
-
@Albertino thanks it worked
-
@AriosJentu I had the same problem, how did you solve it