I have an Android (Java) project that includes some native C/C++ code and I need it to be able to code complete on various C classes & functions. However the option to include where the (full) source is from does not seem to be available in the Android (Java) project.
Does anyone know of a way to either: 1) Trick Eclipse into including the necessary Project Properties panel item (side panel)? 2) Include the files manually through the use of some form of configuration file?
Thanks, Kevin
There are two basic ways to setup a NDK builder in Eclipse:
Here is a good-looking tutorial for the CDT configuration:
http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/
To enable the code completion for external sources (and for standard Android headers) you need to open "Project properties" > "C/C++ general" > "Paths and symbols" and add your include paths to the list:
NDKROOT
- an environment variable containing path to my NDK
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With