Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Command for Ubuntu17.10 #32

Open
DineshGuptaa opened this issue Aug 21, 2018 · 3 comments
Open

Build Command for Ubuntu17.10 #32

DineshGuptaa opened this issue Aug 21, 2018 · 3 comments

Comments

@DineshGuptaa
Copy link

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:

  • openssl-1.1.0f.tar.gz
  • curl-7.53.1.tar.gz
  • android-ndk-r14b

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
Copy link
Owner

    1. You must build openssl first and then build curl
    1. Try to add -D__ANDROID_API__=21 to CFLAGS

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

Sorry, I only build openssl and curl on MacOS X

@DineshGuptaa
Copy link
Author

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
Copy link
Owner

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants