2016-02-16 1 views
1

Je suis en train de compiler OpenSSL pour Android basé sur:OpenSSL changement android-build NDK chemin

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

Je suis en train de courir NDK-construire mais je reçois l'erreur suivante :

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

Comment puis-je changer l'emplacement pour l'un de ces deux?

/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

Ou comment compiler ceci pour résoudre une inclusion manquante?

Le Android.mk

LOCAL_PATH := $(call my-dir) 

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

include $(subdirs) 
+1

Comment appelez-vous ndk-build? Quel est le contenu de Application.mk? –

+0

Je rajoute à la question @bullsy – JMR

Répondre

1

Vous devriez changer NDK_TOOLCHAIN_VERSION variable dans le fichier Application.mk. Vous pouvez en savoir plus sur Application.mk et sa différence avec Android.mk here

+0

Merci savez-vous comment puis-je résoudre l'inclusion manquante #include // l'inclusion de openSSL à android? – JMR

+0

Vous devez placer un include dans votre projet, puis lui affecter une variable LOCAL_C_INCLUDES. Vous pouvez lire la description de ceci et d'autres variables .mk ici http://developer.android.com/intl/ru/ndk/guides/android_mk.html – noktigula

+0

Je fais la question, si vous avez le temps. Je crois que c'est le chemin mais ne fonctionne pas ... http://stackoverflow.com/questions/35456444/openssl-in-android-add-library-to-g-command/35459234#35459234 – JMR