porting libcurl on android with ssl support

后端 未结 3 740
Happy的楠姐
Happy的楠姐 2020-12-09 01:03

I am trying to port libCurl to android with SSL support, step one would be to port the curl without ssl support I guess so I started doing that. but I run into a problem.

3条回答
  •  北海茫月
    2020-12-09 01:28

    I like the way to use Docker for building such static libs. There is full script here - you just run it and grab the result. Sample: https://gist.github.com/VictorLaskin/1c45245d4cdeab033956

    Such script will:

    • setup compilation tools / utils download sdk/ndk
    • create custom cross-compilation toolchain download source code for libs (zlib, openssl, curl)
    • setup environment settings for cross compilation
    • configure and make libs
    • gather output at one folder and create the way to get compiled libs

    This specific version is using latest NDK 10e and clang toolchain.

    There is post with more details here: http://vitiy.info/dockerfile-example-to-compile-libcurl-for-android-inside-docker-container/

    I hope this will help someone to not waste precious time.

提交回复
热议问题