错误1:

hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp: In function 'int android::hdmi_gl_set_param(int, int, int, int, unsigned int, unsigned int, int, int, int, int, int)':
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'srcAddr = {(addr_space)1u, ((long unsigned int)src_y_address), ((src_w * src_h) * 4), 1, 0}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_addr& fimg2d_addr::operator=(const fimg2d_addr&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_addr&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'srcImage = {srcAddr, srcAddr, src_w, src_h, (src_w * 4), (pixel_order)0u, (color_format)1u}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_image& fimg2d_image::operator=(const fimg2d_image&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_image&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'dstAddr = {(addr_space)1u, ((long unsigned int)dst_addr), ((dst_w * dst_h) * dst_bpp), 1, 0}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_addr& fimg2d_addr::operator=(const fimg2d_addr&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_addr&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'dstImage = {dstAddr, dstAddr, dst_w, dst_h, (dst_w * dst_bpp), (pixel_order)0u, ((color_format)dst_color_format)}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_image& fimg2d_image::operator=(const fimg2d_image&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_image&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'Scaling = {(scaling)2u, (scaling_factor)0u, 0, 0, src_w, src_h, dst_w, dst_h}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_scale& fimg2d_scale::operator=(const fimg2d_scale&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_scale&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'Scaling = {(scaling)2u, (scaling_factor)0u, 0, 0, src_w, src_h, dst_h, dst_w}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_scale& fimg2d_scale::operator=(const fimg2d_scale&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_scale&'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: warning: extended initializer lists only available with -std=c++ or -std=gnu++ [enabled by default]
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: error: no match for 'operator=' in 'BlitParam = {(blit_op)2u, (premultiplied)1u, 255, 0, g2d_rotation, (& Scaling), 0, 0, (& dstClip), 0, (& srcImage), (& dstImage), 0, (& srcRect), (& dstRect), 0, 0}'
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp::: note: candidate is:
In file included from hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:::
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: fimg2d_blit& fimg2d_blit::operator=(const fimg2d_blit&)
hardware/samsung/exynos4/hal/libhdmi/SecHdmi/../../include/sec_g2d_4x.h::: note: no known conversion for argument from '<brace-enclosed initializer list>' to 'const fimg2d_blit&'
make: *** [/media/Enjoy/AndroidCode/cm10./out/target/product/stuttgart/obj/SHARED_LIBRARIES/libhdmi_intermediates/SecHdmiV4L2Utils.o] Error
make: *** Waiting for unfinished jobs....

解决:

diff --git a/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp b/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp
index f3ae1ac..b103acb
--- a/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp
+++ b/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp
@@ -, +, @@ int hdmi_set_g_scaling(int layer,
cur_g2d_address = (unsigned int)dst_addr;
prev_src_addr = src_address; - srcAddr = {(addr_space)ADDR_USER, (unsigned long)src_address, src_w * src_h * , , };
- srcImage = {srcAddr, srcAddr, src_w, src_h, src_w*, AX_RGB, CF_ARGB_8888};
srcRect = {, , src_w, src_h};
-
- dstAddr = {(addr_space)ADDR_USER, (unsigned long)dst_addr, dst_w * dst_h * dst_bpp, , };
- dstImage = {dstAddr, dstAddr, dst_w, dst_h, dst_w*dst_bpp, AX_RGB, (color_format)dst_color_format};
dstRect = {, , dst_w, dst_h};
+
+ srcAddr = {(addr_space)ADDR_USER, (unsigned long)src_address};
+ srcImage = { src_w, src_h, src_w*, AX_RGB, CF_ARGB_8888, srcAddr, srcAddr, srcRect, false };
+ dstAddr = {(addr_space)ADDR_USER, (unsigned long)dst_addr};
+ dstImage = { dst_w, dst_h, dst_w*dst_bpp, AX_RGB, (color_format)dst_color_format, dstAddr, dstAddr, dstRect, false};
dstClip = {, , , dst_w, dst_h}; if (rotVal == || rotVal == )
@@ -, +, @@ int hdmi_gl_set_param(int layer,
cur_g2d_address = (unsigned int)dst_addr;
prev_src_addr = src_y_address; - srcAddr = {(addr_space)ADDR_PHYS, (unsigned long)src_y_address, src_w*src_h*, , };
- srcImage = {srcAddr, srcAddr, src_w, src_h, src_w*, AX_RGB, CF_ARGB_8888};
srcRect = {, , src_w, src_h};
-
- dstAddr = {(addr_space)ADDR_PHYS, (unsigned long)dst_addr, dst_w*dst_h*dst_bpp, , };
- dstImage = {dstAddr, dstAddr, dst_w, dst_h, dst_w*dst_bpp, AX_RGB, (color_format)dst_color_format};
dstRect = {, , dst_w, dst_h};
+
+ srcAddr = {(addr_space)ADDR_USER, (unsigned long)src_y_address};
+ srcImage = { src_w, src_h, src_w*, AX_RGB, CF_ARGB_8888, srcAddr, srcAddr, srcRect, false };
+ dstAddr = {(addr_space)ADDR_USER, (unsigned long)dst_addr};
+ dstImage = { dst_w, dst_h, dst_w*dst_bpp, AX_RGB, (color_format)dst_color_format, dstAddr, dstAddr, dstRect, false};
+
dstClip = {, , , dst_w, dst_h}; if (rotVal == || rotVal == )
- Scaling = {SCALING_BILINEAR, SCALING_PIXELS, , , src_w, src_h, dst_w, dst_h};
+ Scaling = {SCALING_BILINEAR, src_w, src_h, dst_w, dst_h};
else
- Scaling = {SCALING_BILINEAR, SCALING_PIXELS, , , src_w, src_h, dst_h, dst_w};
+ Scaling = {SCALING_BILINEAR, src_w, src_h, dst_h, dst_w}; switch (rotVal) {
case :
@@ -, +, @@ int hdmi_gl_set_param(int layer,
return -;
break;
}
-
- BlitParam = {BLIT_OP_SRC, NON_PREMULTIPLIED, 0xff, , g2d_rotation, &Scaling, , , &dstClip, , &srcImage, &dstImage, NULL, &srcRect, &dstRect, NULL, };
-
+ struct fimg2d_param param;
+ param = {, 0xff, , g2d_rotation, NON_PREMULTIPLIED, &scaling, , , &dstClip};
+ BlitParam = { BLIT_OP_SRC, param, &srcImage, NULL, NULL, &dstImage, BLIT_SYNC, };
if (stretchFimgApi(&BlitParam) < ) {
ALOGE("%s::stretchFimgApi() fail", __func__);
return -;
diff --git a/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h b/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h
index ebee763..
--- a/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h
+++ b/exynos4/hal/libhdmi/libhdmiservice/SecHdmiClient.h
@@ -, +, @@
#include <cutils/log.h>
#include <binder/IBinder.h>
#include <binder/IServiceManager.h>
-#include <surfaceflinger/ISurfaceComposer.h>
-#include <surfaceflinger/SurfaceComposerClient.h>
+#include <gui/ISurfaceComposer.h>
+#include <gui/SurfaceComposerClient.h>
#include "ISecTVOut.h" #define GETSERVICETIMEOUT (5)

〖Android〗CM10.2编译错误解决的更多相关文章

  1. android studio 更新 Gradle错误解决方法(Gradle sync failed)

    android studio 更新 Gradle错误解决方法   Android Studio每次更新版本都会更新Gradle这个插件,但由于长城的问题每次更新都是失败,又是停止在Refreshing ...

  2. xxx was built without full bitcode" 编译错误解决

    xxx was built without full bitcode" 编译错误解决 iOS 打包上线 All object files and libraries for bitcode ...

  3. Ubuntu(64位)编译Android源码常见错误解决办法

    2013年07月10日 14:47:27 阅读数:1239 错误: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file ...

  4. Android studio2 中的 SDK Manager的使用-------Android SDK 的安装与更新(Install missing platform(s) and sync project 编译错误解决)

    最近在编写Android程序,其中有一个问题就是对旧应用的导入,此时往往你的Android SDK中并没有老版本的Android SDK, 此时往往会提示你出现错误 Install missing p ...

  5. 创建Android项目及常见错误解决

    首先打开eclipse,点击右上角有一个这个小按钮,点击java然后OK 因为切换到这个视图来创建android程序更加方便,然后点击 Next Next 这个地方可以修改android应用程序的图标 ...

  6. Android:JACK编译错误汇总及解决

    jack server交互命令: jack-admin start-server jack-admin kill-server jack-admin list-server jack-admin un ...

  7. 在ubuntu 14.04 编译android 2.3.1 错误解决办法

    首先必须降低gcc版本: sudo apt-get install gcc-4.4sudo apt-get install g++-4.4sudo rm -rf /usr/bin/gcc /usr/b ...

  8. Android O seLinux 编译错误

    编译android O源码,遇到错误 FAILED: out/target/product/hon450/obj/ETC/sepolicy_intermediates/sepolicy /bin/ba ...

  9. Android源码编译出错解决办法

    编译环境:Ubuntu12.04 64位 Android源码:Android 4.3 以下问题是笔者亲自碰到,通过网上查询整合在一起的. 1.error while loading shared li ...

随机推荐

  1. jdk1.6,jdk1.7和jdk1.8多版本切换

    目录 一.配置jdk1.7(win7系统) 二.jdk1.8切换回jdk1.7 三.最后强调可能出现不成功的原因 首先要明确jdk一般都是默认安装在C:\Program Files\Java下的,在配 ...

  2. 04-RocketMQ入门及其使用(一)

    视频开始主要介绍数据库逻辑以及分表相关的设计. 关键的数据库读写分析操作---

  3. Apache -- XAMPP Apache 无法启动原因及解决方法

    XAMPP Apache 无法启动原因1(缺少VC运行库): 这个就是我遇到的问题原因,下载安装的XAMPP版本是xampp-win32-1.7.7-VC9,而现有的Windows XP系统又没有安装 ...

  4. asp.net url传值,弹窗

    一,<a>标签链接式传值 1, <a href="News_list.aspx?ClassID=<%#((DataRowView)Container.DataItem ...

  5. [转]Android应用中返回键的监听及处理

    用户在点击手机的返回按钮时,默认是推出当前的activty,但是有时用户不小心按到返回,所以需要给用户一个提示,这就需要重写onkeydown事件,实现的效果如下:   标签:    Android ...

  6. Jenkins使用jenkins-cli.jar进行远程调用时出现“ERROR: No such job 'test'”或者权限不够等问题解决(Windows)

    网上最提倡的解决办法是用SSH的key进行登录,但是我发觉Linux上非常容易实现,但是Windows压根不知道在哪里设置. 原文:https://issues.jenkins-ci.org/brow ...

  7. SQL Server需要监控哪些计数器 ---指尖流淌

    http://www.cnblogs.com/zhijianliutang/p/4174697.html

  8. 任务驱动,Winform VS WEB对比式学习.NET开发系列第一篇------身份证解析(不断更新的WEB版本及Winform版本源码)

    一 本系列培训随笔适用人群 1. 软件开发初学者 2. 有志于转向Web开发的Winform程序员 3. 想了解桌面应用开发的Web程序员 二 高效学习编程的办法 1 任务驱动方式学习软件开发 大部分 ...

  9. [0day]基础工具学习

    事实上非常多工具多少都使用的比較熟悉了. 可是仍有一些点还是比較有趣以及我不知道的.毕竟第一章,查缺补漏的. (话说这个成语在高三冲刺的时候,老师用得最多,当时还非常悲哀的一直补东墙.漏西墙.始终认为 ...

  10. linux上SVN解决冲突的办法

    转载:http://www.aixchina.net/club/thread-25902-1-1.html 这里,先说说冲突解决. 怎么会发生冲突呢? 两个人修改了不同文件?不会有冲突,他们不相关. ...