using Curl with android studio
Date: Tue, 28 Jan 2020 19:57:35 +0000 (UTC)
Hi all,
I have developed software with C that works properly in windows. I used Curl for internet communications. Recently I moved my all codes to Android Studio and all things are good and I don't have any problem.
I have tried to use Curl in my application but even after following the rules in the official site for using Curl in android, I didn't a success.
recommended things after some necceary changes : 1- export NDK=~/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.59489442- export HOST_TAG=windows-x86_643- export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG4- export AR=$TOOLCHAIN/bin/x86_64-linux-android-ar5- export AS=$TOOLCHAIN/bin/x86_64-linux-android-as6- export CC=$TOOLCHAIN/bin/x86_64-linux-android21-clang7- export CXX=$TOOLCHAIN/bin/x86_64-linux-android21-clang++8- export LD=$TOOLCHAIN/bin/x86_64-linux-android-ld9- export RANLIB=$TOOLCHAIN/bin/x86_64-linux-android-ranlib10- export STRIP=$TOOLCHAIN/bin/x86_64-linux-android-strip11- ./configure --host=x86_64-linux-android --with-pic --disable-shared
-------------------------------config.log :.../bin/arch = x86_64/usr/bin/arch -k = unknown/usr/convex/getsysinfo = unknown/usr/bin/hostinfo = unknown/bin/machine = unknown/usr/bin/oslevel = unknown/bin/universe = unknown...configure:3952: result: /home/simorgh/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/bin/x86_64-linux-android21-clangconfigure:4221: checking for C compiler versionconfigure:4230: /home/simorgh/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/bin/x86_64-linux-android21-clang --version >&5./configure: line 4232: /home/simorgh/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/bin/x86_64-linux-android21-clang: No such file or directoryconfigure:4241: $? = 127....
configure:4260: checking whether the C compiler worksconfigure:4282: /home/simorgh/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/bin/x86_64-linux-android21-clang conftest.c >&5./configure: line 4284: /home/simorgh/mnt/C/Users/Asus/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/bin/x86_64-linux-android21-clang: No such file or directoryconfigure:4286: $? = 127configure:4324: result: noconfigure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME "curl"| #define PACKAGE_TARNAME "curl"| #define PACKAGE_VERSION "-"| #define PACKAGE_STRING "curl -"| #define PACKAGE_BUGREPORT "a suitable curl mailing list: http://curl.haxx.se/mail/"| #define PACKAGE_URL ""| /* end confdefs.h. */| | int main (void)| {| | ;| return 0;| }configure:4329: error: in `/mnt/e/AndroidStudioProjects/curla':configure:4331: error: C compiler cannot create executables....
configure: exit 77
Is there any way to use Curl in my Android project?
Thank you for taking the time,Khalil Torabi
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-28