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

87 lines
3.6 KiB

  1. Linux
  2. ================================================================================
  3. By default SDL will only link against glibc, the rest of the features will be
  4. enabled dynamically at runtime depending on the available features on the target
  5. system. So, for example if you built SDL with Xinerama support and the target
  6. system does not have the Xinerama libraries installed, it will be disabled
  7. at runtime, and you won't get a missing library error, at least with the
  8. default configuration parameters.
  9. ================================================================================
  10. Build Dependencies
  11. ================================================================================
  12. Ubuntu 13.04, all available features enabled:
  13. sudo apt-get install build-essential mercurial make cmake autoconf automake \
  14. libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
  15. libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
  16. libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
  17. libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
  18. fcitx-libs-dev libsamplerate0-dev libsndio-dev
  19. Ubuntu 16.04+ can also add "libwayland-dev libxkbcommon-dev wayland-protocols"
  20. to that command line for Wayland support.
  21. NOTES:
  22. - This includes all the audio targets except arts, because Ubuntu pulled the
  23. artsc0-dev package, but in theory SDL still supports it.
  24. - libsamplerate0-dev lets SDL optionally link to libresamplerate at runtime
  25. for higher-quality audio resampling. SDL will work without it if the library
  26. is missing, so it's safe to build in support even if the end user doesn't
  27. have this library installed.
  28. - DirectFB isn't included because the configure script (currently) fails to find
  29. it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the
  30. configure script to include DirectFB support. Send patches. :)
  31. ================================================================================
  32. Joystick does not work
  33. ================================================================================
  34. If you compiled or are using a version of SDL with udev support (and you should!)
  35. there's a few issues that may cause SDL to fail to detect your joystick. To
  36. debug this, start by installing the evtest utility. On Ubuntu/Debian:
  37. sudo apt-get install evtest
  38. Then run:
  39. sudo evtest
  40. You'll hopefully see your joystick listed along with a name like "/dev/input/eventXX"
  41. Now run:
  42. cat /dev/input/event/XX
  43. If you get a permission error, you need to set a udev rule to change the mode of
  44. your device (see below)
  45. Also, try:
  46. sudo udevadm info --query=all --name=input/eventXX
  47. If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it,
  48. you need to set up an udev rule to force this variable.
  49. A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks
  50. like:
  51. SUBSYSTEM=="input", ATTRS{idProduct}=="0763", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
  52. SUBSYSTEM=="input", ATTRS{idProduct}=="0764", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
  53. You can set up similar rules for your device by changing the values listed in
  54. idProduct and idVendor. To obtain these values, try:
  55. sudo udevadm info -a --name=input/eventXX | grep idVendor
  56. sudo udevadm info -a --name=input/eventXX | grep idProduct
  57. If multiple values come up for each of these, the one you want is the first one of each.
  58. On other systems which ship with an older udev (such as CentOS), you may need
  59. to set up a rule such as:
  60. SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ID_INPUT_JOYSTICK}="1"