How to build OpenSSL on Android / Linux?

Hi I need to create OpenSSL lib for Android NDK r5b, today it will be the second day of my ... useles fight. Here is a short list of what I did


/ precompiled / window / bin / link Linux-androideabi- SharedLibrary: libcrypto.so arm-linux-androideabi-g ++. exe: CreateProcess: there is no such file or directory make: * [/cygdrive/c/AndroidDev/AndroidOpenSSL/obj/local/armeabi/libcrypto.so] Error 1 *

This is 10 years when I last used make, and I was sure that this was a problem with the g ++ contour. Added some debugging in the toolchain and got:

TOOLCHAIN_NAME: arm-linux-androideabi-4.4.3 TOOLCHAIN_PREFIX: /cygdrive/c/Android_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi -

both look great to me, since / cygdrive / c / Android_NDK / toolchains / arm-linux-androideabi-4.4.3 / prebuilt / windows / bin / exists, and arm-linux-androideabi-g ++ exists. exe is right there :(

Has anyone had the same problem? I do not know where to look for the future :( We will be grateful for the help

+2
android g ++ android-ndk openssl
source share
3 answers

One solution is also to shorten the openssl build path, for example. from c: \ code \ openssl-android to c: \ ssl

+2
source share

Looks like I had such a problem. Here is the solution I found, maybe someone will find out why this happened. The saved command line for splitting a file named bild_data strong> (output from ndk-build), then g ++ call is deleted from it, so in my build file there was only a list of files and flags. Then I just executed from cygwin arm-linux-androideabi-g ++ @build_data strong> After that I had my "precious" libcrypto.so, ndk-build , executed using libcrypto.so alerdy, built from the command line, built openssl library. For me, it looks like a command line that is longer than 31 KB is not suitable for the cygwin buffer :(

+2
source share

I had the same issue with Windows (cygwin), and shortening the path to the project directory (see mango answer) is what worked for me.

+1
source share

All Articles