Android编译错误
我需要您帮助编译AOSP ICS(Android 4.0.4)。 我在编译.cpp文件和.h文件时遇到了一个错误。 这是错误日志:Android编译错误,android,c++,Android,C++,我需要您帮助编译AOSP ICS(Android 4.0.4)。 我在编译.cpp文件和.h文件时遇到了一个错误。 这是错误日志: In file included from hardware/qcom/display/libgralloc/framebuffer.cpp:53: hardware/qcom/display/libqcomui/qcom_ui.h: In member function 'void QCBaseLayer::setS3DComposeFormat(int32_t)
In file included from hardware/qcom/display/libgralloc/framebuffer.cpp:53:
hardware/qcom/display/libqcomui/qcom_ui.h: In member function 'void QCBaseLayer::setS3DComposeFormat(int32_t)':
hardware/qcom/display/libqcomui/qcom_ui.h:174: error: 'HWC_HINT_DRAW_S3D_SIDE_BY_SIDE' was not declared in this scope
hardware/qcom/display/libqcomui/qcom_ui.h:176: error: 'HWC_HINT_DRAW_S3D_TOP_BOTTOM' was not declared in this scope
hardware/qcom/display/libgralloc/framebuffer.cpp: In function 'int mapFrameBufferLocked(private_module_t*)':
hardware/qcom/display/libgralloc/framebuffer.cpp:870: warning: comparison of unsigned expression < 0 is always false
hardware/qcom/display/libgralloc/framebuffer.cpp:871: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libgralloc/framebuffer.cpp: In function 'int fb_device_open(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libgralloc/framebuffer.cpp:994: error: 'struct framebuffer_device_t' has no member named 'lockBuffer'
hardware/qcom/display/libgralloc/framebuffer.cpp:995: error: 'struct framebuffer_device_t' has no member named 'perform'
hardware/qcom/display/libgralloc/framebuffer.cpp:1011: error: 'struct framebuffer_device_t' has no member named 'numFramebuffers'
make: *** [out/target/product/gio/obj/SHARED_LIBRARIES/gralloc.msm7x27_intermediates/framebuffer.o] Error 1
包含在hardware/qcom/display/libgralloc/framebuffer.cpp:53中的文件中:
硬件/qcom/display/libqcomui/qcom_ui.h:在成员函数“void QCBaseLayer::setS3DComposeFormat(int32_t)”中:
hardware/qcom/display/libqcomui/qcom_ui.h:174:错误:“HWC_HINT_DRAW_S3D_SIDE_BY_SIDE”未在此范围内声明
hardware/qcom/display/libqcomui/qcom_ui.h:176:错误:“HWC_HINT_DRAW_S3D_TOP_BOTTOM”未在此范围内声明
hardware/qcom/display/libgralloc/framebuffer.cpp:在函数“int-mapFrameBufferLocked(private_-module_-t*)”中:
hardware/qcom/display/libgralloc/framebuffer.cpp:870:警告:未签名表达式<0的比较始终为false
hardware/qcom/display/libgralloc/framebuffer.cpp:871:警告:有符号和无符号整数表达式之间的比较
硬件/qcom/display/libgralloc/framebuffer.cpp:在函数“int fb_device_open(常数hw_module_t*、常数字符*、hw_device_t**)”中:
hardware/qcom/display/libgralloc/framebuffer.cpp:994:错误:“struct framebuffer\u device\t”没有名为“lockBuffer”的成员
hardware/qcom/display/libgralloc/framebuffer.cpp:995:错误:“struct framebuffer\u device\t”没有名为“perform”的成员
hardware/qcom/display/libgralloc/framebuffer.cpp:1011:错误:“struct framebuffer\u device\t”没有名为“numFramebuffers”的成员
make:**[out/target/product/gio/obj/SHARED_LIBRARIES/gralloc.msm7x27_intermediates/framebuffer.o]错误1
那么?以下是文件代码:
-帧缓冲区.cpp:
-qcom\u ui.h: