안드로이드 프로젝트에서 사용할 수있는 라이브러리를 빌드하려면 https://github.com/eighthave/openssl-android 에 주어진 오픈 소스를 사용하고 있습니다. 플랫폼 2.1 용 Android-openssl 라이브러리 빌드
README.txt가에 주어진 지침에 따라, 나는 (레벨 -8)하여 안드로이드 플랫폼 버전 2.2을 컴파일 할 수 있어요하지만 내 응용 프로그램은 2.1 (수준 -7) 호환 가능해야합니다.
I 시도 default.properties 파일 (https://github.com/eighthave/openssl-android/blob/master/default.properties)
1) 설정된 목표 = 로이드 -7-
2) 설정된 타겟 옵션 다음 = 로이드 -5-
을하지만 컴파일 때 Dl_info가 정의되지 않은 메시지 - 명령 NDK 빌드를 사용하여, 그것은 오류를 오류 사항에 따라
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
에 따라 제공합니다. 그러나 dso_dlfcn.c 파일을 열면 구조체에 대한 정의가 이미 제공됩니다. (https://github.com/eighthave/openssl-android/blob/master/crypto/dso/dso_dlfcn.c)
이 코드는 기본 속성 파일에서는 target = android-8로 컴파일되지만 android-7 또는 android-5에서는 컴파일되지 않습니다.
이 오류를 해결하는 데 도움을 요청하십시오. 안드로이드 2.1 플랫폼 용으로 컴파일하기 위해 모든 변경 사항을 수행해야한다는 사실을 알려주십시오.
미리 감사드립니다.
하기 전에 당신은 또한 [OpenSSL을 안드로이드] (HTTPS가 없습니다 : // wiki.openssl.org/index.php/Android)를 OpenSSL 위키에 추가하십시오. – jww