Friday, 13 September 2013

Android NDK Include Path In Eclipse

Android NDK Include Path In Eclipse

I have an Android NDK project that builds fine in cygwin using ndk-build.
However, I wanted to have it build in eclipse, so I installed C/C++
Development tools into my ADT version of eclipse and added native support
to the project in eclipse. However, after building, I get the following
error:
fatal error: timer.h: No such file or directory
In my original Android.mk file, I have the following include that lets it
work in cygwin:
LOCAL_C_INCLUDES := /cygdrive/c/ADT/includes/
I tried adding a similar include path (C:\ADT\includes) to
Project->Properties->C/C++ General->Paths and Symbols, but still no luck.
Any suggestions?

No comments:

Post a Comment