Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NDK build error

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?

like image 474
Ragunath Jawahar Avatar asked Feb 08 '11 20:02

Ragunath Jawahar


1 Answers

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.

like image 157
Saurabh Avatar answered Sep 21 '22 11:09

Saurabh