큰 데이터베이스를 사용해야하는 안드로이드 앱을 개발 중이지만 안드로이드 장치에서 실행해야합니다.berkeleyDB jdbc 드라이버를 안드로이드 용으로 빌드 할 수 없습니다.
나는이 데이터베이스를 발견하고 그 지침에 따라 시도했다 :
http://docs.oracle.com/cd/E17076_02/html/installation/build_android_jdbc.html을
1) 은 DB-6.2.32
2) 실행 다운로드 구성 --enable- jdbc & & 문제없이
지금 단계를 실행하려고합니다. 4. :
$ < NDK 설치 - 디렉토리> /이 날이 오류주는
을 NDK 빌드 : 그 후
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.
/home/mariano/Android/android-ndk-r15b/build/core/build-binary.mk:688: Android NDK: Module db_archive depends on undefined modules: dl log icuuc icui18n utils
/home/mariano/Android/android-ndk-r15b/build/core/build-binary.mk:701: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop.
는, Android.mk을 편집하고 다음 줄을 추가했습니다 :
APP_ALLOW_MISSING_DEPS=true
이 시작하는 과정을하지만, 마지막에, 나는 해결 방법을 모르는 몇 가지 오류가 있습니다 x86_64의 :
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:162:34: error: unrecognized instruction mnemonic
if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) {
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:1099:2: note: expanded from macro 'MUTEXP_ACQUIRE'
MUTEX_SET(&(mutexp)->tas))
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:477:3: note: expanded from macro 'MUTEX_SET'
"ldrex %0, [%2]\n\t" \
^
<inline asm>:1:2: note: instantiated into assembly here
ldrex x8, [x28]
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:162:34: error: unrecognized instruction mnemonic
if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) {
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:1099:2: note: expanded from macro 'MUTEXP_ACQUIRE'
MUTEX_SET(&(mutexp)->tas))
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:478:17: note: expanded from macro 'MUTEX_SET'
"cmp %0, %1\n\t" \
^
<inline asm>:3:2: note: instantiated into assembly here
strexne x8, x20, [x28]
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:162:34: error: unrecognized instruction mnemonic
if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) {
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:1099:2: note: expanded from macro 'MUTEXP_ACQUIRE'
MUTEX_SET(&(mutexp)->tas))
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:477:3: note: expanded from macro 'MUTEX_SET'
"ldrex %0, [%2]\n\t" \
^
<inline asm>:1:2: note: instantiated into assembly here
ldrex x8, [x28]
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:162:34: error: unrecognized instruction mnemonic
if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) {
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:1099:2: note: expanded from macro 'MUTEXP_ACQUIRE'
MUTEX_SET(&(mutexp)->tas))
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:478:17: note: expanded from macro 'MUTEX_SET'
"cmp %0, %1\n\t" \
^
<inline asm>:3:2: note: instantiated into assembly here
strexne x8, x22, [x28]
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:213:3: error: too few operands for instruction
MEMBAR_ENTER();
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:492:23: note: expanded from macro 'MEMBAR_ENTER'
({ __asm__ volatile ("dsb"); })
^
<inline asm>:1:2: note: instantiated into assembly here
dsb
^~~
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:439:3: error: too few operands for instruction
MEMBAR_ENTER();
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:492:23: note: expanded from macro 'MEMBAR_ENTER'
({ __asm__ volatile ("dsb"); })
^
<inline asm>:1:2: note: instantiated into assembly here
dsb
^~~
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:623:4: error: too few operands for instruction
MEMBAR_EXIT();
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:494:23: note: expanded from macro 'MEMBAR_EXIT'
({ __asm__ volatile ("dsb"); })
^
<inline asm>:1:2: note: instantiated into assembly here
dsb
^~~
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:635:3: error: too few operands for instruction
MEMBAR_EXIT();
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:494:23: note: expanded from macro 'MEMBAR_EXIT'
({ __asm__ volatile ("dsb"); })
^
<inline asm>:1:2: note: instantiated into assembly here
dsb
^~~
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/mutex/mut_tas.c:619:4: error: too few operands for instruction
MEMBAR_EXIT();
^
/home/mariano/Downloads/db-6.2.32/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:494:23: note: expanded from macro 'MEMBAR_EXIT'
({ __asm__ volatile ("dsb"); })
^
<inline asm>:1:2: note: instantiated into assembly here
dsb
^~~
7 warnings and 9 errors generated.
을 내가 리눅스 민트,
아키텍처를 실행 해요을 CPU의 연산 모드 (들) : 32 비트, 64 비트