Android – Issue with build Android NDK project

androidandroid-ndkeclipse

I try to build project in Eclipse on Linux Ubuntu.
Eclipse show error message:

**** Build of configuration Default for project FFVideo ****

/home/art/android-ndk-r7b/ndk-build V=1 

Cannot run program "/home/art/android-ndk-r7b/ndk-build": Unknown reason
Error: Program "/home/art/android-ndk-r7b/ndk-build" is not found in PATH

PATH=[/home/art/android-ndk-r7b:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]

**** Build Finished ****

Why it happened?

Best Solution

You need to set the path to android ndk in eclipse.
1. Open C/C++ Perspective.
2. Right click on the project, and select "Properties"
3. Select C/C++ Build => Environment
4. Add PATH environment variable, include path to the android ndk.