🛠️🐜 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.

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