Date : 31. August 2024
As soon as a display is to be used in an embedded device, the question of the right graphics framework arises. As there are a wide variety of frameworks, we have compared three relevant examples here and analysed the advantages and disadvantages.
LVGL - benefits
LVGL - drawbacks
QT - benefits
QT - drawbacks
Flutter - benefits
Flutter - drawbacks
WPEWebkit is a port of the Webkit browser engine used by Safari and specialised for embedded Linux. Cog is a lightweight lanucher for WPEWebkit and comes with WPEWebkit. Chromium, on the other hand, is the open-source version of Google Chrome and almost all popular browsers such as Edge, Opera and Brave use Chromium as their base.
WPEWebKit
You can find the corresponding Yocto layer from Webkit here: github.com/Igalia/meta-webkit
Advantages of WPEWebKIt
Disadvantages of WPEWebKit
Chromium
The corresponding Yocto layer of Chromium can be found here: github.com/OSSystems/meta-browser
Advantages of Chromium
Disadvantages of Chromium
Resource-hungry:
This means, for example, that there are hardly any optimisations for embedded devices. It also takes 3 - 5 times longer than WPEWebkit and requires a lot of RAM. It also requires a lot of memory in the finished image.
The integration in Yocto/Openembedded regularly causes problems:
The updates always require very new versions of the compilers. This often requires workarounds for the LTS versions of Yocto/OpenEmbedded. The layer often lags behind with the updates, which often leads to security vulnerabilities and there are also regular problems with GPU acceleration after updates.