title: How do I compile an existing C program for Android using NDK?
body: <p>I am writing an Android app to test network performance, and I want to use iPerf in the app. I can find binary iPerf files already compiled for Android (and then I can run iPerf on the phone and collect its output) but I'm interested in compiling the files myself.</p>
  
  <p>Here, someone presents scripts that can be used to compile the program:
  <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=3533374&amp;group_id=128336&amp;atid=711373" rel="noreferrer">http://sourceforge.net/tracker/index.php?func=detail&amp;aid=3533374&amp;group_id=128336&amp;atid=711373</a></p>
  
  <p>I know that it requires the NDK but I don't know where to start. Are there any good resources or advice that can help guide me to compiling this on my own (on Windows, but I also have Cygwin). I know C and how to use GCC on linux, but I'm not sure where to start here.</p>
  
  <p>Thanks for any help in advance!</p>