开始编译时出现一些问题:error: 'pthread_condattr_init' was not declared in this scope
因为thread的问题,找了些资料,在Android.mk添加:
LOCAL_C_INCLUDES += system/core/include/cutils
LOCAL_SHARED_LIBRARIES += system/core/libcutil
LOCAL_LDLIBS := -ldl -lpthread
原以为添加完后就能pass,结果现在出现新问题:
make: *** No rule to make target `out/host/linux-x86/obj/lib/libcutil.so', needed by `out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc'. Stop.