我读了这么多文章,但没弄明白我该如何解决这个问题:
$ /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.
答案 0 :(得分:1)
当我在eclipse上调试我的本机代码时,我也遇到了这个问题。最后我发现我们应该忽略它。
重要提示:GDB提示符前面会有一长串错误 消息, 其中gdb抱怨它找不到各种系统库 (例如libc.so,libstdc ++。so,liblog.so,libcutils.so等...)
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,你会发现它。
希望我帮忙。修改强>