1
votes

I'm trying to compile openssl to Android based on:

https://github.com/guardianproject/openssl-android

I'm trying to run ndk-build but I get the following error:

make: /home/aaa/tools/android-ndk-r10e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found

How do I change the location to one of this two?

/home/aaa/tools/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc

/home/aaa/tools/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc

Or how should I compile this to solve a missing include?

The Android.mk

LOCAL_PATH := $(call my-dir)

subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
        crypto \
        ssl \
        apps \
    ))

include $(subdirs)
1
How are you invoking ndk-build? What is the content of Application.mk?Francesca Nannizzi
I add to the question @bullsyJMR

1 Answers

1
votes

You should change variable NDK_TOOLCHAIN_VERSION in the Application.mk file. You can read more about Application.mk and it difference with Android.mk here