INSTALL.txt
author Sam Lantinga <slouken@libsdl.org>
Wed, 02 Aug 2017 10:22:48 -0700
changeset 11175 cbc6a8a5b701
parent 10893 54480745c410
permissions -rw-r--r--
Fixed bug 3690 - SDL2 KMS/DRM render context support

Manuel

The attached patch adds support for KMS/DRM context graphics.

It builds with no problem on X86_64 GNU/Linux systems, provided the needed libraries are present, and on ARM GNU/Linux systems that have KMS/DRM support and a GLES2 implementation.
Tested on Raspberry Pi: KMS/DRM is what the Raspberry Pi will use as default in the near future, once the propietary DispmanX API by Broadcom is overtaken by open graphics stack, it's possible to boot current Raspbian system in KMS mode by adding "dtoverlay=vc4-kms-v3d" to config.txt on Raspbian's boot partition.
X86 systems use KMS right away in every current GNU/Linux system.

Simple build instructions:

$./autogen.sh
$./configure --enable-video-kmsdrm
$make
     1 
     2 To compile and install SDL:
     3 
     4     1.  Windows with Visual Studio:
     5         * Read VisualC.html
     6 
     7         Windows with gcc, either native or cross-compiling:
     8         * Read the FAQ at https://wiki.libsdl.org/moin.fcg/FAQWindows
     9         * Run './configure; make; make install'
    10 
    11         Mac OS X with Xcode:
    12         * Read docs/README-macosx.md
    13 
    14         Mac OS X from the command line:
    15         * Run './configure; make; make install'
    16 
    17         Linux and other UNIX systems:
    18         * Run './configure; make; make install'
    19 
    20         Android:
    21         * Read docs/README-android.md
    22 
    23         iOS:
    24         * Read docs/README-ios.md
    25 
    26         Using Cmake:
    27         * Read docs/README-cmake.md
    28 
    29     2.  Look at the example programs in ./test, and check out the online
    30         documentation at https://wiki.libsdl.org/
    31 
    32     3.  Join the SDL developer mailing list by sending E-mail to
    33     	sdl-request@libsdl.org
    34         and put "subscribe" in the subject of the message.
    35 
    36         Or alternatively you can use the web interface:
    37             https://www.libsdl.org/mailing-list.php
    38 
    39 That's it!
    40 Sam Lantinga <slouken@libsdl.org>