How to develop a DirectFB app without leaving X.11 environment

后端 未结 6 1516
难免孤独
难免孤独 2020-12-09 11:34

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.

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 12:08

    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.

提交回复
热议问题