首页 > 代码库 > 没有规则可以创建 /lib/liblog.so

没有规则可以创建 /lib/liblog.so

Android源码下编译HAL时出现问题:

make: *** 没有规则可以创建“out/target/product/generic/obj/SHARED_LIBRARIES/android_gpio.default_intermediates/LINKED/XXX.default.so”需要的目标“out/target/product/generic/obj/lib/liblog.so”。 停止

执行:

make liblog
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IML74K
============================================
host C: liblog <= system/core/liblog/logd_write.c
system/core/liblog/logd_write.c: In function ‘__write_to_log_kernel’:
system/core/liblog/logd_write.c:90: warning: implicit declaration of function ‘fakeLogWritev’
system/core/liblog/logd_write.c: In function ‘__write_to_log_init’:
system/core/liblog/logd_write.c:103: warning: implicit declaration of function ‘fakeLogOpen’
system/core/liblog/logd_write.c:112: warning: implicit declaration of function ‘fakeLogClose’
host C: liblog <= system/core/liblog/logprint.c
host C: liblog <= system/core/liblog/event_tag_map.c
host C: liblog <= system/core/liblog/fake_log_device.c
host StaticLib: liblog (out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a)
target thumb C: liblog <= system/core/liblog/logd_write.c
target thumb C: liblog <= system/core/liblog/logprint.c
target thumb C: liblog <= system/core/liblog/event_tag_map.c
target StaticLib: liblog (out/target/product/generic/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a)
target SharedLib: liblog (out/target/product/generic/obj/SHARED_LIBRARIES/liblog_intermediates/LINKED/liblog.so)
target Symbolic: liblog (out/target/product/generic/symbols/system/lib/liblog.so)
target Strip: liblog (out/target/product/generic/obj/lib/liblog.so)
Notice file: system/core/liblog/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/lib/liblog.so.txt
Notice file: system/core/liblog/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/lib/liblog.a.txt
Install: out/target/product/generic/system/lib/liblog.so
生成该库后重新编译HAL层

没有规则可以创建 /lib/liblog.so