Giter Club home page Giter Club logo

Comments (9)

MarcelKlammer avatar MarcelKlammer commented on May 18, 2024 3

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 ($(TARGET_ARCH_ABI), $(filter $(TARGET_ARCH_ABI), x86))
LOCAL_SRC_FILES := path/to/curl-android-ios/prebuilt-with-ssl/android/x86/libcurl.a
endif

ifeq ($(TARGET_ARCH_ABI), $(filter $(TARGET_ARCH_ABI), armeabi-v7a))
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.

jsuppe avatar jsuppe commented on May 18, 2024 2

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.

jsuppe avatar jsuppe commented on May 18, 2024

I am having the same issue, using ndk-r10e

from curl-android-ios.

YjyJeff avatar YjyJeff commented on May 18, 2024

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.

MarcelKlammer avatar MarcelKlammer commented on May 18, 2024

Same here. No luck whatever I try.

from curl-android-ios.

MarcelKlammer avatar MarcelKlammer commented on May 18, 2024

The changes in the pull request helped with this problem.

from curl-android-ios.

InfiniteStates avatar InfiniteStates commented on May 18, 2024

Did you manage to link against the library successfully then?

from curl-android-ios.

InfiniteStates avatar InfiniteStates commented on May 18, 2024

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.

winster avatar winster commented on May 18, 2024

Great! Pull 27 worked! Wondering why is it not merged to master!!

from curl-android-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.