本文介绍了NDK的生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我是新来的Android NDK开发。
Hi I am new to Android NDK Development.
MacBook-Pro:JNIexample sk$ ndk-build
usage: dirname path
gmake: /Users/sk/build/core/build-local.mk: No such file or directory
gmake: *** No rule to make target `/Users/sk/build/core/build-local.mk'. Stop.
为什么我得到了自己的错误?
Why do I get his error?
推荐答案
所以我有同样的麻烦,它看起来像如果我有这充满目录路径的一部分,其中有DIR-名空间中的任何目录('')中的那么NDK建造不会是能够解决的路径。所以,我的目录名开发工具wasnt不够好,所以我改成了developmenttools和它的工作。如果我硬c中的路径$ C $的NDK建造,那么它是工作,所以发现了原因。
So I was having the same trouble, and it looks like if I have any directory which is a part of full dir-path which has dir-name with space (' ') in between then 'ndk-build' wont be able to resolve paths. So my directory name "development tools" wasnt good enough so I changed it to "developmenttools" and it worked. If I hard-code the path in 'ndk-build' then it was working so found out the reason.
这篇关于NDK的生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!