I lose consciousness while trying to build my NDK project from eclipse using the CDT plugin and I get an error: -
NDK (Cannot run program "ndk-build": Unknown reason)
The application starts, but I lose all the console output for the build process, this is a nightmare when I try to compile, and I have to do it on the command line.
Here's how I got there: -
I Downloaded and installed the CDT plugin for Eclipse.
Then:
Added my JNI folder and also your Android.mk in the JNI directory.
Then:
Go FILE / NEW / OTHER /C/C++ / ( Convert to a C/C++ Project )
When setting up my build target:
Check the project, choose MakeFile Project and Other Toolchain click NEXT
Then, finally, in the project properties:
PROJECT / PROPERTIES / C/C++ uncheck " use default build command" replace "make" with "ndk-build"
Then, when he builds, he lays an error on the console. Although it compiles and makes an assembly that works on the device, I cannot see any output from the assembly.
I have "ndk-build" in my .bash_profile with the following variables:
:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK
I can compile using ndk-build from the command line. It seems that Eclipse can not see my PATH:
This is on Mac OSX, in Helios 2 version.
EDIT: Okay, so this compiles fine, and the output from the compilation is hidden under this message, this is far from ideal, because when I need to see what elements were built, I cannot close them. How can I get rid of it?