2

我正在尝试包含一个指纹模块。我将所有 .c 和 .h 文件放在 /external/ 下的新目录中,并创建了一个 Android.mk 文件

########## libdpfpdd ############
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ldpfpdd
LOCAL_SRC_FILES := libdpfpdd.so
include $(PREBUILT_SHARED_LIBRARY)

########### libdpfj ##############

include $(CLEAR_VARS)
LOCAL_MODULE := ldpfj
LOCAL_SRC_FILES := libdpfj.so
include $(PREBUILT_SHARED_LIBRARY)

######### fingerprint ############

include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := fingerprint
LOCAL_SRC_FILES := \
  enrollment.c helpers.c identification.c \
  menu.c sample.c selection.c verification.c
LOCAL_SHARED_LIBRARIES += ldpfpdd ldpfj
include $(BUILD_EXECUTABLE)

在此之后,我尝试将交叉编译为 make TARGET_PRODUCT=am335xevm_sk -j8 OMAPES=4.x 并得到错误为

make: *** No rule to make target `out/target/product/am335xevm_sk/obj/lib/ldpfpdd.so', needed by `out/target/product/am335xevm_sk/obj/EXECUTABLES/fingerprint_intermediates/LINKED/fingerprint'.  Stop.
make: *** Waiting for unfinished jobs....
4

0 回答 0