OpenHarmony开发者论坛

标题: 【求助】【OpenHarmony-v4.1-Release】版本 dayu210 rk3588编译报错 [打印本页]

作者: bebe    时间: 2024-5-8 17:12
标题: 【求助】【OpenHarmony-v4.1-Release】版本 dayu210 rk3588编译报错
[md]【OpenHarmony-v4.1-Release】版本编译dayu210报错error: allocating an object of abstract class type 'OHOS::HDI:ISPLAY:isplayBufferVdiImpl':路过大佬帮忙看下哈,感谢!!!

`[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:ISPLAY:isplayBufferVdiImpl' [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.`
[/md]
作者: 杨ZH    时间: 2024-5-9 13:27
和4.0差异,RegisterBuffer  SetMetadata  GetMetadata  ListMetadataKeys  EraseMetadataKey接口
作者: bebe    时间: 2024-5-9 15:07
回复 杨ZH: 可以了,感谢~
作者: wwwwzz    时间: 2024-5-17 16:53
回复 bebe: 你好,请问是怎么解决的?

作者: zzzz111    时间: 2024-5-22 14:51
回复 杨ZH: 您好,能分享下解决方法吗,patch有错误怎么解决啊
作者: jiale    时间: 2024-5-23 10:27
回复 zzzz111: 兄弟,你看人家都把接口写出来了,你就把这几个接口的实现加上,或者移除声明,应该就可以了吧
作者: zhangzicheng    时间: 2024-11-4 10:30
回复 zzzz111: 你好!请问一下你的问题解决后烧录到板子屏有显示吗?




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5