在构建Android ndk时出现此错误

时间:2013-01-16 19:52:06

标签: android android-ndk

jni/../external/libjpeg/jidctfst.S: Assembler messages:
jni/../external/libjpeg/jidctfst.S:66: Error: missing ')'
jni/../external/libjpeg/jidctfst.S:66: Error: garbage following instruction -- 'pld (r2,#0)'
jni/../external/libjpeg/jidctfst.S:259: Error: missing ')'
jni/../external/libjpeg/jidctfst.S:259: Error: garbage following instruction -- 'pld (sp,#32)'
jni/../external/libjpeg/jidctfst.S:271: Error: missing ')'
jni/../external/libjpeg/jidctfst.S:271: Error: garbage following instruction -- 'pld (ip,#32)'
make: *** [obj/local/armeabi/objs/jpeg/jidctfst.o] Error 1

任何人都可以帮我解决这个错误信息吗?

4 个答案:

答案 0 :(得分:9)

尝试将PLD指令后的括号更改为括号。也就是说,改变

PLD (xx xx)

PLD [xx xx]

答案 1 :(得分:2)

取消注释Android.mk的ANDROID_JPEG_NO_ASSEMBLER行,就像这样:

# temp fix until we understand why this broke cnn.com
#ANDROID_JPEG_NO_ASSEMBLER := true

这样做:

# temp fix until we understand why this broke cnn.com
ANDROID_JPEG_NO_ASSEMBLER := true

答案 2 :(得分:1)

尝试使用Cygwin在Windows上编译Android,这很痛苦。 按照XDA-Developers.com上的指南在Ubuntu Linux下编译android,它在Windows Cygwin环境中很容易,并且工作正常:)

答案 3 :(得分:0)

我有同样的错误,一些解决方案说PLD从大写更改为小写 例如从"PLD""pld"