〖Android〗CM10.2编译错误解决
错误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编译错误解决的更多相关文章
- android studio 更新 Gradle错误解决方法(Gradle sync failed)
android studio 更新 Gradle错误解决方法 Android Studio每次更新版本都会更新Gradle这个插件,但由于长城的问题每次更新都是失败,又是停止在Refreshing ...
- xxx was built without full bitcode" 编译错误解决
xxx was built without full bitcode" 编译错误解决 iOS 打包上线 All object files and libraries for bitcode ...
- 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 ...
- Android studio2 中的 SDK Manager的使用-------Android SDK 的安装与更新(Install missing platform(s) and sync project 编译错误解决)
最近在编写Android程序,其中有一个问题就是对旧应用的导入,此时往往你的Android SDK中并没有老版本的Android SDK, 此时往往会提示你出现错误 Install missing p ...
- 创建Android项目及常见错误解决
首先打开eclipse,点击右上角有一个这个小按钮,点击java然后OK 因为切换到这个视图来创建android程序更加方便,然后点击 Next Next 这个地方可以修改android应用程序的图标 ...
- Android:JACK编译错误汇总及解决
jack server交互命令: jack-admin start-server jack-admin kill-server jack-admin list-server jack-admin un ...
- 在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 ...
- Android O seLinux 编译错误
编译android O源码,遇到错误 FAILED: out/target/product/hon450/obj/ETC/sepolicy_intermediates/sepolicy /bin/ba ...
- Android源码编译出错解决办法
编译环境:Ubuntu12.04 64位 Android源码:Android 4.3 以下问题是笔者亲自碰到,通过网上查询整合在一起的. 1.error while loading shared li ...
随机推荐
- 反激 (Flyback) 控制器 -- LTC3803
LTC3803 - 采用 ThinSOT 封装的恒定频率.电流模式.反激式 DC/DC 控制器 特点 VIN 和 VOUT 仅受限于外部元件 可调斜率补偿 内部软起动 200kHz 恒定频率操作 ±1 ...
- Current-sense monitor and MOSFET boost output current
A previous Design Idea describes a programmable current source that used a three-terminal National S ...
- ADC In An FPGA
http://davidkessner.wordpress.com/2011/05/01/adc-in-an-fpga/ Geek Alert! What follows is very techn ...
- Homebrew-macOS缺失的软件包管理器(简称brew)
[简介] brew又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,只需要一个简单的命令,非常方便 [遇到的问题] 在真正了解软件包管理工具之前,一直是 ...
- mysql-connector-odbc-8.0.11-winx64.msi安装失败
mysql-connector-odbc-8.0.11-winx64.msi安装失败 提示需要Redistributable for Visual Studio 2015 去下载 vc_redist. ...
- Visual Studio 2013在线文档地址备案
Visual Studio 2013还没有离线的帮助文档,这里做个记录,以备后面使用. 地址:http://msdn.microsoft.com/zh-cn/library/dd831853.aspx
- 从Log4j迁移到LogBack的理由
英文原文:Reasons to prefer logback over log4j 无论从设计上还是实现上,Logback相对log4j而言有了相对多的改进.不过尽管难以一一细数,这里还是列举部分理由 ...
- Gulp插件less的使用
1.创建:gulpfile.js var gulp = require('gulp'), less = require('gulp-less'); gulp.task('default', funct ...
- pm2 相关命令
pm2 相关命令 转载 2017年02月18日 22:59:48 二.安装 Linux Binaries下载地址:https://nodejs.org/dist cd oneinstack/src ...
- android——根据MVC框架设计的结构