Qmake build errors for blank arm64 android app
Solved
Mobile and Embedded
-
I'm trying to begin android development targeting a oneplus 3 running android 9 on an arm64 chip. I am using Android SDK 26.1.1 and NDK 20. And my system is KDE ubuntu 18.04. And i am able to build and run normal programs
I have stumbled at the first hurdle and am unable to build to the device which seems to be setup correctly. The two issues are
cannot find -lc++
linker command failed with exit code 1
In detail the error is:
clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libuntitled.so] Error 1 17:24:15: The process "/home/euan/Android_NDK/prebuilt/linux-x86_64/bin/make" exited with code 2. Error while building/deploying project untitled (kit: Android for arm64-v8a (Clang Qt 5.13.0 for Android ARM64-v8a)) When executing step "Make"
Things i have tried:
- extensive googling
- modifying mkspecs/android-clang/qmake.conf in accordance to here from this forum post
- changing NDK versions.
Many thanks,