From 730b52573a4ac2bb89cb256f730fc4b0b0f78ce1 Mon Sep 17 00:00:00 2001 From: wang rong Date: Mon, 22 Jun 2020 17:50:08 +0800 Subject: [PATCH] add apply_SDL_patch.md doc --- docs/apply_SDL_patch.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/apply_SDL_patch.md diff --git a/docs/apply_SDL_patch.md b/docs/apply_SDL_patch.md new file mode 100644 index 00000000..48c26705 --- /dev/null +++ b/docs/apply_SDL_patch.md @@ -0,0 +1,20 @@ +# Apply SDL patch + +There are some bugs we have to change sdl library or we found it is a better to fix it inside sdl instead of fixing it in anbox. +This patches are here: _anbox/external/libSDL/_ . You can download sdl library(refer to section "Download SDL") to apply these patches(refer to section "Apply SDL patch") if needed. + +## Download SDL + +Currently, anbox based on SDL2, so our patches are based on SDL2. You can download the souce package here: + _https://www.libsdl.org/release/SDL2-2.0.9.tar.gz_ + +## Apply SDL patch + +``` +1. Unzip the files you downloaded +2. cd /libsdl2-2.0.9+dfsg1 +3. patch -p1 < /.patch +4. dpkg-buildpackage -rfakeroot -b +5. cd .. +6. dpkg -i ./*.deb +``` \ No newline at end of file -- GitLab