i've been trying cross-compile openssl android x86 couple of hours now. current openssl version 1.1.0, but, correct me if i'm wrong, current openssl documentation not cover 1.1.0 installation, previous ones. if 1.1.0 stated @ beginning of installation documentation, , allusions done sometimes, found not relevant enough me step-by-step install v1.1.0.
i suppose solution issue trivial, so, couldn't resolve it. in brief, here i've done :
downloaded openssl 1.1.0 sources.
downloaded tiny script recommended on several forums (may on official installation doc) configure environment variables before installation : available here : https://github.com/rjmangubat23/openssl/blob/master/x86/setenv-android.sh
modified fit needs :
_android_ndk="android-ndk-r12b"
_android_eabi="x86-4.9"
_android_api="android-21"
we need toolchains architecture want build stunnel for. took toolchains android contained in ndk on aosp's website :
https://developer.android.com/ndk/guides/standalone_toolchain.html
mostly used/tried 3 of them : x86, x86_64, , arm.
configuration went using config can find on openssl installation tutorial:
$ ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=/usr/local/ssl/$android_api
next step make sources using $ make. here's i've been stuck, shows error :
"/bin/sh: 1: i686-linux-android-gcc: not found" if not finding x86 toolchain. issue happened every toolchain :
"/bin/sh: 1: i686-linux-android-gcc: not found" when used x86 toolchain
"/bin/sh: 1: x86_64-linux-android-gcc: not found" when used x86_64 toolchain
"/bin/sh: 1: arm-linux-androideabi-gcc: not found" when used arm toolchain
- the issue comes bad environment variable, correcly added toolchains paths path environment variable.
hoping great guy me this. not hesitate ask me further informations. in advance, john
Comments
Post a Comment