2012-04-02 20 views
4

Ich bin neu in der Verwendung von NDK und ich möchte MUPDF-Bibliothek für mein PDF-Viewer-Projekt zu bauen, ich folgte Integrate MuPDF Reader in an app und auch diese ReadMe.txt und ich stieß auf diese Fehler :.Gebäude MUPDF für Android

[email protected]:/$ ndk-build -C /home/home/Downloads/MUPDFlib/mupdf-0.9/android 
make: Entering directory `/home/home/Downloads/MUPDFlib/mupdf-0.9/android' 
Gdbserver  : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver 
Gdbsetup  : libs/armeabi/gdb.setup 
Gdbserver  : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver 
Gdbsetup  : libs/armeabi-v7a/gdb.setup 
Compile thumb : mupdf <= mupdf.c 
Compile thumb : mupdfcore <= base_error.c 
Compile thumb : mupdfcore <= base_geometry.c 
Compile thumb : mupdfcore <= base_getopt.c 
Compile thumb : mupdfcore <= base_hash.c 
Compile thumb : mupdfcore <= base_memory.c 
Compile thumb : mupdfcore <= base_object.c 
Compile thumb : mupdfcore <= base_string.c 
Compile thumb : mupdfcore <= base_time.c 
Compile thumb : mupdfcore <= crypt_aes.c 
Compile thumb : mupdfcore <= crypt_arc4.c 
Compile thumb : mupdfcore <= crypt_md5.c 
Compile thumb : mupdfcore <= crypt_sha2.c 
Compile thumb : mupdfcore <= dev_bbox.c 
Compile thumb : mupdfcore <= dev_list.c 
Compile thumb : mupdfcore <= dev_null.c 
Compile thumb : mupdfcore <= dev_text.c 
jni/../../fitz/dev_text.c:6:22: error: ft2build.h: No such file or directory 
jni/../../fitz/dev_text.c:7:10: error: #include expects "FILENAME" or <FILENAME> 
jni/../../fitz/dev_text.c:8:10: error: #include expects "FILENAME" or <FILENAME> 
jni/../../fitz/dev_text.c: In function 'fz_text_extract_span': 
jni/../../fitz/dev_text.c:215: error: 'FT_Face' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:215: error: (Each undeclared identifier is reported only once 
jni/../../fitz/dev_text.c:215: error: for each function it appears in.) 
jni/../../fitz/dev_text.c:215: error: expected ';' before 'face' 
jni/../../fitz/dev_text.c:237: error: 'face' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:318: error: 'FT_Fixed' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:318: error: expected ';' before 'ftadv' 
jni/../../fitz/dev_text.c:319: error: 'FT_LOAD_NO_BITMAP' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:319: error: 'FT_LOAD_NO_HINTING' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:319: error: 'FT_LOAD_IGNORE_TRANSFORM' undeclared (first use in this function) 
jni/../../fitz/dev_text.c:324: error: 'ftadv' undeclared (first use in this function) 
make: *** [obj/local/armeabi/objs-debug/mupdfcore/__/__/fitz/dev_text.o] Error 1 
make: Leaving directory `/home/home/Downloads/MUPDFlib/mupdf-0.9/android' 
[email protected]:/$ 

hoffe jemand kann mir hier helfen.

+0

Sie können hier suchen: http://StackOverflow.com/Questions/8500530/Mupdf-Reader-Integrate-in-Project/8587527 #8587527. Ich habe die Schritt-für-Schritt-Anleitung wie man mupdf erstellt. – Yury

Antwort

2

Im Ordner mupdf-0.9 den Befehl make ausführen, bevor ndk-build im Ordner android ausgeführt wird.

0

Blick here

  • Zuerst installieren Android NDK in Ihrem Computer
  • Dann mupdf 0.8.15 Quellcode herunterladen (nicht herunterladen Version 1.0, ohne mupdf Quellcode in 1.0.0)
  • Laden Sie die Zip-Paket Dritter (mupdf-thirdparty-2011-02-24.zip), uRL: mupdf.com//download/archive,

yo Du wirst erfolgreich kompilieren.

+1

[Bitte geben Sie eine Zusammenfassung] (http://meta.stackexchange.com/q/115837/158556) für Links zu Seiten, die nicht auf Englisch geschrieben sind. – Matthias

+0

Ich kann diese Seite einfach in Englisch übersetzen. Zuerst installieren Sie android NDK in Ihrem Computer. Dann Download mupdf 0.8.15 Quellcode (nicht 1.0 Version herunterladen, ohne mupdf Quellcode in 1.0.0), und Download ThirdParty zip Paket (mupdf-thirdparty-2011-02-24.zip), URL: http: //mupdf.com//download/archive/, dann ist die Kompilierung so einfach. –

+0

@MorsionMacleo Anstatt Ihre Antwort über einen Kommentar zu aktualisieren, können Sie Ihre Antwort direkt aktualisieren. Ich habe mir die Freiheit genommen, die Bearbeitungs- und Layoutfunktionen für Sie zu demonstrieren. Wenn Sie nicht damit zufrieden sind, können Sie es zurücksetzen oder weiter bearbeiten –