Igalia / cog

WPE launcher and webapp container
MIT License
235 stars 61 forks source link

Can't build cog without libgbm, which isn't available on i.MX6 boards #405

Open jclsn opened 2 years ago

jclsn commented 2 years ago

The title says it all. I think I read somewhere that WPEWebkit explicitly support i.MX6 and i.MX8 platforms. How to build without the availability of libgbm on the i.MX6?

philn commented 2 years ago

You omit to say what is your build environment though? OE? buildroot? something else? And on i.MX6 you have 2 options for the gfx driver, vivante or etnaviv. Which one are you targeting?

aperezdc commented 2 years ago

@jclsn You can find the compatibility table here: https://wpewebkit.org/about/supported-hardware.html#nxp

As stated there, with Etnaviv both the Wayland and DRM platform plug-ins will work, while with the proprietary driver only the Wayland one is supported — building the DRM one indeed needs libgbm!

You can pass -DCOG_PLATFORM_DRM=OFF to CMake and that will skip building the DRM plug-in. Configuring the build like that will make it succeed with the Vivante proprietary driver.