【Android】编译CM10.1遇到的错误解决方案

No.1 
========================================
frameworks/av/services/camera/libcameraservice/camera2/ZslProcessor.cpp: In member function 'android::status_t android::camera2::ZslProcessor::updateStream(const android::camera2::Parameters&)':
frameworks/av/services/camera/libcameraservice/camera2/ZslProcessor.cpp:121:13: error: 'GRALLOC_USAGE_HW_CAMERA_ZSL' was not declared in this scope
make: *** [/media/scue/Enjoy/AndroidCode/cm10.1/out/target/product/stuttgart/obj/SHARED_LIBRARIES/libcameraservice_intermediates/camera2/ZslProcessor.o] Error 1
make: *** Waiting for unfinished jobs....

Solution: 
    编辑frameworks/av/services/camera/libcameraservice/camera2/ZslProcessor.cpp, 在文件中添加以下代码:
    #include "../../../../../../hardware/libhardware/include/hardware/gralloc.h"

 

posted @ 2013-06-05 23:54  scue  阅读(402)  评论(0编辑  收藏  举报