android - 这似乎不是 “Debug” 版本

标签 android c++ gcc qt5 qt-creator

我正在尝试将调试器与 Android 设备一起使用,并获取带有此类警告消息的窗口:

    This does not seem to be a "Debug" build.
    Setting breakpoints by file name and line number may fail.

    Section .debug_info: Not found.
    Section .debug_abbrev: Not found.
    Section .debug_line: Not found.
    Section .debug_str: Not found.
    Section .debug_loc: Not found.
    Section .debug_range: Not found.
    Section .gdb_index: Not found.
    Section .note.gnu.build-id: Not found.
    Section .gnu.hash: Not found.
    Section .gnu_debuglink: Not found.

我正在使用基于 Qt 5.1.1(GCC 4.6.1,64 位)的 Qt Creator 2.8.1。 Qt 库、应用程序和所有依赖项都是使用 GCC 4.8 构建的。

在这种情况下最奇怪的是我可以对主应用程序使用调试器,但所有库都无法进行调试。

最佳答案

通过将库类型从动态更改为静态解决了该问题。

附言也许有人知道为什么动态库不能在android下调试?

关于android - 这似乎不是 “Debug” 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19469437/

相关文章:

c++ - 创建自定义语音命令 (GNU/Linux)

c++ - 模板可能导致函数定义匹配失败

c++ - 诊断互斥锁相关瓶颈的正确方法

C程序: __start

c++ - 为什么使用 Make 3.8.1 构建与使用 Make 4.1 不同?

java - GreenDao - 自定义数据缓存无法正常工作

android - 找出 Android 应用被卸载的原因

android - 在哪里可以找到第三方组件?

c++ - 如果我在 GCC 中编译和链接不需要的库会怎样?

XML 中的 Android 选项卡