Sto utilizzando open-ssl source data a https://github.com/eighthave/openssl-android per creare una libreria che può essere utilizzata nel progetto Android.Costruisci libreria Android-openssl per piattaforma 2.1
Come da istruzioni fornite a README.txt, sono in grado di compilarlo per la versione della piattaforma Android 2.2 (livello -8)
Ma la mia applicazione richiede che sia 2.1 (livello -7) compatibile.
ho provato le seguenti opzioni con il file default.properties (https://github.com/eighthave/openssl-android/blob/master/default.properties)
1) impostare target = Android-7
2) impostare target = Android-5
Ma quando compilo che usando il comando NDK-build, dà errore seguente
Compile thumb : crypto <= dsa_vrf.c
Compile thumb : crypto <= dso_dl.c
Compile thumb : crypto <= dso_dlfcn.c
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c: In function 'dlfcn_pathbyaddr':
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: 'Dl_info' undeclared (first use in this function)
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: (Each undeclared identifier is reported only once
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: for each function it appears in.)
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: expected ';' before 'dli'
/Crypto/openssl-android/crypto/dso/dso_dlfcn.c:455: error: 'dli' undeclared (first use in this function)
make: *** [obj/local/armeabi/objs/crypto/dso/dso_dlfcn.o] Error 1
Come per errore messaggio-Dl_info non è definito. ma se andiamo al file dso_dlfcn.c, la definizione per la struttura è già fornita. (https://github.com/eighthave/openssl-android/blob/master/crypto/dso/dso_dlfcn.c)
E questo codice è stato compilato per target = android-8 nel file di proprietà predefinito, ma non per android-7 o android-5.
Richiedi di aiutarmi a risolvere questo errore. e fammi sapere che cosa è necessario fare tutti i cambiamenti per compilarlo per la piattaforma Android 2.1.
Grazie in anticipo.
È anche avere [OpenSSL e Android] (https: // wiki.openssl.org/index.php/Android) sul wiki OpenSSL. – jww