Android搭載デバイスでコンパイル、ロード、実行するプロジェクトがあります。私はgdbサーバーを呼び出すときにもうまく動作します。私は、ブレークポイントとを通して実行するためにGDBクライアントを呼び出すときに、メッセージが表示されているとき:これが私の現在のAndroid.mkファイルには、ケースのためにいくつかの追加設定が欠落している可能性があり、Android NDK find dynamic link:ライブラリをデバッグできません
Error while mapping shared library sections:
/system/bin/linker: No such file or directory.
libandroid.so: No such file or directory.
liblog.so: No such file or directory.
libEGL.so: No such file or directory.
libOpenSLES.so: No such file or directory.
libGLESv2.so: No such file or directory.
libGLESv2_POWERVR_SGX540_120.so: No such file or directory.
...
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code
warning: shared library handler failed to enable breakpoint
です:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LS_CPP=$(subst $(1)/,,$(wildcard $(1)/*.cpp))
APP_MODULES := callbacks
APP_PLATFORM := android-14
APP_OPTIM:= debug
LOCAL_CFLAGS := -DRAPIDXML_NO_EXCEPTIONS
LOCAL_CFLAGS += -g
LOCAL_CFLAGS += -ggdb
LOCAL_CFLAGS += -O1
LOCAL_MODULE:=app3D
LOCAL_SRC_FILES := $(call LS_CPP,$(LOCAL_PATH))
LOCAL_LDLIBS := -landroid -llog -lEGL -lOpenSLES -lGLESv2
LOCAL_STATIC_LIBRARIES := android_native_app_glue png
LOCAL_STATIC_LIBRARIES += /jni
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/native_app_glue)
$(call import-module,libpng)
このような奇妙なエラーの理由は何であり、どのように取り除くのですか?
すべてのコメントとヒントは非常に高く評価されており、歓迎されています。
私はちょうどNDKでデバッガを持っています;)強制しないでください...私はGDBが動的なlibに接続しないと思います。 – Tancho