clang++: error: linker command failed with exit code 1 Qt Android

后端 未结 2 725
夕颜
夕颜 2020-12-20 06:07

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         


        
相关标签:
2条回答
  • 2020-12-20 06:47

    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

    0 讨论(0)
  • 2020-12-20 07:01

    According to this page installing ndk version 19 should fix it. Did it for me.

    0 讨论(0)
提交回复
热议问题