This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:sdl2 [2022/09/07 02:18] nick |
products:sbc:common:applications:sdl2 [2022/10/25 06:33] (current) nick |
||
---|---|---|---|
Line 12: | Line 12: | ||
===== Install SDL2 Packages ===== | ===== Install SDL2 Packages ===== | ||
- | ```sh | + | ```shell |
- | $ sudo apt update | + | sudo apt update |
- | $ sudo apt upgrade | + | sudo apt upgrade |
- | $ sudo apt install libsdl2-2.0-0 libsdl2-dev | + | sudo apt install libsdl2-2.0-0 libsdl2-dev |
``` | ``` | ||
Line 22: | Line 22: | ||
==== Get SDL2 Source Code ==== | ==== Get SDL2 Source Code ==== | ||
- | ```sh | + | ```shell |
- | $ cd /tmp | + | cd /tmp |
- | $ git clone https:// | + | git clone https:// |
- | $ git checkout release-2.0.20 | + | cd SDL |
- | $ cd SDL | + | git checkout release-2.0.20 |
``` | ``` | ||
==== Compile Test Examples ==== | ==== Compile Test Examples ==== | ||
- | ```sh | + | ```shell |
- | $ cd test | + | cd test |
- | $ ./ | + | ./ |
- | $ make | + | make |
``` | ``` | ||