Cygwin编译时的目录问题 with Putty
实在不太喜欢Cygwin原带的console,就弄了个putty的,一般命令没有问题,等我编译时运行ndk-build直接报错:
(就是下面黑体字,注意windows后面多了一个减号,我的ndk运行目录没有问题,项目C文件也没有问题),如果在Cygwin原带的console下面编译就没有问题,请高手指教,谢谢!
ndk-build
NDK Path: /cygdrive/d/Prog/Android/Install/android-ndk-r5b
GNUMAKE defined: /usr/bin/make
OSTYPE : cygwin
GNUMAKE after cygpath: /usr/bin/make
PROGDIR_MIXED after cygpath: D:/Prog/Android/Install/android-ndk-r5b
CYGWIN_GNUMAKE : make: Nothing to be done for `all'.
Compile thumb : ndkfoo <= ndkfoo.c
/bin/sh: /cygdrive/d/Prog/Android/Install/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-/bin/arm-linux-androideabi-gcc: No such file or directorymake: *** [/cygdrive/d/workspace/NdkFooActivity/obj/local/armeabi/objs/ndkfoo/ndkfoo.o] Error 127
------解决方案--------------------
看样子是makefile里检测的路径变量
你可以到makefile中把相应变量改掉