Using cURL in Android

后端 未结 7 579
终归单人心
终归单人心 2020-11-27 14:58

I would like to use cURL library in my android application in native code (using NDK r5b, the latest). After researching online, it seems the only way to use cURL in android

7条回答
  •  渐次进展
    2020-11-27 15:12

    "CURL_SIZEOF_LONG definition is missing!"

    there is a way for it .

    change the curlbuild.h at line number 162 add like this,if you are arm32 platform.

    //----------------------------------------------add
    #    define CURL_SIZEOF_LONG           4
    #    define CURL_TYPEOF_CURL_OFF_T     long long
    #    define CURL_FORMAT_CURL_OFF_T     "lld"
    #    define CURL_FORMAT_CURL_OFF_TU    "llu"
    #    define CURL_FORMAT_OFF_T          "%lld"
    #    define CURL_SIZEOF_CURL_OFF_T     8
    #    define CURL_SUFFIX_CURL_OFF_T     LL
    #    define CURL_SUFFIX_CURL_OFF_TU    ULL
    #  define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
    #  define CURL_SIZEOF_CURL_SOCKLEN_T 4
    //#define __SYMBIAN32__
    

提交回复
热议问题