Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid NDK in ADT and Mac OS (10.8): Cannot run program "/ndk-build": Unknown reason Error: Program "/ndk-build" is not found in PATH
    primarykey
    data
    text
    <p>The error while building is </p> <pre><code>/ndk-build Cannot run program "/ndk-build": Unknown reason Error: Program "/ndk-build" is not found in PATH PATH=[/usr/bin:/bin:/usr/sbin:/sbin] </code></pre> <p>I am trying to build a OpenCV project on Eclipse ADT and have done the following so far to build it. Normal android projects(not involving c/c++ code) works fine.</p> <p>1- I have edited the /etc/paths to the following</p> <pre><code>/usr/bin /bin /usr/sbin /sbin /usr/local/bin PATH=$PATH:/Users/mohitagrawal/adt-bundle-mac-x86_64-20130219/sdk/tools PATH=$PATH:/Users/mohitagrawal/adt-bundle-mac-x86_64-20130219/sdk/platfor m-tools PATH=$PATH:/Users/mohitagrawal/android-ndk-r8e </code></pre> <p>2- I have edited $PATH to following(knowingly or unknowingly)</p> <pre><code> -bash: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: PATH=$PATH:/Users/mohitagrawal/adt-bundle-mac-x86_64-20130219/sdk/tools:PATH=$PATH:/Users/mohitagrawal/adt-bundle-mac-x86_64-20130219/sdk/platfor:m-tools: PATH=$PATH:/Users/mohitagrawal/android-ndk-r8e:/opt/X11/bin:/usr/local/git/bin:/usr/texbin: No such file or directory </code></pre> <p>3- Build command in "C/C++ Build" in project properties is set to </p> <pre><code>${NDK_ROOT}/ndk-build </code></pre> <p>4- NDK location in Preferences of ADT eclipse is set to </p> <pre><code>/Users/mohitagrawal/android-ndk-r8e </code></pre> <p>Please help me. I am stuck from many days and has even tried on different platform.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload