Compiling muPDF lib in Eclipse “cannot unlink `NUL': Invalid argument Android NDK” Error

。_饼干妹妹 提交于 2019-11-28 10:01:42

问题


I'm trying to compile the muPDF lib in Eclipse on Windows 7. I'm following these steps.

On this step

Build the native code libraries:
~/src/mupdf/platform/android $ ndk-build

I'm getting this error.

Qadir Hussain@GENETECH042 ~/mupdf/platform/android (master)
$ ndk-build
"C:/Program Files (x86)/Git/bin/rm.exe": cannot unlink `NUL': Invalid argument
Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored fo
r static libraries
      0 [main] rm 4244 stdio_init: couldn't make stderr distinct from stdout
      0 [main] rm 2876 stdio_init: couldn't make stderr distinct from stdout
      0 [main] rm 4832 stdio_init: couldn't make stderr distinct from stdout
[armeabi-v7a] Compile thumb  : mupdf <= mupdf.c
./obj/convert-dependencies.sh: line 6: syntax error: unexpected end of file
e:/android-ndk/android-ndk-r9d/build/core/build-binary.mk:391: recipe for target
 'obj/local/armeabi-v7a/objs/mupdf/mupdf.o' failed
make: *** [obj/local/armeabi-v7a/objs/mupdf/mupdf.o] Error 2
make: *** Deleting file 'obj/local/armeabi-v7a/objs/mupdf/mupdf.o'

Also when I launch this command it creates a file NUL in my ..platform/android directory, the file has no extension and couldn't be deleted or renamed.

来源:https://stackoverflow.com/questions/24545152/compiling-mupdf-lib-in-eclipse-cannot-unlink-nul-invalid-argument-android-nd

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