如何开发DirectFB应用程序而不离开X.11环境 [英] How to develop a DirectFB app without leaving X.11 environment
问题描述
我想为一个嵌入式平台开发一个GUI应用程序,没有任何窗口,我正在使用DirectFB,它非常适合我的需要。
由于嵌入式开发不是那么强大,我真的想尝试在我自己的Ubuntu桌面上开发。问题是Framebuffer与X.org冲突,导致我离开整个桌面,并关闭X.org只是为了看到我的更改的结果。
有好的framebuffer模拟器,以满足我的需要? Qt有一个名为QVFb,但它只适用于开发Qt应用程序,并且DirectFB的VNC后端总是崩溃。
那么,任何想法? >
DirectFB有一个X11后端。
$ sudo apt- get install libdirectfb-extra#for Debian和Ubuntu,无论如何
$ cat〜/ .directfbrc
system = x11
force-windowed
此外,DirectFB有一个SDL后端,而SDL有一个X11后端。此外,SDL有一个GGI后端,而GGI有一个X后端。这是有点迂回,但它应该工作:)
我测试了它
$ SDL_VIDEODRIVER = directfb ffplay some_movie.avi
得到了一个不错的640x480窗口,媒体播放和DirectFB处理分层和输入,所以我相信这个工作。 p>
I'm trying to develop a GUI application for an embedded platform, without any windowing whatsoever and I'm doing that with DirectFB, and it suits my needs very fine.
Since the embedded I develop for is not that powerful, I would really like to try to develop on my own Ubuntu desktop. The problem is Framebuffer is conflicting with X.org causing me to leave the whole desktop, and shutdown X.org just to see the result of my changes.
Is there a good framebuffer simulator that suits my needs? Qt has one, called QVFb, but it only works for developing Qt apps, and the VNC back-end of DirectFB always crash.
So, any ideas?
DirectFB has a X11 backend.
$ sudo apt-get install libdirectfb-extra # for Debian and Ubuntu, anyhow $ cat ~/.directfbrc system=x11 force-windowed
Also, DirectFB has a SDL backend, and SDL has a X11 backend. Also, SDL has a GGI backend, and GGI has an X backend. That's a bit circuitous, but it should work :)
I tested it with
$ SDL_VIDEODRIVER=directfb ffplay some_movie.avi
and got a nice 640x480 window with media playing and DirectFB handling layering and input, so I'm sure this works.
这篇关于如何开发DirectFB应用程序而不离开X.11环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!