Comments (9)
I applied the provided patch (only 4 lines to change) to the curl.mk file.
My goal was to create library that uses curl internally.
So before building my lib I put (only need x86 and armeabi-v7a for my Adobe AIR native extension):
###############################
#libcurl.a
include $(CLEAR_VARS)
LOCAL_MODULE := curl_static
ifeq (
LOCAL_SRC_FILES := path/to/curl-android-ios/prebuilt-with-ssl/android/x86/libcurl.a
endif
ifeq (
LOCAL_SRC_FILES := path/to/curl-android-ios/prebuilt-with-ssl/android/armeabi-v7a/libcurl.a
endif
ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_SRC_FILES := path/to/curl-android-ios/prebuilt-with-ssl/android/armeabi/libcurl.a
endif
LOCAL_EXPORT_C_INCLUDES := path/to/curl-android-ios/prebuilt-with-ssl/android/include
LOCAL_C_INCLUDES := path/to/curl-android-ios/prebuilt-with-ssl/android/include
include $(PREBUILT_STATIC_LIBRARY)
###############################
Then for my lib I set:
LOCAL_STATIC_LIBRARIES := curl_static
Cheers
Marcel
from curl-android-ios.
I was able to apply the changes from pull request #27 and was able to compile and then link libcurl.a to my project for armeabi-v7a and arm64-v8a successfully.
For my purposes I had used android-ndk-r10e and had changed the TARGET variable in the script to use android-21.
from curl-android-ios.
I am having the same issue, using ndk-r10e
from curl-android-ios.
I am having the same issue when I execute the android test, the ndk version is 13.0.3315539 , and the android studio version is 2.2.
I tried to use this lib in Cmake, here is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.4.1) add_library( native-lib SHARED src/main/cpp/native-lib.cpp ) find_library( log-lib log ) include_directories(/home/yjy/tools/curl-android-ios/curl/include/) target_link_libraries( native-lib ${log-lib} /home/yjy/tools/curl-android-ios/prebuilt-with-ssl/android/mips64/libcurl.a)
However, I got the same issues.
How can I solve it ? Thanks in advance !
from curl-android-ios.
Same here. No luck whatever I try.
from curl-android-ios.
The changes in the pull request helped with this problem.
from curl-android-ios.
Did you manage to link against the library successfully then?
from curl-android-ios.
Awesome, thanks guys - yep, until PR 27 gets merged in, this will get you up and running again on the Android side :)
git pull origin pull/27/head
from curl-android-ios.
Great! Pull 27 worked! Wondering why is it not merged to master!!
from curl-android-ios.
Related Issues (20)
- build failed: 'connectx' is only available on iOS 9.0 HOT 1
- Cannot build for Android HOT 1
- SSL link error happened HOT 4
- openssl file headers not found HOT 3
- arm version prebuilt library for Android is not exist. HOT 1
- Could you please post compiled Android binaries? HOT 3
- config failed with curlbuild.h.in HOT 2
- undefined reference to 'curl_easy_init' HOT 1
- Build on MacOS Mojave failed with Socekt Support problem HOT 4
- CURLOPT_PINNEDPUBLICKEY does not work on iOS HOT 4
- build android - ssl configuration
- Could you please update it to support arm64e for A12/A12X?
- Can't build on MacOS Mojave 10.14.5
- problem with using the library
- Missing LICENSE HOT 1
- url.c:55:2: error: "We can't compile without socket() support!" HOT 1
- Build iOS Error Catalina HOT 3
- Curl ios
- clang: error: unsupported option '--noexecstack' HOT 1
- Configured for android. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl-android-ios.