Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

 
 
LinkBack Thread Tools
Old December 4th, 2010, 05:36 PM  
New Member
Thread Author (OP)
 
Join Date: Dec 2010
Posts: 2
 
Device(s): T-Mobile G1, Samsung Slide
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Using NDK through Eclipse ADT plugin?

I'm unable to run my very simple test program using JNI, and I noticed that there is no .so in the resulting .apk file; so I think that the IDE is not even compiling my C file; and certainly not including it in the .apk file.

Is there an option for it somewhere I'm missing (I'm using newest SDK and newest version of Eclipse, Helios), or will I need to build manually using the tools included in the NDK?

nfries88 is offline  
sponsored links
Old December 5th, 2010, 07:55 AM  
Junior Member
 
paulscode's Avatar
 
Join Date: Mar 2010
Posts: 86
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 14 Times in 12 Posts
Default

Do you have the Sequoyah plug-in installed? If not, I highly recommend it. It will allow you to right-click on the project and select "Android Tools --> Add Native Support". Then when you choose the "clean" or "build" options, your shared native libraries will automatically be built and placed into the libs/aremabi directory for you. Sequoyah also adds some extremely useful native debugging capabilities.

I've never used the NDK without Sequoyah, so I'm not sure how to manually build them from within Eclipse without it. A workaround would be to close Eclipse, go to the command prompt / terminal, navigate to the project directory, and run the "ndk-build" command. Bad thing about that method, though, is you would have to keep going back to the terminal every time you changed the code. I'm sure it is possible to run "ndk-build" from within Eclipse without the Sequoyah plugin, but I'll leave that for someone who has experience.
paulscode is offline  
Old December 5th, 2010, 10:14 AM  
New Member
 
Join Date: Oct 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Post

Android Beginners: NDK Setup Step by Step Mind The Robot

if you work in Windows, this webpage helps you.
baris3437 is offline  
Old December 17th, 2010, 04:32 AM  
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Android Tools --> Add Native Support.

What NDK path is required to set
apachetechnology is offline  
 

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:46 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.