NDK-GDB不能找到gdb.setup但它在x86下是存在的 [英] ndk-gdb cannot find gdb.setup but it is there under x86

查看:523
本文介绍了NDK-GDB不能找到gdb.setup但它在x86下是存在的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac上的Cocos2D-X 3.7.1 + NDK r10e项目试图在Eclipse中进行调试。天通和错误滚滚而来......

Cocos2d-x 3.7.1 + ndk r10e project on Mac trying to debug in Eclipse. Days pass and the errors keep coming...

我可以建立并使用科科斯编译和科科斯与来自proj.android终端-p机器人-m调试--ndk模式NDK_DEBUG = 1运行运行。

I can build and run using cocos compile and cocos run with -p android -m debug --ndk-mode NDK_DEBUG=1 from the terminal in proj.android.

我的应用程序运行正常(最终)在我的x86模拟器没有问题的。

My app runs Ok (eventually) on my x86 emulator no problem.

键入NDK-GDB'从./proj.android终端,我得到的错误

Typing 'ndk-gdb' in the terminal from ./proj.android and I get the error

错误:无法找到gdb.setup下./libs /

ERROR: Could not find gdb.setup under ./libs/

BUT 文件gdb.setup!?(gdbserver的和功放&; libcocos2dcpp.so)可以看出,在./proj.android/libs/x86

BUT the file gdb.setup (and gdbserver & libcocos2dcpp.so) can be seen in ./proj.android/libs/x86 !?

我的Andr​​oidManifest.xml包含Android:可调试=真正的

My AndroidManifest.xml includes android:debuggable="true"

我的JNI / Application.mk包括APP_ABI:= 86(只)

My jni/Application.mk includes APP_ABI := x86 (only)

如果谁能告诉我怎样才能诊断或解决这个问题,然后我想我欠他们一个啤酒(在约克郡的BTW)

If anyone can tell me how I can diagnose or fix this problem then I guess I owe them a beer (in Yorkshire btw)

更新:我曾尝试使用--verbose标志跑起来GDB。输出显示

UPDATE: I have tried running up GDB using the --verbose flag. The output shows

用gdb设置初始化:./libs/armeabi/gdb.setup

Using gdb setup init: ./libs/armeabi/gdb.setup

使用App out目录:./obj/local/armeabi

Using app out directory: ./obj/local/armeabi

我想我需要改变设置/ init文件的地方??

Guess I need to change to settings/init file somewhere??

推荐答案

我遇到了同样的问题。看来最近一些事情版本的Andr​​oid构建工具改变。

I ran into the same problem. It seems something changed in recent version of Android Build tools.

诀窍是:

ERROR: Could not find gdb.setup under ./libs/

该公司预计gdb.setup是在目录中的,但不会 库/ armeabi

那么简单workground是从库/ CPU到库复制gdb.setup和gdbserver的,它就像一个魔法!

so the simple workground is to copy gdb.setup and gdbserver from "libs/cpu" to "libs" and it works like a magic!

这篇关于NDK-GDB不能找到gdb.setup但它在x86下是存在的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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