为嵌入式板提供 GUI 层
我已将 uCLinux 移植到嵌入式板上,并希望为其提供 GUI 层。
实际上我的板由 ARM 处理器和其他外围设备组成 触摸屏显示器。
其实这是我做的一块小嵌入式板。
我想显示各种 GUI 小部件,如按钮、滚动条等。我 想要使用QT来达到这个目的。
但我不知道如何继续,如何使 QT GUI 层 与内核交互
那么,你能告诉我如何让它与 uClinux 内核对话吗? 意味着我如何将它连接到内核。
谢谢
I have ported uCLinux on an embedded board and want to provide it a GUI
layer.
Actually my board is consist of an ARM processor and other peripherals and
a touch screen display.
Actually this is a small embedded board which I have made .
I want to display various gui widgets like buttons , scrollbars etc . I
want to use QT for this purpose.
But I don't know how to proceed , how I can make the QT GUI layer to
interact with kernel
So , can you tell me how can I make it to talk to the uClinux kernel, I
mean how can I interface it to the kernel.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您使用嵌入式 Linux 构建系统。基于 uClinux 的系统的历史版本称为 uClinux-dist,但您也可以使用其他构建系统,例如 Buildroot。它已经集成了Qt,所以你只需要选择一个选项,运行make,你就拥有了一个Busybox+Qt系统。
从图形方面来看,Qt 可以直接使用内核帧缓冲区,因此只要您的内核具有适合您平台的帧缓冲区驱动程序,就可以了。对于输入端(键盘、鼠标、触摸屏等),Qt 使用 Linux 输入子系统,因此如果您的输入设备受内核支持,Qt 将能够直接使用它们,无需任何额外操作。
I'd suggest you to use an embedded Linux build system. The historical one for systems based on uClinux is called uClinux-dist, but you can also use other build systems such as Buildroot. It already integrates Qt, so you'll only have to select an option, run make, and you'll have a Busybox+Qt system ready.
From the graphical side, Qt can directly use the kernel framebuffer, so as soon as your kernel has the framebuffer driver for your platform, you're ok. For the input side (keyboard, mice, touchscreen, etc.), Qt uses the Linux input subsystem, so if your input devices are supported by the kernel, Qt will be able to use them directly, with nothing additional needed.
看看 LVGL。它很容易移植并附带许多小部件。
Take a look at LVGL. It's easy to port and comes with many widgets.