Android 编译时出错 /lib/libdl.so.2: could not read symbols: Invalid operation
如果出现这个错误:
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/accRuntimeTest_intermediates/runtimeTest.o: undefined reference to dlsym@@GLIBC_2.0
/usr/bin/ld: note: 'dlsym@@GLIBC_2.0' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
那: vi system/core/libacc/tests/Android.mk
LOCAL_SHARED_LIBRARIES := \
libacc
LOCAL_LDLIBS += -ldl <<===
- - - - - - - - - -
LOCAL_SHARED_LIBRARIES := \
libacc
LOCAL_LDLIBS += -ldl
LOCAL_MODULE_TAGS := tests
include $(BUILD_HOST_EXECUTABLE)
相关推荐
jiangtie 2020-08-15
杨立峰 2020-07-18
linjava 2020-06-14
secondid 2020-06-06
昭君出塞 2020-06-03
jackadmi 2020-06-03
xushxbigbear微信 2020-05-16
chenchuang 2020-05-10
89467505 2020-05-08
sunln00 2020-05-07
youandme 2020-05-06
playis 2020-05-04
ningningmingming 2020-05-01
LychieFan 2020-04-30
spartmap 2020-04-20
咏月东南 2020-04-20
jeonkc 2020-04-19