Read it. If you want to use ant, your build or not, it can only help
to understand what's going on. Secondarilarily, you need to see how
ant executes externals: http://ant.apache.org/faq.html#batch-shell-execute
That will tell you how to call ndk-build from ant.
Cheers
On Nov 25, 3:50 pm, SChaser <crotalistig...@gmail.com> wrote:
On Thu, 2010-11-25 at 15:50 -0800, SChaser wrote: > I have an NDK project which I have been developing using Eclipse for > the Java, and Cygwin command line (ndkbld) for the NDK.
> However, I'd like to avoid the multi-step build/run process if > possible. Right now, that process is:
If you are using Eclipse 3.6, then I'd strongly suggest you add the latest p2 repo from the Sequoyah project (1.1 -- not the one that's already in the Eclipse software list) and install the Android Native Support plug-in.
It provides the scaffolding that the CDT plug-in needs to properly do NDK builds -- a "Build" command will build your NDK components, then your Java components, all at once. And unlike the previous attempts to integrate the NDK into Eclipse, I've never had this one fail to actually produce a new .apk file.
(It also gives you integrated step-through debugging via gdbserver, including stepping native <--> managed code, though that takes a bit more work because the ndk's version of gdbserver is useless.)
I would also back that up. With sequoyah I am able to build the native project as well in the eclipse environment and debugging the native code too is possible but i am not able to set it up properly. I am getting the error "Error creating process when the C++ debug configuration is invoked.
On Mon, Nov 29, 2010 at 7:24 AM, Mike Edenfield <kut...@kutulu.org> wrote: > On Thu, 2010-11-25 at 15:50 -0800, SChaser wrote: > > I have an NDK project which I have been developing using Eclipse for > > the Java, and Cygwin command line (ndkbld) for the NDK.
> > However, I'd like to avoid the multi-step build/run process if > > possible. Right now, that process is:
> If you are using Eclipse 3.6, then I'd strongly suggest you add the > latest p2 repo from the Sequoyah project (1.1 -- not the one that's > already in the Eclipse software list) and install the Android Native > Support plug-in.
> It provides the scaffolding that the CDT plug-in needs to properly do > NDK builds -- a "Build" command will build your NDK components, then > your Java components, all at once. And unlike the previous attempts to > integrate the NDK into Eclipse, I've never had this one fail to actually > produce a new .apk file.
> (It also gives you integrated step-through debugging via gdbserver, > including stepping native <--> managed code, though that takes a bit > more work because the ndk's version of gdbserver is useless.)
> --Mike
> -- > You received this message because you are subscribed to the Google Groups > "android-ndk" group. > To post to this group, send email to android-ndk@googlegroups.com. > To unsubscribe from this group, send email to > android-ndk+unsubscribe@googlegroups.com<android-ndk%2Bunsubscribe@googlegr oups.com> > . > For more options, visit this group at > http://groups.google.com/group/android-ndk?hl=en.