Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with build Android NDK project

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?

like image 440
ArtKorchagin Avatar asked Mar 14 '12 07:03

ArtKorchagin


1 Answers

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.

like image 113
gulati Avatar answered Oct 03 '22 09:10

gulati