From 356fa9d29a53aa0dba28016b932f8042f8d3970a Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Fri, 23 Aug 2019 17:47:20 +0800 Subject: Started using cURL on Android There's a quirk since Clang. It seems the Android search path setting messes up the standard library compilation. So for now, what you do is remove the android-* setting to make Qt compile, even though it would say it cannot find libcurl, and then put the setting back again to link with libcurl. --- kelakon.pro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kelakon.pro') diff --git a/kelakon.pro b/kelakon.pro index e0e0d89..8f1240f 100644 --- a/kelakon.pro +++ b/kelakon.pro @@ -11,5 +11,12 @@ SOURCES += \ RESOURCES += kelakon.qrc +android-* { + INCLUDEPATH += $$(ANDROID_STANDALONE_TOOLCHAIN)/usr/include + LIBS += -L$$(ANDROID_STANDALONE_TOOLCHAIN)/usr/lib + ANDROID_EXTRA_LIBS += \ + $$(ANDROID_STANDALONE_TOOLCHAIN)/usr/lib/libcurl.so +} + LIBS += \ -lcurl -- cgit v1.2.3