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