大佬教程收集整理的这篇文章主要介绍了Android NDK查找动态链接:无法调试库,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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
这是我当前的Android.mk文件,在这种情况下可能会丢失一些额外的安装:
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)
android:debuggable="true"
例如,我的看起来像:
<application android:icon="@drawable/ic_launcher" android:label="@String/app_name" android:theme="@style/AppTheme" android:debuggable="true" >
你的application.mk应该定义
APP_OPTIM := debug
以上是大佬教程为你收集整理的Android NDK查找动态链接:无法调试库全部内容,希望文章能够帮你解决Android NDK查找动态链接:无法调试库所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。