Using mupdf ndk-build error

I am trying to use mupdf in an android application. I use windows 7 and cygwin terminal.I used make, but it gave an error and make NOX11 = yes to execute successfully.

then i used ndk-build and gave this error.

SharedLibrary  : libmupdf.so
c:/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/libmupdfcore.a(pdf_fontfile.o)(.text.pdf_lookup_builtin_font+0x18): unresolvable R_ARM_THM_CALL relocation against symbol `strcmp'
c:/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
/cygdrive/c/android-ndk-r8b/build/core/build-binary.mk:378: recipe for target `obj/local/armeabi/libmupdf.so' failed
make: *** [obj/local/armeabi/libmupdf.so] Error 1

Please help me. I am new to android ndk. Thank.

+5
source share
1 answer

This seems like a known issue. Try adding a line:

NDK_TOOLCHAIN_VERSION=4.4.3

to the file .. \ android \ jin \ Application.mk. This will at least get rid of this particular error.

EDIT : See http://code.google.com/p/android/issues/detail?id=35393 for more information.

UPDATE: mupdf . NDK mupdf (http://mupdf.com/download/archive/), , , . , mupdf-0.9 (+ mupdf-thirdparty-2011-02-24.zip) android-ndk-r6b, mupdf-1.1 (+ mupdf-thirdparty-2012-08-14.zip) android-ndk-r8b.

+12

All Articles