我的目标是进行微调以找到正确的线程优先级。未定义的property_get引用
线程我关注的是位于下/硬件/ my_company /编解码器/ openmax_il/
我修改了2个文件
Android.mk
添加“$(TOP)/在LOCAL_C_INCLUDES列表系统/核心/包括”,如下
LOCAL_C_INCLUDES:= \ blur blur blur $(TOP)/hardware/my_company/camera/v4l2_camerahal \ $(TOP)/system/core/include
在我的源文件中。
#include <cutils/properties.h> int componentInit(blur blur blur) { int ret = 0; blur blur blur // To find proper thread priority char value[92]; property_get("omx.video_enc.priority", value, "0"); setVideoEncoderPriority(atoi(value)); return ret; }
但是,我遇到的
error: undefined reference to 'property_get'
collect2: ld returned 1 exit status
链接错误如果有人可以帮助这一点,那将是对我好。 :)
感谢