On Mon, Mar 18, 2013 at 09:54:26PM -0700, Jason Polites wrote:
> So, the NDK stuff is pretty simply if your project is created in an "NDK
> Friendly" way.  That is, you have a folder called "jni" and in that folder
> you have an Android.mk and an Application.mk file.

Yeah, it's definitely configured in the "NDK Friendly" way, as you say.
I basically just installed the NDK (back then) per the docs, right beside
the SDK under ~/Android, and included the jni directory in the project's
top-level.  Frankly, I didn't even know there's another way (and don't
know or care what that would be---it's easier to just do it the right
way, IMHO).  :-)

> You have two options:
> 
> 1. Create an ANT script that simply calls the ndk-build executable.  For
> example:

[....]

> 2.  Configure an "External Tool" in intellij.  Here's an example:
> http://cl.ly/image/3n020g1S1v1H

I'm not really interested in whether or not IntelliJ does the builds
for the JNI stuff, just debugging (preferably, as I mentioned, including
the OpenCV stuff, which is 99% of the JNI code so far).  I'd LOVE to have
code completion, lint, etc., for that.

I do the NDK builds by hand anyways.  Then I have an extra script that
copies the OpenCV libs back, since the NDK build seems to always want
to rm them.  From what I've gathered, I could probably just put that
extra bit into a script in IntelliJ, and probably will...eventually.
Right now, I've barely scratched the surface, and have a LOT of RTFM
time to put in (or maybe it's simple enough that I don't ... we shall
see).

> As for the OpenCV question (assuming you're referring to the fact that this
> is C++) then this is where intellij falls down a little.  I have a similar
> issue with Box2D and my solution is to run a separate eclipse for this, but
> the eclipse is a pure CDT flavor.

Yuck.  No, ultimately, I only want one of the two in use.  My brain
(since my first cancer) has enough trouble with one....  I'm also, btw,
hoping the editor in IntelliJ is better (no, please, no comp.editors
style wars here! ... this is just my opinion) than the one in Eclipse
(which had me doing the edits in gvim, and then syncing from Eclipse).

> If you ONLY run CDT (and download the

I should probably already know this, and I'm probably using it and just
not recognizing it by name, but what is CDT?

Thanks for the great info---I'm definitely holding on to your reply for
both current and future reference.

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)        MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

           In light of DHS's recommendation to defend yourself
            against armed intruders with scissors, I'm giving
                 my deer rifle a new nickname: Scissors.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to