🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
2.4 KiB

  1. DirectFB
  2. ========
  3. Supports:
  4. - Hardware YUV overlays
  5. - OpenGL - software only
  6. - 2D/3D accelerations (depends on directfb driver)
  7. - multiple displays
  8. - windows
  9. What you need:
  10. * DirectFB 1.0.1, 1.2.x, 1.3.0
  11. * Kernel-Framebuffer support: required: vesafb, radeonfb ....
  12. * Mesa 7.0.x - optional for OpenGL
  13. The `/etc/directfbrc` file should contain the following lines to make
  14. your joystick work and avoid crashes:
  15. ```
  16. disable-module=joystick
  17. disable-module=cle266
  18. disable-module=cyber5k
  19. no-linux-input-grab
  20. ```
  21. To disable to use x11 backend when DISPLAY variable is found use
  22. ```
  23. export SDL_DIRECTFB_X11_CHECK=0
  24. ```
  25. To disable the use of linux input devices, i.e. multimice/multikeyboard support,
  26. use
  27. ```
  28. export SDL_DIRECTFB_LINUX_INPUT=0
  29. ```
  30. To use hardware accelerated YUV-overlays for YUV-textures, use:
  31. ```
  32. export SDL_DIRECTFB_YUV_DIRECT=1
  33. ```
  34. This is disabled by default. It will only support one
  35. YUV texture, namely the first. Every other YUV texture will be
  36. rendered in software.
  37. In addition, you may use (directfb-1.2.x)
  38. ```
  39. export SDL_DIRECTFB_YUV_UNDERLAY=1
  40. ```
  41. to make the YUV texture an underlay. This will make the cursor to
  42. be shown.
  43. Simple Window Manager
  44. =====================
  45. The driver has support for a very, very basic window manager you may
  46. want to use when running with `wm=default`. Use
  47. ```
  48. export SDL_DIRECTFB_WM=1
  49. ```
  50. to enable basic window borders. In order to have the window title rendered,
  51. you need to have the following font installed:
  52. ```
  53. /usr/share/fonts/truetype/freefont/FreeSans.ttf
  54. ```
  55. OpenGL Support
  56. ==============
  57. The following instructions will give you *software* OpenGL. However this
  58. works at least on all directfb supported platforms.
  59. As of this writing 20100802 you need to pull Mesa from git and do the following:
  60. ```
  61. git clone git://anongit.freedesktop.org/git/mesa/mesa
  62. cd mesa
  63. git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a
  64. ```
  65. Edit `configs/linux-directfb` so that the Directories-section looks like this:
  66. ```
  67. # Directories
  68. SRC_DIRS = mesa glu
  69. GLU_DIRS = sgi
  70. DRIVER_DIRS = directfb
  71. PROGRAM_DIRS =
  72. ```
  73. Then do the following:
  74. ```
  75. make linux-directfb
  76. make
  77. echo Installing - please enter sudo pw.
  78. sudo make install INSTALL_DIR=/usr/local/dfb_GL
  79. cd src/mesa/drivers/directfb
  80. make
  81. sudo make install INSTALL_DIR=/usr/local/dfb_GL
  82. ```
  83. To run the SDL - testprograms:
  84. ```
  85. export SDL_VIDEODRIVER=directfb
  86. export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
  87. export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
  88. ./testgl
  89. ```