안드로이드 개발 질문/답변
(글 수 45,052)
예전에 샘플을 잘 돌렷는데요...
ndk 버젼이 올라가서 컴파일이 안되는건지?
win7 64비트라서 안 돌아가는지 잘 모르겠네요.
도움 부탁드립니다.
cho@cho-PC ~/ndk/samples/hello-jni
$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni <= hello-jni.c
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:17:20: error: string.h: No such f
ile or directory
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:18:17: error: jni.h: No such file
or directory
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:27: error: expected '=', ',', ';'
, 'asm' or '__attribute__' before 'Java_com_example_hellojni_HelloJni_stringFrom
JNI'
make: *** [/cygdrive/d/dev/5.ndk/samples/hello-jni/obj/local/armeabi/objs-debug/
hello-jni/hello-jni.o] Error 1
ndk 버젼이 올라가서 컴파일이 안되는건지?
win7 64비트라서 안 돌아가는지 잘 모르겠네요.
도움 부탁드립니다.
cho@cho-PC ~/ndk/samples/hello-jni
$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni <= hello-jni.c
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:17:20: error: string.h: No such f
ile or directory
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:18:17: error: jni.h: No such file
or directory
D:/dev/5.ndk/samples/hello-jni/jni/hello-jni.c:27: error: expected '=', ',', ';'
, 'asm' or '__attribute__' before 'Java_com_example_hellojni_HelloJni_stringFrom
JNI'
make: *** [/cygdrive/d/dev/5.ndk/samples/hello-jni/obj/local/armeabi/objs-debug/
hello-jni/hello-jni.o] Error 1




자답] 버젼 문제가 아니라...
심볼릭 링크 문제였네요...