Build cog with Yocto Project/OpenEmbedded

I tried to build cog with OpenEmbedded instead of Torizon, but I can’t proceed with an error.
I just added the following two lines to local.conf.
PLL_PROVIDER_virtual / wpebackend = “wpebackend-fdo”
IMAGE_INSTALL + = “wpewebkit cog”
Reference page

Palease help me.

Build environment ubunt 18.04 (WLS2)
python2.7
BSP version 3.0
It doesn’t look like there is a syntax error.
Am I making a mistake in the settings?

log.do_compile

・・・

In file included from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/recipe-sysroot/usr/include/X11/Xlib.h:44,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:144,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/GLContext.h:33,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/GraphicsContext3DPrivate.h:23,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp:33:

/home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/rendering/style/RenderStyleConstants.h:70:5: error: expected identifier before numeric constant

 None        = 0,

 ^~~~

/home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/rendering/style/RenderStyleConstants.h:70:5: error: expected ‘}’ before numeric constant

In file included from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/animation/Animation.h:28,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/GraphicsLayer.h:28,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/texmap/TextureMapperAnimation.h:23,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/nicosia/NicosiaPlatformLayer.h:37,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:33,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGC3DLayer.h:34,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp:57:

/home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/rendering/style/RenderStyleConstants.h:69:52: note: to match this ‘{’

enum class StyleDifferenceContextSensitiveProperty {

                                                ^

In file included from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/recipe-sysroot/usr/include/X11/Xlib.h:44,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:144,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/GLContext.h:33,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/GraphicsContext3DPrivate.h:23,

             from /home/ana-rd/oe-core/build/tmp/work/armv7at2hf-neon-mx6qdl-tdx-linux-gnueabi/wpewebkit/2.24.2-r0/wpewebkit-2.24.2/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp:33:

・・・

RenderStyleConstants.h

・・・

// When some style properties change, different amounts of work have to be done depending on

// context (e.g. whether the property is changing on an element which has a compositing layer).

// A simple StyleDifference does not provide enough information so we return a bit mask of

// StyleDifferenceContextSensitiveProperties from RenderStyle::diff() too.

enum class StyleDifferenceContextSensitiveProperty { <error

None        = 0,    <error

Transform   = 1 << 0,

Opacity     = 1 << 1,

Filter      = 1 << 2,

ClipRect    = 1 << 3,

ClipPath    = 1 << 4,

WillChange  = 1 << 5,

};

・・・

Hi @syo419g !

Can you please check if you are using the meta-webkit version that is compatible with BSP 3?

According to the Embedded Linux Release Matrix article, BSP 3 for Apalis iMX6 uses Yocto Thud.

The meta-webkit “main” branch is not compatible with Yocto Thud: meta-webkit/layer.conf at ba3c5c6d15109dc8d8b48c865c94424c526dcbfa · Igalia/meta-webkit · GitHub

The meta-webkit “thud” branch is compatible with Yocto Thud: meta-webkit/layer.conf at dcc642a00357de30abb3d29265e120380ed2fac1 · Igalia/meta-webkit · GitHub

Best regards,

Thank you for your advice.
BSP : 3.0.4 is Yocto : 2.6 / Thud
I used meta-webkit thud

root:~/oe-core/build$ bitbake cog
Parsing recipes: 100% |#########################################################################################| Time: 0:00:41
Parsing of 3295 .bb files complete (0 cached, 3295 parsed). 4353 targets, 233 skipped, 0 masked, 0 errors.
Removing 1 recipes from the apalis_imx6 sysroot: 100% |#########################################################| Time: 0:00:00
Removing 1 recipes from the x86_64 sysroot: 100% |##############################################################| Time: 0:00:00
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "tdx-x11"
DISTRO_VERSION       = "2.6-snapshot-20220127"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:762dd2b57266ed99831c6b7e91a51193d7169046"
meta-freescale       = "HEAD:07d4a6baa23ec3a1f013f8a070130598b56aec7c"
meta-freescale-3rdparty = "HEAD:545e8094a140231e78b9284c3a3d94fcc573ae98"
meta-toradex-tegra   = "HEAD:90828b47fa1a7055fe71896a76153d1786bf375a"
meta-toradex-bsp-common = "HEAD:e82be9ce7cbeff00b38fa09240996b5b3c7265f9"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-initramfs
meta-networking
meta-multimedia
meta-python          = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-lxde            = "HEAD:ef686d11201b780d7db650f94b3a850a0eb3a6f5"
meta-browser         = "thud:830ef438e81ba5fc915b1855e69f02b2c286b21a"
meta-qt5             = "5.12:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"
meta-qt5-extra       = "HEAD:48ab2dad10399951783f0e54aafb7a27ae46ac4e"
meta-rust            = "HEAD:dbf68d40b3898913142f84586bbc97b830797967"
meta-freescale-distro = "HEAD:4a244af3993ae662624c6f615464e6806cc719a2"
meta-toradex-demos   = "HEAD:03aa13b6a709470ba7c9367293f979e6f0bb939b"
meta-toradex-distro  = "HEAD:be3bebbc165727418f261d29bd75dd413527fd97"
meta-poky            = "HEAD:bf00cab7a55e2038e09a307378af5aec04c99380"
meta-anatec-yanaco   = "linux_3_0:4163786b51f5e9761b7c17676b154bf2d5cecd18"
meta                 = "HEAD:e68991ceb5933f7d03b96697e8a0ba0829feb320"
meta-clang           = "thud:22f0b0eaad454279c604a83dba53be6e6efb1a06"
meta-webkit          = "thud:dcc642a00357de30abb3d29265e120380ed2fac1"
1 Like

Hi @syo419g,

You are right. I corrected my previous message, thanks!

Best regards,