我正在尝试为我的设备编译 CyanogenMod 10.2,但在编译 frameworks/av 时出现编译错误:
target SharedLib: libmediaplayerservice (/home/vektor/CM102/out/target/product/s7300b /obj/SHARED_LIBRARIES/libmediaplayerservice_intermediates/LINKED/libmediaplayerservice.so)
frameworks/av/media/libmediaplayerservice/AmlogicPlayer.cpp:891: error: undefined reference to 'ammodule_match_check(char const*, char const*)'
该方法声明在ammodule.h
包含在/device/my/device/packages/LibPlayer/amavutils/include
其中AmlogicPlayer.cpp
包括:
#include "ammodule.h"
在Android.mk
文件中似乎包括:
AMPLAYER_APK_DIR=$(TOP)/device/my/device/packages/LibPlayer/
LOCAL_C_INCLUDES +=\
$(AMPLAYER_APK_DIR)/amavutils/include
这是来自的签名ammodule.h
int ammodule_match_check(const char *allmodstr,const char *modname);
一切似乎都很好。什么可能导致此类错误?