今天开始将会编译 Android 的开发包, 这里将会记录所遇到的问题。
1. gperf not found
在 make 过程中需要用到 gperf , 所以需安装这个包:
yum install gperf
2. 其他命令也一并安装:
yum install make
yum install gdb
yum install flex
yum install bison
yum install valgrind
如果出现这个错误:
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/accRuntimeTest_intermediates/runtimeTest.o: undefined reference to
/usr/bin/ld: note: 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
3. 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)
阅读(1423) | 评论(0) | 转发(0) |