我已阅读了这么多文章,但没有弄清楚如何解决这个问题:
$ /cygdrive/e/adt-bundle-windows-x86/android-ndk-r8d/ndk-build
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Cygwin : Generating dependency file converter script
Compile++ thumb : Andest1 <= Andest1.cpp
StaticLibrary : libstdc++.a
SharedLibrary : libAndest1.so
Install : libAndest1.so => libs/armeabi/libAndest1.so
$ /cygdrive/e/adt-bundle-windows-x86/android-ndk-r8d/ndk-gdb --project=e:/workspace/Andrd1 --port=5000 --start --force --verbose
0xafd0c52c in epoll_wait () from E:\workspace\Andrd1/./obj/local/armeabi/libc.so
warning: .dynamic section for "E:\workspace\Andrd1/./obj/local/armeabi/libAndrd1.so" is not at the expected address (wrong library or version mismatch?)
warning: Could not load shared library symbols for 67 libraries, e.g. libstdc++.so.
Run Code Online (Sandbox Code Playgroud)
当我在 eclipse 上调试本机代码时,我也遇到了这个问题。最后我发现我们应该忽略它。
重要提示:GDB 提示符之前会出现一长串错误消息,其中 gdb 抱怨它找不到各种系统库(例如 libc.so、libstdc++.so、liblog.so、libcutils.so 等...)
Run Code Online (Sandbox Code Playgroud)This is normal, because there are no symbol/debug versions of these libraries corresponding to your target device on your development machine. You can safely ignore these messages.
阅读 ANDROID-NDK-DOCUMENT 你就会找到它。
希望我有所帮助。
编辑:
| 归档时间: |
|
| 查看次数: |
1553 次 |
| 最近记录: |