Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ndk-build command not found in Ubuntu terminal

I have successfully generated .h file using javah, now i want to build my android-ndk hello world project. But it says command not found nespl@nespl-pc:~$ ndk-build ndk-build: command not found

this is my path

nespl@nespl-pc:~$ echo $PATH
/home/nespl/android-ndk-r8/ndk-build:/home/nespl/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nespl/adt-bundle-linux-x86/sdk/tools:/home/nespl/adt-bundle-linux-x86/sdk/platform-tools:/home/nespl/gsutil
like image 885
Sanidhya Kumar Avatar asked Feb 15 '13 09:02

Sanidhya Kumar


1 Answers

Your PATH should include the root directory of your NDK:

export PATH=$PATH:/home/nespl/android-ndk-r8

instead of your current:

export PATH=$PATH:/home/nespl/android-ndk-r8/ndk-build
like image 146
Kevin Coppock Avatar answered Sep 22 '22 05:09

Kevin Coppock