在 Buildroot 中启用 webkitgtk 选项时 webkitgtk 的构建错误

问题描述 投票:0回答:0

我正在使用 Ubuntu VM(22.10,64 位)运行 buildroot (2022.02.7)。

我启用了 midori 包并选择此选项也选择了 webkitgtk (v2.36.7),下载和配置源代码运行没有错误。

在构建过程中,make 会抛出一些错误和崩溃。

[ 45%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-76.cpp.o
make[4]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:4281: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-31.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/Makefile2:1018: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make[2]: *** [Makefile:156: all] Error 2
make[1]: *** [package/pkg-generic.mk:293: /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2

回滚日志,报这个错:

[ 45%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-52.cpp.o
In file included from /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/Source/WebCore/platform/graphics/filters/FESpecularLighting.h:25,
                 from /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/Source/WebCore/svg/SVGFESpecularLightingElement.h:25,
                 from /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/WebCore/DerivedSources/JSSVGFESpecularLightingElement.h:26,
                 from /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/WebCore/DerivedSources/JSDOMWindow.cpp:416,
                 from /home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-31.cpp:2:
/home/dev/workspace/pios4/output/build/webkitgtk-2.36.7/Source/WebCore/platform/graphics/filters/FELighting.h:72:41: error: ‘LightingData’ does not name a type
   72 |     inline void platformApplyNeon(const LightingData&, const LightSource::PaintingData&);
      |                                         ^~~~~~~~~~~~

因为我需要为其他兼容性项目保留当前的 buildroot 配置,所以我尝试了此处答案中的选项 2不完整的 WEBKITGTK 构建并且构建仍然失败。

有谁知道如何解决这个问题?

c++ webkit buildroot webkitgtk
© www.soinside.com 2019 - 2024. All rights reserved.