leenjewel / openssl_for_ios_and_android

OpenSSL Library for iOS and Android
920 stars 317 forks source link

Build Command for Ubuntu17.10 #32

Open DineshGuptaa opened 6 years ago

DineshGuptaa commented 6 years ago

Hi, I am building OpenSSL for android on Ubuntu 17.10. 1st I tried to run 'build-curl4android.sh' but getting error as below: image

and when run the 'build-openssl4android.sh android-armeabi' then image

I am using tools as listed below:

Please advise me what are parameters need to pass i.e. ARCH=$1; OUT=$2; CLANG=${3:-""};

Your input will helpful to me. Thanks , Dinesh

leenjewel commented 6 years ago
run python `dirname $0`/make_standalone_toolchain.py \
--arch $ARCH $PLATFORM_ARG --stl $STL $INSTALL_ARG $FORCE_ARG

append –deprecated-headers like this

run python `dirname $0`/make_standalone_toolchain.py \
--arch $ARCH $PLATFORM_ARG --stl $STL $INSTALL_ARG $FORCE_ARG --deprecated-headers

Sorry, I only build openssl and curl on MacOS X

DineshGuptaa commented 6 years ago

Hi Leenjewel,

I am running build command as 1st build type 2nd output dir 3rd CLANG ./build-openssl4android.sh android-armeabi ~/tools/output -D__ANDROID_API__=21 still getting same error. I have installed the clang on my Ubuntu 17.10 machine. image

is it correct?

leenjewel commented 6 years ago

if it not work, edit YOUR_NDK_PATH/build/tools/make-standalone-toolchain.sh find

run python `dirname $0`/make_standalone_toolchain.py \
--arch $ARCH $PLATFORM_ARG --stl $STL $INSTALL_ARG $FORCE_ARG

append –deprecated-headers like this

run python `dirname $0`/make_standalone_toolchain.py \
--arch $ARCH $PLATFORM_ARG --stl $STL $INSTALL_ARG $FORCE_ARG --deprecated-headers

Did you try it ?