NDK的构建DUMP_APP_ABI返回Windows上2号线 [英] ndk-build DUMP_APP_ABI returns 2 lines on Windows

查看:231
本文介绍了NDK的构建DUMP_APP_ABI返回Windows上2号线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Windows调试的Andr​​oid NDK应用程序。
它<一个href=\"http://stackoverflow.com/questions/20047348/unknown-application-abi-while-debug-as-native-application\">seems它是在Windows上新线的问题

I can't debug android ndk app on Windows. It seems it is a new line problem on Windows

c:\Android\android-ndk-r9c\samples\hello-jni>..\..\ndk-build DUMP_APP_ABI
all

c:\Android\android-ndk-r9c\samples\hello-jni>

在Linux中,

hello-jni$ ../../ndk-build DUMP_APP_ABI
all
hello-jni$

有是继无行中的所有在Linux

我使用未经修改 HELLO-JNI Android的NDK-R9C

我也比较每个解压文件的大小,他们都是原创。它是干净的,从谷歌未经修改的NDK。
它能够编译并做JavaDebug但不NativeDebug。 (在Windows上)

I also compared size of every unzipped file and they are original. It is clean unmodified NDK from Google. It is able to compile and do JavaDebug but not NativeDebug. (on Windows)

我的问题是:什么我做错了吗?是否有人可以证实,未改性的Andr​​oid NDK R9C (今天最新的)能够做本机调试与Eclipse + NDKPlugin。

My questions is: What I am doing wrong? Does someone can confirm that unmodifed Android NDK r9c (latest today) is able to do native debugging with Eclipse+NDKPlugin.

PS
我忘了提,当我做本地调试,我得到

PS I forgot to mention that when I do Native Debug I get

[2013-11-18 14:38:50 - HelloJni] Unknown Application ABI: 
[2013-11-18 14:38:50 - HelloJni] 
[2013-11-18 14:38:50 - HelloJni] Unable to detect application ABI's

就像在<一href=\"http://stackoverflow.com/questions/20047348/unknown-application-abi-while-debug-as-native-application/20050696\">that问题

推荐答案

我的理解是,这个问题是制作所使用的 NDK -gdb 。参见 NDK-GDB在Windows :在cygwin时的制作时,所有的好;如果cygwin的制作未安装, NDK-GDB 失败。下面是总结 调试的Andr​​oid NDK,在Windows

My understanding is that the the issue is which make is used by ndk-gdb. See ndk-gdb on windows: when cygwin's make is used, all well; if cygwin make is not installed, ndk-gdb fails. Here is the summary from Debugging Android NDK, Under Windows:


  1. 添加的android:可调试=真正的标志&lt;应用标签中的的Andr​​oidManifest.xml

  2. CMD (Windows的命令提示符):调用 NDK的构建 NDK_DEBUG = 1

  3. 的cygwin bash下运行 NDK-GDB

  1. add android:debuggable="true" flag to <application tag in AndroidManifest.xml
  2. in cmd (windows' command prompt): invoke ndk-build with NDK_DEBUG=1
  3. in cygwin bash: run ndk-gdb

这篇关于NDK的构建DUMP_APP_ABI返回Windows上2号线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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