zoukankan      html  css  js  c++  java
  • 【Android】编译CM10遇到的错误解决方案

    错误1:
    =====================================================================================================
    target thumb C++: gralloc.stuttgart <= hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp: In function 'int framebuffer_device_open(const hw_module_t*, char const*, hw_device_t**)':
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:42:21: note: 'framebuffer_device_t::flags' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:49:21: note: 'framebuffer_device_t::width' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:50:21: note: 'framebuffer_device_t::height' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:57:21: note: 'framebuffer_device_t::stride' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:61:21: note: 'framebuffer_device_t::format' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:68:21: note: 'framebuffer_device_t::xdpi' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:69:21: note: 'framebuffer_device_t::ydpi' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:73:21: note: 'framebuffer_device_t::fps' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:76:21: note: 'framebuffer_device_t::minSwapInterval' should be initialized
    hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp:432:37: error: uninitialized const member in 'framebuffer_device_t {aka struct framebuffer_device_t}' using 'new' without new-initializer [-fpermissive]
    hardware/libhardware/include/hardware/fb.h:79:21: note: 'framebuffer_device_t::maxSwapInterval' should be initialized
    make: *** [/media/scue/Source/JellyBean/out/target/product/stuttgart/obj/SHARED_LIBRARIES/gralloc.stuttgart_intermediates/framebuffer_device.o] Error 1
    make: *** Waiting for unfinished jobs....
    scue@Link:/media/scue/Source/JellyBean$ 
    
    解决:自从gcc编译器更新至4.6之后出现的;
          把haware_samsung代码切换至jellybean-stable分支;
          或者手动修改hardware/samsung/exynos4/hal/libgralloc_ump/framebuffer_device.cpp此文件;
    
    错误2:
    =====================================================================================================
    target thumb C++: libhdmiclient <= hardware/samsung/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.cpp
    In file included from hardware/samsung/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.cpp:27:0:
    hardware/samsung/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h:37:45: fatal error: surfaceflinger/ISurfaceComposer.h: No such file or directory
    compilation terminated.
    make: *** [/media/scue/Source/JellyBean/out/target/product/stuttgart/obj/SHARED_LIBRARIES/libhdmiclient_intermediates/SecHdmiClient.o] Error 1
    make: *** Waiting for unfinished jobs....
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::info' [-Wmissing-field-initializers]
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::finfo' [-Wmissing-field-initializers]
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::xdpi' [-Wmissing-field-initializers]
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::ydpi' [-Wmissing-field-initializers]
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::fps' [-Wmissing-field-initializers]
    hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480:1: warning: missing initializer for member 'private_module_t::enableVSync' [-Wmissing-field-initializers]
    
    解决:不知道哪个版本开始,不再使用surfaceflinger/ISurfaceComposer.h,而使用gui/ISurfaceComposer.h; 
          找到hardware/samsung/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h,把surfaceflinger修改为gui;
    
    
    错误3:
    =====================================================================================================
    提示"DEV_NAME"第一次使用(error: 'DEV_NAME' undeclared)。
    
    解决:多是DDC(直接数据控制)没有设置好导致的;
          在device/lenovo/sttutgart/BoardConfig.mk中,添加:
          BOARD_HDMI_DDC_CH := DDC_CH_I2C_7

    测试机型:联想K860

    ------------
    微博:http://weibo.com/scue
    Github:http://github.com/scue
  • 相关阅读:
    MP3文件格式解析
    各种流媒体服务器的架设(一)
    fread函数和fwrite函数
    [转]C#算法 一对小兔子一年后长成大兔子;一对大兔子每半年生一对小兔子。大兔子的繁殖期为4年,兔子的寿命是6年。假定第一年年初投放了一对小兔子,试编程计算,第n年末总共会有多少对兔子
    C#算法 质因数 最大公约数与最小公倍数
    数据库删除语句 Drop/Delete/Truncate比较
    [转]C# 截取指定长度的中英文混合字符串的算法
    C#算法 母牛从第4年起每年生一头小母牛,并且母牛不会死
    C#算法 有一个母羊,第2年和第4年可以生一头小母羊,在第5年死去,小母羊在它出生的第2年和第4年生小母羊,第5年死去
    C#算法 最值/平均
  • 原文地址:https://www.cnblogs.com/scue/p/3115172.html
Copyright © 2011-2022 走看看