From 0cbd17403d65ec1485ff64d8fa9508bc46490569 Mon Sep 17 00:00:00 2001 From: bearoso Date: Sun, 17 Mar 2019 19:12:04 -0500 Subject: [PATCH] Updated Compiling (markdown) --- Compiling.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Compiling.md b/Compiling.md index f10157f..25af94d 100644 --- a/Compiling.md +++ b/Compiling.md @@ -39,4 +39,42 @@ NOTE: Unicode support requires a special zlib build - see the end of the zlib en Load the Snes9x solution. Select the desired configuration and build. The Release configuration may build significantly slower than Debug. - Then you can run it. \ No newline at end of file + Then you can run it. + +## GTK + +Requirements: +- GTK 3.20+ or GTK 2.16+ and all dependencies +- SDL 2.0 +- X11, even if only using Wayland +- libepoxy +- meson + +Optional: +- glslang for slang shader support +- PulseAudio +- ALSA +- OSS +- PortAudio +- Wayland +- libpng +- minizip +- zlib + +Building with meson: +1. Change to the `gtk` directory and run meson: +``` +snes9x/gtk$ meson build --prefix=/usr --buildtype=release --strip +``` +A list of options can be found in `meson_options.txt`. Most will be autodetected. If you wish to use GTK 2 or enable dangerous hacks in the UI, those must be done by supplying the respective option. + +2. Build with ninja: +``` +snes9x/gtk/build$ ninja +``` + +3. Install: +``` +snes9x/gtk/build$ sudo ninja install +``` +