getting this error while building Android ndk

不打扰是莪最后的温柔 提交于 2020-01-06 08:00:30

问题


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

can anyone help me with this to resolve this error msg?


回答1:


Try changing the the parenthesis following the PLD instruction to brackets. That is, change

PLD (xx xx)

to

PLD [xx xx]



回答2:


Uncomment the ANDROID_JPEG_NO_ASSEMBLER line of the Android.mk, it is like that:

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

do that:

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



回答3:


trying to compile Android on Windows with Cygwin it's a pain. Follow the guides on XDA-Developers.com to compile android under Ubuntu Linux, its easy as in a Windows Cygwin Environment and it works fine :)




回答4:


i have the same error and some solutions says change PLD from UPPERCASE to lowercase e.g. from "PLD" to "pld" .



来源:https://stackoverflow.com/questions/14366630/getting-this-error-while-building-android-ndk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!