NDK-GDB在Windows [英] ndk-gdb on windows

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

问题描述

I M试图通过运行NGK-gdb的Windows计算机上使用Android的NDK-R8B来调试应用程序的我JNI部分。
我使用Cygwin和C / C ++插件eclipse.my设备是GALAXY S的Andr​​oid 2.3.7

i m trying to debug my jni section of application by running ngk-gdb on windows machine with android-ndk-r8b. i am using cygwin and c/c++ plugin for eclipse.my device is galaxy s, android 2.3.7

我所做的是在后面的使用Eclipse Android的C / C ++调试
但我坚持上运行NDK-GDB,收到此错误是:

what i did is followed the instructions on Using Eclipse for Android C/C++ Debugging, but i am stuck on running ndk-gdb, getting this error:

Device CPU ABIs: armeabi-v7a armeabi
ERROR: The device does not support the application's targetted CPU ABIs!
       Device supports:  armeabi-v7a armeabi
       Package supports:

THX对您有所帮助。

thx for your help

推荐答案

我最近遇到的问题,在我的情况下,它是一个cygwin问题。让没有安装Cygwin和创建这个问题进一步沿着NDK-gdb的脚本。使安装使用cygwin的SETUP.EXE后(选择使杰韦利下 - 上的另一个建议,我也装下壳tcsh),在按应用针对性ABIS:行显示应用程序的针对性ABI

I encountered the problem recently and in my case it was a cygwin issue. make was not installed in cygwin and this created problems further along in the ndk-gdb script. After installing make using the cygwin setup.exe (select make under Devel - on another recommendation, I also installed tcsh under Shells), the "ABIS targetted by application:" line shows the app's targeted ABI.

不化妆:

/cygdrive/c/work/android/android-ndk-r8b-windows/android-ndk-r8b/ndk-gdb: line 105: make: command not found  
ABIs targetted by application:  
Device API Level: 15  
Device CPU ABIs: armeabi-v7a armeabi  
ERROR: The device does not support the application's targetted CPU ABIs!  
       Device supports:  armeabi-v7a armeabi  
       Package supports:  

使用化妆正确安装:

ABIs targetted by application: armeabi-v7a  
Device API Level: 15  
Device CPU ABIs: armeabi-v7a armeabi  
Compatible device ABI: armeabi-v7a  

Application.mk,位于JNI文件夹,可用于指定应用程序的目标ABI - 一个例子:

Application.mk, located in the jni folder, can be used to specify the app's targeted ABI - an example:

APP_ABI := armeabi-v7a
APP_OPTIM := debug

祝你好运!

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

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