是否可以仅使用 HTML、CSS 和 JS 在 Linux Embedded 上开发 GUI?

Is it possible to develop a GUI on Linux Embedded with just HTML, CSS and JS?

我一直在广泛研究这个主题,但仍未找到合适的指南。 我正在做的是为基于 Linux Embedded 的嵌入式系统创建一个 GUI,我想知道是否:

我对此很陌生,如果有经验的人能指出正确的方向,我将不胜感激。 非常感谢。

我刚刚写了一个 article listing the top 5 libraries for creating GUI on Embedded Linux. I've only mentioned one tool that renders HTML UI, the Sciter engine. It's much more compact than Webkit or Chromium. The owner of the project, Andrew Fedoniouk,最近发布了一个名为 Sciter.Lite 的新版本,它将支持嵌入式设备。查看这两个资源。

https://sciter.com/sciter-lite-is-published/

https://sciter.com/windowless-sciter-android-and-iot-devices/

演示已经在他们的 GitHub

上可用
  • sdk/bin.lnx/x64lite
  • sdk/demos.lite

您不必局限于 HTML UI,请查看我推荐的其他工具。他们都有免费版本。对于有钱的UI,我觉得HTMLUI比较容易。我的意思是,Sciter Notes doesn't look to shabby and it's just under 5Mb for Win, Linux and Mac. But the backend is C++. For more minimal hardware, you'll have to look into the C/C++ toolkits I've listed. TotalCross are planning to support Android XML 但尚未发布。所以你也可以检查它们。

哦。差点忘了。 2017 年发布了两份比较 QML 和 HTML5 的白皮书。Qt 要求您注册,所以我只给您链接,这样您无需注册就可以下载它们:)

论文 1:Qt QML v HTML5 – 实用比较

2017 年 5 月由奥地利公司 Sequality Software Engineering 发布,该公司是 Qt 合作伙伴并提供 Qt 咨询服务。

Downlink Link 1, Download Link 2

这里是 F-18 喷气式飞机自动驾驶系统的 review of the paper by a software engineer, Amir Shrestha, who provided the first download link. There is more discussion at Hacker News. There was also an interesting discussion thread in a YouTube video about the comparison. You can read the YT comment section but first search "Andrew MacAulay" and read that thread. He was the lead engineer,并曾担任过其他高级嵌入式角色。

试卷 2:Qt 还是 HTML5?百万美元的问题

Qt 顾问和开发人员 Burkhard Stubert 于 2017 年 10 月 2 日发布。

Download Link

这里是关于 Hacker News 的讨论。

我在第二篇论文中发现的一个有趣的信息是,90% 以上的家用电器都是由没有 OS 或非常小的 RTOS 的微控制器供电的。

我在写我的文章时发现的另一条有趣的信息 article, is that Micrium OS and components are now open-source under Apache 2.0. It has its own GUI toolkit written in C but it only targets Micrium OS and not embedded Linux. If developers start adopting Micrium OS (it was already quite popular in the industry and even launched in space) 也许你也可以开始研究它。