简体   繁体   English

如何使用 X window 为 Linux 操作系统界面创建 GUI?

[英]How to use X window to create a GUI for Linux OS interface?

Can you provide me a surface level knowledge about this.你能给我提供这方面的表面知识吗?

How can I use linux's latest kernel and X windows GUI to create my own Embedded OS interface?如何使用 linux 最新的 kernel 和 X windows GUI 创建自己的嵌入式操作系统界面?

If you want to learn to make your own distribution, look at linux from scratch.如果您想学习制作自己的发行版,请从头开始查看 linux。 A pre-existing embedded distribution may be more what you are looking for.预先存在的嵌入式发行版可能更符合您的要求。 Some are uclinux-dist, openembedded, poky, ltib, buildroot.有些是 uclinux-dist、openembedded、poky、ltib、buildroot。

When you say "small" what do you mean by small?当您说“小”时,您所说的小是什么意思? Small means reduced functionality.小意味着减少功能。

  1. The smallest is writing your own code that writes to the frame buffer.最小的是编写您自己的写入帧缓冲区的代码。 Your GUI may look like space invaders.您的 GUI 可能看起来像太空入侵者。
  2. Bigger would be to use a direct to framebuffer toolkit like Nano-X更大的是使用像 Nano-X 这样的直接帧缓冲工具包
  3. Bigger again is DirectFB.更大的是 DirectFB。
  4. Bigger again is a high level toolkit (GTK or Qt) on top of DirectFB更大的又是一个基于 DirectFB 的高级工具包(GTK 或 Qt)
  5. And the biggest is X with a window manager and high level toolkit.最大的是带有 window 管理器和高级工具包的 X。

Having "learned" already, I would use whatever comes with the platform you are developing on.已经“学习”了,我会使用您正在开发的平台附带的任何东西。

End Dump.结束转储。

First suggestion, code HTML and use a browser.第一个建议,编码 HTML 并使用浏览器。 All of the heavy lifting will be done for you.所有繁重的工作都将为您完成。 More to the point, most embedded OSen do not live on systems with keyboards, video, and mice.更重要的是,大多数嵌入式 OSen 并不存在于带有键盘、视频和鼠标的系统上。 Exporting everything to a remote web client though a web server is the standard way of doing things.通过 web 服务器将所有内容导出到远程 web 客户端是标准的做事方式。

Second suggestion, use a high level toolkit, like Qt, KDE, or Gnome.第二个建议,使用高级工具包,如 Qt、KDE 或 Gnome。 Coding in low level X is painful.在低级 X 中编码是痛苦的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM