README-directfb.txt 2.6 KB

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