问题点
- 找不到 <utils/Log.h>
[ 0% 28/15711] target thumb C: libmmcamera_gc5035_otp_eeprom_32 <= vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/../../../../mm-camera2/media-controller/modules/sensors//eeprom/libs/gc5035_otp_insensor/gc5035_otp_eeprom.c
vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/../../../../mm-camera2/media-controller/modules/sensors//eeprom/libs/gc5035_otp_insensor/gc5035_otp_eeprom.c:151:12: warning: unused variable 'check_s' [-Wunused-variable]
uint16_t check_s = 0;
^
vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/../../../../mm-camera2/media-controller/modules/sensors//eeprom/libs/gc5035_otp_insensor/gc5035_otp_eeprom.c:150:12: warning: unused variable 'last_data' [-Wunused-variable]
uint16_t last_data = 0;
^
vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/../../../../mm-camera2/media-controller/modules/sensors//eeprom/libs/gc5035_otp_insensor/gc5035_otp_eeprom.c:149:12: warning: unused variable 'data_offset' [-Wunused-variable]
uint16_t data_offset = 0;
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "../eeprom_util/eeprom.h"
#include "eeprom_lib.h"
#include "eeprom_util.h"
#include "debug_lib.h"
#include "sensor_lib.h"
#include "gc_common.h"
//#include "sensor.h"
#include <utils/Log.h>
分析
<utils/Log.h> 是系统提供的一个头文件,在不同平台移植的时候 编译文件不同导致的
解决方案
修改Android.mk
LOCAL_HEADER_LIBRARIES := libutils_headers
总结
高通代码的 libutils_headers 提供了log日志的头文件。 可以进行配置