当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
24 Star 61 Fork 66

openEuler / anbox
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
apply_SDL_patch.md 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
孙南勇 提交于 2020-09-15 20:50 . update docs/apply_SDL_patch.md.

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

$ mkdir -p /home/compile/sdl
$ cd /home/compile/sdl
$ apt-get source libsdl2-2.0-0
$ apt-get install fakeroot dpkg-dev build-essential
$ apt-get build-dep libsdl2-2.0-0
$ cd libsdl2-2.0.9+dfsg1
$ patch -p1 < /home/compile/anbox/external/libSDL/SDL_fix_Chinese_input.patch
$ patch -p1 < /home/compile/anbox/external/libSDL/SDL_fix_clipboard_crash_issuse.patch
$ patch -p1 </home/compile/anbox/external/libSDL/SDL_fix_Restore.patch
$ dpkg-buildpackage -rfakeroot -b
$ cd ..
$ dpkg -i ./*.deb
C++
1
https://gitee.com/openeuler/anbox.git
git@gitee.com:openeuler/anbox.git
openeuler
anbox
anbox
master

搜索帮助