Cygwin for Android-NDK programming

前端 未结 5 742
悲哀的现实
悲哀的现实 2020-12-15 10:06

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 mak

相关标签:
5条回答
  • 2020-12-15 10:50

    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).

    0 讨论(0)
  • 2020-12-15 10:51
    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.
    0 讨论(0)
  • 2020-12-15 10:57

    (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.

    0 讨论(0)
  • 2020-12-15 10:58

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

    0 讨论(0)
  • 2020-12-15 11:02

    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.

    0 讨论(0)
提交回复
热议问题