Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid NDK in Eclipse :: (Cannot run program "ndk-build": Unknown reason)
    primarykey
    data
    text
    <p>I am loosing my mind trying to build my NDK project from eclipse using the CDT plugin and i get the error:-</p> <pre><code>NDK (Cannot run program "ndk-build": Unknown reason) </code></pre> <p>The application runs but i loose all of the console output for the build process, this is a nightmare when trying to compile and i have to do it on the command line. </p> <p>This is how i got there:-</p> <pre><code>I Downloaded and installed the CDT plugin for Eclipse. </code></pre> <p>Then:</p> <pre><code>Added my JNI folder and also your Android.mk in the JNI directory. </code></pre> <p>Then:</p> <pre><code>Go FILE / NEW / OTHER /C/C++ / ( Convert to a C/C++ Project ) </code></pre> <p>On setting up my build target:</p> <pre><code>Check the project, choose MakeFile Project and Other Toolchain click NEXT </code></pre> <p>Then finally in project properties:</p> <pre><code>PROJECT / PROPERTIES / C/C++ uncheck " use default build command" replace "make" with "ndk-build" </code></pre> <p>Then when it builds it spits the error to the console. Though it compiles and makes the build which runs on the device i cant see any of the build output. </p> <p>I have "ndk-build' in my .bash_profile with the following variables:</p> <pre><code>:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK </code></pre> <p>I can compile using ndk-build from command line fine. It seems that Eclipse cant see my PATH: </p> <p>This is on Mac OSX, in Helios version 2. </p> <p>EDIT: Ok so this compiles fine, and the output from the build is infact hidden underneath this message, this is far from ideal, as when i need to review what items have been built i cant as its covered up. How do i get rid of it? </p>
    singulars
    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.
 

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