用于 Android-NDK 编程的 Cygwin [英] Cygwin for Android-NDK programming

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

问题描述

我阅读了有关 Windows 上 NDK 编程的要求,其中说我们需要 Cygwin.阅读有关 Cygwin 的内容说我们需要它,因为它是 一种使 Windows 支持某些 linux 功能的方法.但我的问题是在哪个阶段的编程(具体在哪里)需要 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

推荐答案

从版本 7 开始的 Android NDK 不需要 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

您现在可以在没有 Cygwin 的情况下在 Windows 上构建您的 NDK 源文件,方法是从项目路径的命令行调用 ndk-build.cmd 脚本.该脚本采用与原始 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.

它提到你不能在没有 Cygwin 的情况下使用 ndk-gdb 脚本.虽然这是真的,但您实际上可以在没有 Cygwin 的情况下直接使用 gdb 可执行文件,只有这样您才需要手动正确设置它.

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.

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

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