Cygwin for Android-NDK编程 [英] Cygwin for Android-NDK programming

查看:146
本文介绍了Cygwin for Android-NDK编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了关于Windows的NDK编程的要求,说我们需要 Cygwin 。阅读Cygwin说我们需要它coz它是 a方法使Windows支持一些linux功能。但是我的问题是在哪个阶段的编程(其中Exactly)Cygwin将被要求,为什么?非常欢迎关于此主题的附加信息

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

推荐答案

Android NDK从修订版7开始不需要Cygwin。请参阅: http://developer.android.com/sdk/ndk/index.html

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


现在,您可以通过从命令行调用ndk-build.cmd脚本,在没有Cygwin的Windows上构建NDK源文件从您的项目路径。脚本采用与原始ndk-build脚本完全相同的参数。 Windows NDK包有自己的预编译的二进制文件GNU Make,Awk和构建所需的其他工具。

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.

它提到你不能使用ndk-gdb脚本没有Cygwin 。虽然这是真的,你可以直接使用gdb可执行文件而不使用Cygwin,只有那时你需要手动设置它。

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.

这篇关于Cygwin for Android-NDK编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆