使用NDK mupdf的构建错误 [英] using mupdf ndk-build error

查看:266
本文介绍了使用NDK mupdf的构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用android系统application.I mupdf使用Windows 7我和Cygwin terminal.I用于化妆,但它给了错误,
                      使NOX11 = YES
成功执行。

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

然后我用NDK的构建,它给这个错误。

then i used ndk-build and it gives 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

请帮我,我是新来的Andr​​oid NDK。
谢谢你。

please help me.I am new to android ndk. Thank you.

推荐答案

这似乎是一个已知的问题。尝试添加一行:

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

NDK_TOOLCHAIN_VERSION=4.4.3

在文件.. \\机器人\\斤\\ Application.mk。这至少会摆脱这个特定错误的。

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

修改:看这儿<一个href=\"http://$c$c.google.com/p/android/issues/detail?id=35393\">http://$c$c.google.com/p/android/issues/detail?id=35393了解更多信息。

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

更新
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。

UPDATE: mupdf world is a murky one. Even the version of NDK vis-a-vis the version of mupdf (http://mupdf.com/download/archive/) you use will determine what sort of errors or warnings you get. From my experience, mupdf-0.9 (+mupdf-thirdparty-2011-02-24.zip) behaves well with android-ndk-r6b, while mupdf-1.1 (+mupdf-thirdparty-2012-08-14.zip) will behave just fine with android-ndk-r8b.

这篇关于使用NDK mupdf的构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆