• Lv0
    粉丝0

积分5 / 贡献0

提问1答案被采纳0文章0

作者动态

    【求助】【OpenHarmony-v4.1-Release】版本 dayu210 rk3588编译报错

    bebe 显示全部楼层 发表于 2024-5-8 17:12:39

    【OpenHarmony-v4.1-Release】版本编译dayu210报错error: allocating an object of abstract class type 'OHOS::HDI::DISPLAY::DisplayBufferVdiImpl':路过大佬帮忙看下哈,感谢!!!

    [OHOS ERROR] [14202/50585] CXX obj/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/libdisplay_buffer_vdi_impl/display_buffer_vdi_impl.o [OHOS ERROR] FAILED: obj/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/libdisplay_buffer_vdi_impl/display_buffer_vdi_impl.o [OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/libdisplay_buffer_vdi_impl/display_buffer_vdi_impl.o.d -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D__OHOS_USER__ -D__OHOS_STANDARD_SYS__ -I../../device/soc/rockchip/rk3588/hardware/display/src/display_gralloc -I../../drivers/peripheral/base -I../../drivers/interface/display/composer/hdifd_parcelable -I../../drivers/interface/display/buffer -I../../drivers/peripheral/display/utils/include -I../../drivers/peripheral/display/buffer/hdi_service/include -Iobj/third_party/musl/usr/include/aarch64-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../commonlibrary/c_utils/base/include -I../../third_party/bounds_checking_function/include -I../../base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include -I../../drivers/hdf_core/adapter/uhdf2/include/hdi -I../../drivers/hdf_core/adapter/uhdf2/osal/include -I../../drivers/hdf_core/adapter/uhdf2/ipc/include -I../../drivers/hdf_core/framework/include/utils -I../../drivers/hdf_core/interfaces/inner_api/utils -I../../drivers/hdf_core/interfaces/inner_api/osal/uhdf -I../../drivers/hdf_core/interfaces/inner_api/hdi -Igen/drivers/interface -Igen/drivers/interface/display/buffer -Igen/drivers/interface/display/composer -I../../drivers/hdf_core/interfaces/inner_api/osal/shared -I../../drivers/hdf_core/interfaces/inner_api/core -I../../drivers/hdf_core/interfaces/inner_api/ipc -I../../base/hiviewdfx/hilog/interfaces/native/innerkits/include -I../../foundation/communication/ipc/interfaces/innerkits/ipc_core/include -I../../foundation/communication/ipc/ipc/native/src/core/include -I../../foundation/communication/ipc/ipc/native/src/mock/include -DGRALLOC_GBM_SUPPORT -Wno-macro-redefined -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fsplit-lto-unit -ffunction-sections -fno-short-enums --target=aarch64-linux-ohos -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=sizeof-array-div -Wno-error=implicit-fallthrough -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare --param=ssp-buffer-size=4 -fstack-protector-ret-strong -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -DCONFIG_STANDARD_SYSTEM -DBUILD_PUBLIC_VERSION -DCONFIG_ACTV_BINDER -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -c ../../device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/display_buffer_vdi_impl.cpp -o obj/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/libdisplay_buffer_vdi_impl/display_buffer_vdi_impl.o [OHOS ERROR] ../../device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/display_buffer_vdi_impl.cpp:121:16: error: allocating an object of abstract class type 'OHOS::HDI::DISPLAY::DisplayBufferVdiImpl' [OHOS ERROR] return new DisplayBufferVdiImpl(); [OHOS ERROR] ^ [OHOS ERROR] ../../drivers/peripheral/display/buffer/hdi_service/include/idisplay_buffer_vdi.h:122:21: note: unimplemented pure virtual method 'RegisterBuffer' in 'DisplayBufferVdiImpl' [OHOS ERROR] virtual int32_t RegisterBuffer(const BufferHandle& handle) = 0; [OHOS ERROR] ^ [OHOS ERROR] ../../drivers/peripheral/display/buffer/hdi_service/include/idisplay_buffer_vdi.h:124:21: note: unimplemented pure virtual method 'SetMetadata' in 'DisplayBufferVdiImpl' [OHOS ERROR] virtual int32_t SetMetadata(const BufferHandle& handle, uint32_t key, const std::vector<uint8_t>& value) = 0; [OHOS ERROR] ^ [OHOS ERROR] ../../drivers/peripheral/display/buffer/hdi_service/include/idisplay_buffer_vdi.h:126:21: note: unimplemented pure virtual method 'GetMetadata' in 'DisplayBufferVdiImpl' [OHOS ERROR] virtual int32_t GetMetadata(const BufferHandle& handle, uint32_t key, std::vector<uint8_t>& value) = 0; [OHOS ERROR] ^ [OHOS ERROR] ../../drivers/peripheral/display/buffer/hdi_service/include/idisplay_buffer_vdi.h:128:21: note: unimplemented pure virtual method 'ListMetadataKeys' in 'DisplayBufferVdiImpl' [OHOS ERROR] virtual int32_t ListMetadataKeys(const BufferHandle& handle, std::vector<uint32_t>& keys) = 0; [OHOS ERROR] ^ [OHOS ERROR] ../../drivers/peripheral/display/buffer/hdi_service/include/idisplay_buffer_vdi.h:130:21: note: unimplemented pure virtual method 'EraseMetadataKey' in 'DisplayBufferVdiImpl' [OHOS ERROR] virtual int32_t EraseMetadataKey(const BufferHandle& handle, uint32_t key) = 0; [OHOS ERROR] ^ [OHOS ERROR] 1 error generated.

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    精彩评论6

    杨ZH

    沙发 发表于 2024-5-9 13:27:52
    和4.0差异,RegisterBuffer  SetMetadata  GetMetadata  ListMetadataKeys  EraseMetadataKey接口

    bebe

    发表于 2024-5-9 15:07  IP属地: 浙江省杭州市

    回复 杨ZH: 可以了,感谢~

    wwwwzz

    发表于 2024-5-17 16:53  IP属地: 广东省广州市

    回复 bebe: 你好,请问是怎么解决的?

    zzzz111

    发表于 2024-5-22 14:51  IP属地: 广东省广州市

    回复 杨ZH: 您好,能分享下解决方法吗,patch有错误怎么解决啊

    【5 条回复】 查看全部
    共6 条回复,点击查看

    Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部