2017-10-05 4 views
0

Je développe une application Android qui doit utiliser de grandes bases de données, mais il doit fonctionner sur l'appareil Android.Impossible de construire le pilote berkeleyDB jdbc pour android

J'ai trouvé cette base de données et a essayé de suivre ces instructions:

http://docs.oracle.com/cd/E17076_02/html/installation/build_android_jdbc.html

1) Téléchargé db-6.2.32

2) a couru le configure --enable jdbc & & faire sans problèmes

Maintenant, j'essaie de courir étape 4.:

$ < NDK-répertoire_installation>/NDK-construire

Cela me donne cette erreur:

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. 

Après cela, sous la direction Android.mk et ajout de la ligne suivante:

APP_ALLOW_MISSING_DEPS=true 

Ce que le processus pour commencer, mais à la fin, j'ai plusieurs erreurs que je ne sais pas comment résoudre:

/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. 

Je suis en cours d'exécution linux menthe,

Architecture: x86_64 op en mode CPU (s): 32 bits, 64 bits

Répondre