Cygwin for Android-NDK programming

I read about the requirements of NDK programming on Windows which said we require Cygwin.Read about Cygwin which said we require it coz it is a way to make Windows support some linux functionality.But my question is in which stage of programming(Where Exactly) Cygwin will be required and why? Addidtional info about this topic is most welcomed

  • Duplicate files in Android Studio project view
  • How to check the multiple permission at single request in Android M?
  • Snackbar and other animations stopped working on some Android devices
  • Why explicit type argument should be replaced by diamond?
  • Javadoc for Android project in Eclipse fails with NullPointerException
  • HTTP Patch request from Android
  • RuntimeException on Camera.setParameters() on nexus one
  • Manifest and supported devices showed in android market
  • Effects of Negative padding
  • Android : Semi Circle Progress Bar
  • Handle an empty response in a JSONRequest with Volley
  • How to know when the RecyclerView has finished laying down the items?
  • 5 Solutions collect form web for “Cygwin for Android-NDK programming”

    Android NDK starting with revision 7 doesn’t require Cygwin. See here: http://developer.android.com/sdk/ndk/index.html

    You can now build your NDK source files on Windows without Cygwin by calling the ndk-build.cmd script from the command line from your project path. The script takes exactly the same arguments as the original ndk-build script. The Windows NDK package comes with its own prebuilt binaries for GNU Make, Awk and other tools required by the build. You should not need to install anything else to get a working build system.

    It mentions you can not use ndk-gdb script without Cygwin. While that is true, you can actually use gdb executable directly without Cygwin, only then you’ll need to set it up properly manually.

    1. At least NDK-r8b, if you want to build your .so, you don’t need Cygwin.
    2. However, if you want to use ndk-gdb to debug your native code,you have to use Cygwin.
    3. And, in my experiment, if you ndk-gdb your native under Cygwin to debug native code which is built from windows cmd, ndk-gdb seems cannot recognize the debug info. So, for debug purpose, I build native Cygwin.

    Make command to execute Android.mk file.

    Android.mk file consists of list of c/c++ files to be compiled and also the library name(.so).

    (from NDK-r8e NDK-GDB document) At the moment ‘ndk-gdb’ requires a Unix shell to run. This means that Cygwin is required to run it on Windows. We hope to get rid of this limitation in a future NDK release.

    Cygwin is a collection of tools which provide a Linux look and feel environment for Windows.
    http://www.cygwin.com/

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.