[Q] AOKP source compilation error(copybit.cpp) - Android Q&A, Help & Troubleshooting

I'm trying to compile ICS Android Open Kang Project for an ARMv6 device,
But when all is almost ended I get a copybit.cpp error.
Firstly, this is my copybit.cpp:
http://pastebin.com/jhpBdSbC
And these are the errors I'm getting:
Code:
target thumb C++: copybit.galaxy5 <= device/samsung/galaxy5/libcopybit/copybit.cpp
device/samsung/galaxy5/libcopybit/copybit.cpp:87: warning: missing initializer for member 'hw_module_t::dso'
device/samsung/galaxy5/libcopybit/copybit.cpp:87: warning: missing initializer for member 'hw_module_t::reserved'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int msm_copybit(copybit_context_t*, const void*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:208: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:209: warning: format '%08lx' expects type 'long unsigned int', but argument 19 has type 'unsigned int'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:360: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:361: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:382: error: 'PRIV_FLAGS_DO_NOT_FLUSH' is not a member of 'private_handle_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:383: error: 'MDP_BLIT_NON_CACHED' was not declared in this scope
device/samsung/galaxy5/libcopybit/copybit.cpp: At global scope:
device/samsung/galaxy5/libcopybit/copybit.cpp:539: error: redefinition of 'struct copybit_context_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:56: error: previous definition of 'struct copybit_context_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:553: error: redefinition of 'hw_module_methods_t copybit_module_methods'
device/samsung/galaxy5/libcopybit/copybit.cpp:70: error: 'hw_module_methods_t copybit_module_methods' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:560: error: redefinition of 'copybit_module_t HMI'
device/samsung/galaxy5/libcopybit/copybit.cpp:77: error: 'copybit_module_t HMI' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int min(int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:575: error: redefinition of 'int min(int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:92: error: 'int min(int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int max(int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:580: error: redefinition of 'int max(int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:97: error: 'int max(int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void MULDIV(uint32_t*, uint32_t*, int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:585: error: redefinition of 'void MULDIV(uint32_t*, uint32_t*, int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:102: error: 'void MULDIV(uint32_t*, uint32_t*, int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:593: error: redefinition of 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:110: error: 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int get_format(int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:603: error: redefinition of 'int get_format(int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:120: error: 'int get_format(int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_image(mdp_img*, const copybit_image_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:617: error: redefinition of 'void set_image(mdp_img*, const copybit_image_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:134: error: 'void set_image(mdp_img*, const copybit_image_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:631: error: redefinition of 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:148: error: 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_infos(copybit_context_t*, mdp_blit_req*, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:671: error: redefinition of 'void set_infos(copybit_context_t*, mdp_blit_req*, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:188: error: 'void set_infos(copybit_context_t*, mdp_blit_req*, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int msm_copybit(copybit_context_t*, const void*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:681: error: redefinition of 'int msm_copybit(copybit_context_t*, const void*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:198: error: 'int msm_copybit(copybit_context_t*, const void*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:691: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:692: warning: format '%08lx' expects type 'long unsigned int', but argument 19 has type 'unsigned int'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int set_parameter_copybit(copybit_device_t*, int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:722: error: redefinition of 'int set_parameter_copybit(copybit_device_t*, int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:239: error: 'int set_parameter_copybit(copybit_device_t*, int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int get(copybit_device_t*, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:788: error: redefinition of 'int get(copybit_device_t*, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:305: error: 'int get(copybit_device_t*, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:816: error: redefinition of 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:333: error: 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:843: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:844: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:865: error: 'PRIV_FLAGS_DO_NOT_FLUSH' is not a member of 'private_handle_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:866: error: 'MDP_BLIT_NON_CACHED' was not declared in this scope
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:894: error: redefinition of 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:411: error: 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int close_copybit(hw_device_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:908: error: redefinition of 'int close_copybit(hw_device_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:425: error: 'int close_copybit(hw_device_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
device/samsung/galaxy5/libcopybit/copybit.cpp:919: error: redefinition of 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)'
device/samsung/galaxy5/libcopybit/copybit.cpp:436: error: 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)' previously defined here
make: *** [out/target/product/galaxy5/obj/SHARED_LIBRARIES/copybit.galaxy5_intermediates/copybit.o] Error 1
Any tip is appreciated, thanks.

Related

AOKP error

I'm trying to compile ICS Android Open Kang Project for an ARMv6 device,
But when all is almost ended I get a copybit.cpp error.
Firstly, this is my copybit.cpp:
http://pastebin.com/jhpBdSbC
And these are the errors I'm getting:
Code:
target thumb C++: copybit.galaxy5 <= device/samsung/galaxy5/libcopybit/copybit.cpp
device/samsung/galaxy5/libcopybit/copybit.cpp:87: warning: missing initializer for member 'hw_module_t::dso'
device/samsung/galaxy5/libcopybit/copybit.cpp:87: warning: missing initializer for member 'hw_module_t::reserved'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int msm_copybit(copybit_context_t*, const void*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:208: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:209: warning: format '%08lx' expects type 'long unsigned int', but argument 19 has type 'unsigned int'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:360: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:361: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:382: error: 'PRIV_FLAGS_DO_NOT_FLUSH' is not a member of 'private_handle_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:383: error: 'MDP_BLIT_NON_CACHED' was not declared in this scope
device/samsung/galaxy5/libcopybit/copybit.cpp: At global scope:
device/samsung/galaxy5/libcopybit/copybit.cpp:539: error: redefinition of 'struct copybit_context_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:56: error: previous definition of 'struct copybit_context_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:553: error: redefinition of 'hw_module_methods_t copybit_module_methods'
device/samsung/galaxy5/libcopybit/copybit.cpp:70: error: 'hw_module_methods_t copybit_module_methods' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:560: error: redefinition of 'copybit_module_t HMI'
device/samsung/galaxy5/libcopybit/copybit.cpp:77: error: 'copybit_module_t HMI' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int min(int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:575: error: redefinition of 'int min(int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:92: error: 'int min(int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int max(int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:580: error: redefinition of 'int max(int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:97: error: 'int max(int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void MULDIV(uint32_t*, uint32_t*, int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:585: error: redefinition of 'void MULDIV(uint32_t*, uint32_t*, int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:102: error: 'void MULDIV(uint32_t*, uint32_t*, int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:593: error: redefinition of 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:110: error: 'void intersect(copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int get_format(int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:603: error: redefinition of 'int get_format(int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:120: error: 'int get_format(int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_image(mdp_img*, const copybit_image_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:617: error: redefinition of 'void set_image(mdp_img*, const copybit_image_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:134: error: 'void set_image(mdp_img*, const copybit_image_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:631: error: redefinition of 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:148: error: 'void set_rects(copybit_context_t*, mdp_blit_req*, const copybit_rect_t*, const copybit_rect_t*, const copybit_rect_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'void set_infos(copybit_context_t*, mdp_blit_req*, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:671: error: redefinition of 'void set_infos(copybit_context_t*, mdp_blit_req*, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:188: error: 'void set_infos(copybit_context_t*, mdp_blit_req*, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int msm_copybit(copybit_context_t*, const void*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:681: error: redefinition of 'int msm_copybit(copybit_context_t*, const void*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:198: error: 'int msm_copybit(copybit_context_t*, const void*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:691: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:692: warning: format '%08lx' expects type 'long unsigned int', but argument 19 has type 'unsigned int'
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int set_parameter_copybit(copybit_device_t*, int, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:722: error: redefinition of 'int set_parameter_copybit(copybit_device_t*, int, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:239: error: 'int set_parameter_copybit(copybit_device_t*, int, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int get(copybit_device_t*, int)':
device/samsung/galaxy5/libcopybit/copybit.cpp:788: error: redefinition of 'int get(copybit_device_t*, int)'
device/samsung/galaxy5/libcopybit/copybit.cpp:305: error: 'int get(copybit_device_t*, int)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:816: error: redefinition of 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:333: error: 'int stretch_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_rect_t*, const copybit_rect_t*, const copybit_region_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp:843: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:844: warning: comparison between signed and unsigned integer expressions
device/samsung/galaxy5/libcopybit/copybit.cpp:865: error: 'PRIV_FLAGS_DO_NOT_FLUSH' is not a member of 'private_handle_t'
device/samsung/galaxy5/libcopybit/copybit.cpp:866: error: 'MDP_BLIT_NON_CACHED' was not declared in this scope
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:894: error: redefinition of 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:411: error: 'int blit_copybit(copybit_device_t*, const copybit_image_t*, const copybit_image_t*, const copybit_region_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int close_copybit(hw_device_t*)':
device/samsung/galaxy5/libcopybit/copybit.cpp:908: error: redefinition of 'int close_copybit(hw_device_t*)'
device/samsung/galaxy5/libcopybit/copybit.cpp:425: error: 'int close_copybit(hw_device_t*)' previously defined here
device/samsung/galaxy5/libcopybit/copybit.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
device/samsung/galaxy5/libcopybit/copybit.cpp:919: error: redefinition of 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)'
device/samsung/galaxy5/libcopybit/copybit.cpp:436: error: 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)' previously defined here
make: *** [out/target/product/galaxy5/obj/SHARED_LIBRARIES/copybit.galaxy5_intermediates/copybit.o] Error 1
Any tip is appreciated, thanks.

CM9 liboverlay compile error

HI, I'm trying to compile CM9, but I always get this error:
Code:
target thumb C: libmm-omxcore <= vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c
target thumb C: libmm-omxcore <= vendor/qcom/opensource/omx/mm-core/omxcore/src/7627/qc_registry_table.c
In file included from vendor/qcom/opensource/omx/mm-core/omxcore/inc/qc_omx_common.h:43,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.h:39,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c:48:
vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: useless storage class specifier in empty declaration
vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c: In function 'OMX_FreeHandle':
vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c:511: warning: comparison between signed and unsigned integer expressions
In file included from vendor/qcom/opensource/omx/mm-core/omxcore/inc/qc_omx_common.h:43,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.h:39,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/7627/qc_registry_table.c:36:
vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: useless storage class specifier in empty declaration
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLib.cpp
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLibUI.cpp
target thumb C: libpagemap <= system/extras/libpagemap/pm_kernel.c
hardware/qcom/display/liboverlay/overlayLib.cpp:129:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLib.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
hardware/qcom/display/liboverlay/overlayLibUI.cpp:20:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLibUI.h:23,
from hardware/qcom/display/liboverlay/overlayLibUI.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
In file included from hardware/qcom/display/liboverlay/overlayLibUI.h:23,
from hardware/qcom/display/liboverlay/overlayLibUI.cpp:18:
hardware/qcom/display/liboverlay/overlayLib.h: In constructor 'overlay::FrameBufferInfo::FrameBufferInfo()':
hardware/qcom/display/liboverlay/overlayLib.h:182: error: 'MDP_BORDERFILL_SUPPORTED' was not declared in this scope
In file included from hardware/qcom/display/liboverlay/overlayLib.cpp:18:
hardware/qcom/display/liboverlay/overlayLib.h: In constructor 'overlay::FrameBufferInfo::FrameBufferInfo()':
hardware/qcom/display/liboverlay/overlayLib.h:182: error: 'MDP_BORDERFILL_SUPPORTED' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLibUI.h: In constructor 'overlay::OverlayUI::OverlayUI()':
hardware/qcom/display/liboverlay/overlayLibUI.h:101: warning: 'overlay::OverlayUI::mFBNum' will be initialized after
hardware/qcom/display/liboverlay/overlayLibUI.h:99: warning: 'int overlay::OverlayUI::mZorder'
hardware/qcom/display/liboverlay/overlayLibUI.cpp:217: warning: when initialized here
hardware/qcom/display/liboverlay/overlayLibUI.cpp: In member function 'void overlay::OverlayUI::setDisplayParams(int, bool, bool, int, bool)':
hardware/qcom/display/liboverlay/overlayLibUI.cpp:269: error: 'MDP_BACKEND_COMPOSITION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In function 'int overlay::initOverlay()':
hardware/qcom/display/liboverlay/overlayLib.cpp:377: error: 'msmfb_mixer_info_req' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:377: error: expected ';' before 'req'
hardware/qcom/display/liboverlay/overlayLib.cpp:378: error: 'mdp_mixer_info' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:378: error: 'minfo' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:390: error: 'req' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:391: error: 'MSMFB_MIXER_INFO' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLibUI.cpp: In member function 'overlay::status_t overlay::OverlayUI::closeOVSession()':
hardware/qcom/display/liboverlay/overlayLibUI.cpp:430: warning: suggest parentheses around assignment used as truth value
make: *** [out/target/product/tass/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayLibUI.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'void overlay::OverlayControlChannel::setInformationFromFlags(int, mdp_overlay&)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1296: error: 'MDP_SECURE_OVERLAY_SESSION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:1298: error: 'MDP_SECURE_OVERLAY_SESSION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:1301: error: 'MDP_SHARPENING' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::closeControlChannel()':
hardware/qcom/display/liboverlay/overlayLib.cpp:1497: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setPosition(int, int, uint32_t, uint32_t)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1532: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1533: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1539: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1539: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setTransform(int, bool)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1611: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setVisualParam(int8_t, float)':
hardware/qcom/display/liboverlay/overlayLib.cpp:2250: error: 'MDP_BLOCK_MAX' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2256: error: 'MDP_BLOCK_VG_1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2260: error: 'MDP_BLOCK_VG_2' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2284: error: 'MDP_SHARPENING' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2292: error: 'MDP_SHARPENING' was not declared in this scope
make: *** [out/target/product/tass/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayLib.o] Error 1
What could be wrong?

[DEV] Desire C (GOLFU) CM10 Compile Error qcom

Hello i have an following Compile Problem with the QCOM Display Driver
Code:
In file included from hardware/qcom/display/liboverlay/overlay.h:33:0,
from hardware/qcom/display/libhwcomposer/hwc_video.cpp:19:
hardware/qcom/display/liboverlay/overlayUtils.h: In function 'bool overlay::utils::isYuv(__u32)':
hardware/qcom/display/liboverlay/overlayUtils.h:543:14: error: 'MDP_Y_CRCB_H1V1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayUtils.h:545:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:542:9: error: previously used here
hardware/qcom/display/liboverlay/overlayUtils.h:546:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:541:9: error: previously used here
In file included from hardware/qcom/display/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display/liboverlay/overlayImpl.h:34,
from hardware/qcom/display/liboverlay/overlayState.h:34,
from hardware/qcom/display/liboverlay/overlay.h:34,
from hardware/qcom/display/libhwcomposer/hwc_video.cpp:19:
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:49:29: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:52:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:55:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:96:38: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:96:57: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:97:38: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:97:57: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:101:36: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getFScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:102:19: error: 'FBIOGET_FSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:110:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:111:19: error: 'FBIOGET_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:119:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::setVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:120:19: error: 'FBIOPUT_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:257:45: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:257:64: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:258:5: error: request for member 'type' in 'finfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:260:45: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:260:64: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:260:13: error: redefinition of 'void overlay::mdp_wrapper::dump(char const*, int const&)'
hardware/qcom/display/liboverlay/mdpWrapper.h:257:13: error: 'void overlay::mdp_wrapper::dump(char const*, int const&)' previously defined here
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'xres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'yres' in 'vinfo', which is of non-class type 'int const'
In file included from hardware/qcom/display/liboverlay/overlay.h:33:0,
from hardware/qcom/display/libhwcomposer/hwc.cpp:25:
hardware/qcom/display/liboverlay/overlayUtils.h: In function 'bool overlay::utils::isYuv(__u32)':
hardware/qcom/display/liboverlay/overlayUtils.h:543:14: error: 'MDP_Y_CRCB_H1V1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayUtils.h:545:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:542:9: error: previously used here
hardware/qcom/display/liboverlay/overlayUtils.h:546:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:541:9: error: previously used here
In file included from hardware/qcom/display/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display/liboverlay/overlayImpl.h:34,
from hardware/qcom/display/liboverlay/overlayState.h:34,
from hardware/qcom/display/liboverlay/overlay.h:34,
from hardware/qcom/display/libhwcomposer/hwc.cpp:25:
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:49:29: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:52:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:55:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:96:38: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:96:57: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:97:38: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:97:57: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:101:36: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getFScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:102:19: error: 'FBIOGET_FSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:110:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:111:19: error: 'FBIOGET_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:119:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::setVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:120:19: error: 'FBIOPUT_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:257:45: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:257:64: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:258:5: error: request for member 'type' in 'finfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:260:45: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:260:64: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:260:13: error: redefinition of 'void overlay::mdp_wrapper::dump(char const*, int const&)'
hardware/qcom/display/liboverlay/mdpWrapper.h:257:13: error: 'void overlay::mdp_wrapper::dump(char const*, int const&)' previously defined here
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'xres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'yres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/libhwcomposer/hwc.cpp: In function 'int hwc_eventControl(hwc_composer_device*, int, int)':
hardware/qcom/display/libhwcomposer/hwc.cpp:125:42: error: 'MSMFB_OVERLAY_VSYNC_CTRL' was not declared in this scope
Can updating the QCOM Driver source solve this problem?
jb driver You want to try?
http://d-h.st/nGQ
cm10
Gamephantom said:
Hello i have an following Compile Problem with the QCOM Display Driver
Code:
In file included from hardware/qcom/display/liboverlay/overlay.h:33:0,
from hardware/qcom/display/libhwcomposer/hwc_video.cpp:19:
hardware/qcom/display/liboverlay/overlayUtils.h: In function 'bool overlay::utils::isYuv(__u32)':
hardware/qcom/display/liboverlay/overlayUtils.h:543:14: error: 'MDP_Y_CRCB_H1V1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayUtils.h:545:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:542:9: error: previously used here
hardware/qcom/display/liboverlay/overlayUtils.h:546:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:541:9: error: previously used here
In file included from hardware/qcom/display/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display/liboverlay/overlayImpl.h:34,
from hardware/qcom/display/liboverlay/overlayState.h:34,
from hardware/qcom/display/liboverlay/overlay.h:34,
from hardware/qcom/display/libhwcomposer/hwc_video.cpp:19:
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:49:29: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:52:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:55:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:96:38: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:96:57: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:97:38: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:97:57: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:101:36: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getFScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:102:19: error: 'FBIOGET_FSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:110:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:111:19: error: 'FBIOGET_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:119:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::setVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:120:19: error: 'FBIOPUT_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:257:45: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:257:64: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:258:5: error: request for member 'type' in 'finfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:260:45: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:260:64: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:260:13: error: redefinition of 'void overlay::mdp_wrapper::dump(char const*, int const&)'
hardware/qcom/display/liboverlay/mdpWrapper.h:257:13: error: 'void overlay::mdp_wrapper::dump(char const*, int const&)' previously defined here
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'xres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'yres' in 'vinfo', which is of non-class type 'int const'
In file included from hardware/qcom/display/liboverlay/overlay.h:33:0,
from hardware/qcom/display/libhwcomposer/hwc.cpp:25:
hardware/qcom/display/liboverlay/overlayUtils.h: In function 'bool overlay::utils::isYuv(__u32)':
hardware/qcom/display/liboverlay/overlayUtils.h:543:14: error: 'MDP_Y_CRCB_H1V1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayUtils.h:545:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:542:9: error: previously used here
hardware/qcom/display/liboverlay/overlayUtils.h:546:9: error: duplicate case value
hardware/qcom/display/liboverlay/overlayUtils.h:541:9: error: previously used here
In file included from hardware/qcom/display/liboverlay/overlayRotator.h:35:0,
from hardware/qcom/display/liboverlay/overlayImpl.h:34,
from hardware/qcom/display/liboverlay/overlayState.h:34,
from hardware/qcom/display/liboverlay/overlay.h:34,
from hardware/qcom/display/libhwcomposer/hwc.cpp:25:
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:49:29: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:52:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:55:29: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h:96:38: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:96:57: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:97:38: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:97:57: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h:101:36: error: 'fb_fix_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getFScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:102:19: error: 'FBIOGET_FSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:110:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::getVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:111:19: error: 'FBIOGET_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:119:36: error: 'fb_var_screeninfo' has not been declared
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'bool overlay::mdp_wrapper::setVScreenInfo(int, int&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:120:19: error: 'FBIOPUT_VSCREENINFO' was not declared in this scope
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:257:45: error: 'fb_fix_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:257:64: error: ISO C++ forbids declaration of 'finfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:258:5: error: request for member 'type' in 'finfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h: At global scope:
hardware/qcom/display/liboverlay/mdpWrapper.h:260:45: error: 'fb_var_screeninfo' does not name a type
hardware/qcom/display/liboverlay/mdpWrapper.h:260:64: error: ISO C++ forbids declaration of 'vinfo' with no type [-fpermissive]
hardware/qcom/display/liboverlay/mdpWrapper.h: In function 'void overlay::mdp_wrapper::dump(char const*, int const&)':
hardware/qcom/display/liboverlay/mdpWrapper.h:260:13: error: redefinition of 'void overlay::mdp_wrapper::dump(char const*, int const&)'
hardware/qcom/display/liboverlay/mdpWrapper.h:257:13: error: 'void overlay::mdp_wrapper::dump(char const*, int const&)' previously defined here
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'xres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/liboverlay/mdpWrapper.h:261:5: error: request for member 'yres' in 'vinfo', which is of non-class type 'int const'
hardware/qcom/display/libhwcomposer/hwc.cpp: In function 'int hwc_eventControl(hwc_composer_device*, int, int)':
hardware/qcom/display/libhwcomposer/hwc.cpp:125:42: error: 'MSMFB_OVERLAY_VSYNC_CTRL' was not declared in this scope
Can updating the QCOM Driver source solve this problem?
Click to expand...
Click to collapse
Did you made this rom.
If you have it please post it here

[ GUIDE ] How to Setup Ubuntu 14.10 Utopic Unicorn to Compile Android ROMs

--- If you would rather use a ready-to-go Virtual Machine, check out my post here. ---
--- Copied with permission from http://nathanpfry.com ---
TLDR; if you don't care about an explanation of what your system is doing,
click here to check out XDA Senior Member Aaahh's sweet two-step method based on my guide below.
Otherwise, keep reading!​
With a new version of Ubuntu comes an update to my world-famous guide for setting up a build environment to compile Android ROMs. The aim of this guide is to simplify the configuration process for you.
Follow the directions step-by-step. All you have to do is copy and paste the code sections in order and you will be up and running in no time!
This guide applies to all variations of Ubuntu 14.10 Utopic Unicorn 64 bit. Do not use the 32 Bit version.
Also, PAY CLOSE ATTENTION when to use "sudo" and when to not. It can make things funky if you do something as root that you shouldn't.
Much thanks goes out to Google, ProTekk, Canonical, and everyone else that I read a random paragraph here and snippet there.
Ready to begin? Ok.
1) Unless it's a completely fresh Ubuntu installation, many of you may have the wrong version of Java installed. Let's fix that first.
The command below makes sure you're starting with a clean slate. Copy and paste it into a terminal (command prompt) window:
Code:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
If necessary, follow the on-screen instructions to remove any previous versions. Otherwise, move on to the next step.
It's time to install Java, one of the core pieces for compiling Android ROMs. Depending on which version of Android you are building, you will need the corresponding version of the Java Development Kit.
*** IF YOU ARE BUILDING ANDROID GINGERBREAD THRU KITKAT (2.3 - 4.4.x) USE THESE INSTRUCTIONS FOR JDK 6***
2) Copy and paste the following into the terminal:
Code:
sudo add-apt-repository ppa:webupd8team/java
This will add the correct PPA to your system for updated builds of Java 6 JDK.
3) Now you need to install the package. More copy-paste:
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
Follow the on-screen instructions. You must accept the Licensing Agreement to complete the install.
Press Enter to acknowledge the "OK", then tab over to "Yes" and press Enter again to accept the license. The installation will continue automatically.
4) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Continue to Step 5.
*** IF YOU ARE BUILDING ANDROID L AND ABOVE (CURRENT AOSP MASTER BRANCH) USE THESE INSTRUCTIONS FOR JDK 7***
2) Install Open-JDK 7 for the necessary Java development tools.
Code:
sudo apt-get update && sudo apt-get install openjdk-7-jdk
Follow the on-screen instructions.
3) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like OpenJDK 1.7
Continue on to Step 5.
5) Back to a fresh terminal prompt. Install the main build tools with this command:
Code:
sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev
6) When those are done installing, run the next line in your terminal window:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
That's it on the package side of things. You guessed it, time for more Terminal. This really is the easiest way, I promise.
7) A program called "repo" lets you communicate with git servers and download all that precious source code. The next command will install it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
8) Use your favorite text editor to open ~/.bashrc - I like nano:
Code:
sudo nano ~/.bashrc
9) At the very bottom (use the Page Down key) paste this code to a new (empty) line:
Code:
export PATH=~/bin:$PATH
10) Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
11) In the terminal, navigate to where you would like to download the Android source code. The commands below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external (even 3.0) will be comparatively slow. Here we go:
Code:
mkdir ~/android
cd ~/android
12) Now you're going to initialize the repo. This is where you decide the flavor of Android you want to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of the tutorial, here's the command for AOKP KitKat:
Code:
repo init -u git://github.com/AOKP/platform_manifest.git -b kitkat
13) Almost there. Last step, it's a doozy. Time to get the source. Prepare yourself, 10+ GB of downloading await.
Don't worry, it's automated.
Hey everyone, it's the final terminal command:
Code:
repo sync
Check back periodically every hour or so. It all depends on how fast your connection is.
That should be everything. Now you're ready to build Android the right way. Good luck!
Feel free to buy me a coconut water (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this post helped you out!​
Error while compiling in ubuntu 14.04
i am trying to build aosp_2.3.x using above instruction but facing problem
i am using ubuntu 14.04 64 bit
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# . build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. simulator
4. full_passion-userdebug
5. full_crespo4g-userdebug
6. full_crespo-userdebug
Which would you like? [full-eng] 1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# make -j6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
Install: out/host/linux-x86/framework/apicheck.jar
Install: out/host/linux-x86/framework/clearsilver.jar
Install: out/host/linux-x86/lib/libneo_util.so
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
Install: out/host/linux-x86/framework/dx.jar
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/StringPool.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Command.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Package.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/AaptAssets.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Main.cpp:1:0: note: this is the location of the previous definition
//
^
frameworks/base/tools/aapt/XMLNode.cpp:1:0: note: this is the location of the previous definition
//
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/ZipFileRO.h:35:0,
from frameworks/base/include/utils/AssetManager.h:29,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
frameworks/base/tools/aapt/StringPool.cpp: In function ‘void printStringPool(const android::ResStringPool*)’:
frameworks/base/tools/aapt/StringPool.cpp:33:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat=]
printf("String #%ld: %s\n", s, str);
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = int]’:
frameworks/base/tools/aapt/StringPool.cpp:60:45: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/tools/aapt/AaptAssets.cpp:1877:1: warning: unused parameter ‘bundle’ [-Wunused-parameter]
AaptAssets::slurpResourceZip(Bundle* bundle, const char* filename)
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptGroup>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1388:41: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptGroup> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptDir>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1447:53: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptDir> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/StringPool.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/tools/aapt/XMLNode.cpp:176:10: warning: unused parameter ‘bundle’ [-Wunused-parameter]
status_t parseStyledString(Bundle* bundle,
^
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Package.o] Error 1
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Command.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o] Error 1
[email protected]:/home/hackjack/Desktop/aosp_2.3.x#
Click to expand...
Click to collapse
i have highligted the error message
i am using aosp as base rom
below is the command use to get the repo
repo init -u https // android [dot] googlesource [dot] com/platform/manifest.git -b gingerbread

[Q] Error while building CM12.1 for Xperia J

Code:
target thumb C: scp <= external/openssh/bufaux.c
target thumb C: sdcard <= system/core/sdcard/main.c
target StaticLib: libsdcard (/home/soulpower11/android/system/out/target/product/jlo/obj/STATIC_LIBRARIES/libsdcard_intermediates/libsdcard.a)
target thumb C++: sensorservice <= frameworks/native/services/sensorservice/main_sensorservice.cpp
Symlink: /home/soulpower11/android/system/out/target/product/jlo/system/bin/su -> /system/xbin/su
target thumb C++: surfaceflinger <= frameworks/native/services/surfaceflinger/main_surfaceflinger.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:40:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DispSync.cpp
5 warnings generated.
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/EventControlThread.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/EventThread.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/FrameTracker.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Layer.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/LayerDim.cpp
In file included from frameworks/native/services/surfaceflinger/Layer.cpp:40:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/Layer.cpp:488:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
^~~~
frameworks/native/services/surfaceflinger/Layer.h:243:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw, const Region& clip);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:489:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, clip, false);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:491:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw,
^~~~
frameworks/native/services/surfaceflinger/Layer.h:244:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw, bool useIdentityTransform);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:493:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, Region(hw->bounds()), useIdentityTransform);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:495:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw) const {
^~~~
frameworks/native/services/surfaceflinger/Layer.h:245:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:496:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, Region(hw->bounds()), false);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:498:13: error: out-of-line definition of 'onDraw' does not match any declaration in 'android::Layer'
void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: member declaration does not match because it is not const qualified
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:1136:13: error: out-of-line definition of 'updateTransformHint' does not match any declaration in 'android::Layer'
void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const {
^~~~~~~~~~~~~~~~~~~
frameworks/native/services/surfaceflinger/Layer.h:292:10: note: member declaration does not match because it is not const qualified
void updateTransformHint(const sp<const DisplayDevice>& hw);
^ ~
5 warnings and 8 errors generated.
build/core/binary.mk:619: recipe for target '/home/soulpower11/android/system/out/target/product/jlo/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Layer.o' failed
make: *** [/home/soulpower11/android/system/out/target/product/jlo/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Layer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/LayerDim.cpp:29:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
5 warnings generated.
make: Leaving directory '/home/soulpower11/android/system'
#### make failed to build some targets (20:26 (mm:ss)) ####
Got this error while trying to build CM12.1 with https://github.com/TamsuiCM11/local_manifest

Categories

Resources