Qt on Mac for Android app: failed to parse default search paths from compiler output
-
wrote on 14 Oct 2018, 01:09 last edited by
Hi all,
I need the support from someone of you with more skills than me.
I'm trying to use Qt in my mac, to create my first app for Android.
This is the Qt version I'm using:Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa"
OS: macOS Sierra (10.12) [darwin version 16.7.0]After I set this:
- jdk-11.jdk
- SDK Version: 24.4.1
- NDK Version: 18.0.5002713
I tried to run a dummy app, and if I debug in Desktop mode I don't get any error, but if I run the Android mobile debug I get this error:
clang++: error: unknown argument: '-mthumb-interwork' clang++: error: unknown argument: '-mthumb-interwork' Project ERROR: failed to parse default search paths from compiler output Error while parsing file /.../.../.../MyProject.pro. Giving up.
Can someone of you help me? Where am I wronging?
I tried to find the solution in Internet but no satisfactory answer...Thanks a lot!!
-
Hi,
There has been many similar questions recently on this forum. The answer is basically: don't use NDK 18. The current recommended version as stated in Qt's Android Getting Started guide is r10e while people seems to have had success with version 17 as well.
When doing Android development with 3rdparty like Qt, don't jump on the latest and greatest versions of all the dependencies. NDK updates have a tendency to break things fairly regularly.
-
to test Qt 5.12 Beta 1 on Android AFIK using NDK 16b works.
1/3