From 46dcb4fd7ca4ed60b0a72adcef273a34d2623929 Mon Sep 17 00:00:00 2001 From: archshift Date: Sat, 6 Sep 2014 13:02:48 -0700 Subject: [PATCH] Updated Linux Build (markdown) --- Linux-Build.md => Linux Build.md | 126 ++++++++++++++++--------------- 1 file changed, 64 insertions(+), 62 deletions(-) rename Linux-Build.md => Linux Build.md (90%) diff --git a/Linux-Build.md b/Linux Build.md similarity index 90% rename from Linux-Build.md rename to Linux Build.md index ed4186e..300142c 100644 --- a/Linux-Build.md +++ b/Linux Build.md @@ -1,63 +1,65 @@ -### Dependencies: - -You'll need to download and install the following to build Citra: - -* [GLFW](http://www.glfw.org/download.html) (tested with v3.0.4) - * You should probably build this from source. Directions are below. - * Deb: Requires `apt-get install xorg-dev` and `apt-get install libglu1-mesa-dev` -* [Qt v4](http://qt-project.org/downloads) - * Deb: `apt-get install libqt4-dev` or `apt-get install libqt5-dev` - * Arch: `pacman -S qt4` or `pacman -S qt5` -* GCC v4.7+ (for C++11 support) - * Deb: `apt-get install build-essential` - * Arch: `pacman -S gcc`, `pacman -S make` -* [CMake](http://www.cmake.org/) - * Deb: `apt-get install cmake` - * Arch: `pacman -S cmake` - -### Build GLFW: - -Works by calling these commands from a terminal: - -``` -git clone https://github.com/glfw/glfw.git -cd glfw -mkdir build && cd build -cmake .. -make -sudo make install -``` - -### Build Citra: - -``` -mkdir build -cd build -cmake .. -make -sudo make install (currently doesn't work, needs to be fixed) -``` -Optionally, you can use "cmake -i .." to adjust various options (e.g. disable Qt4 GUI). - -### Building with debug symbols: - -``` -cmake .. -DCMAKE_BUILD_TYPE=Debug -make -``` - -### Running without installing: - -``` -cd data -../build/src/citra_qt/citra-qt -``` - -### Debugging: - -``` -cd data -gdb ../build/src/citra_qt/citra-qt -(gdb) run -(gdb) bt +### Dependencies: + +You'll need to download and install the following to build Citra: + +* [GLFW](http://www.glfw.org/download.html) (tested with v3.0.4) + * You should probably build this from source. Directions are below. + * Deb: Requires `apt-get install xorg-dev` and `apt-get install libglu1-mesa-dev` +* [Qt v4](http://qt-project.org/downloads) + * Deb: `apt-get install libqt4-dev` or `apt-get install libqt5-dev` + * Arch: `pacman -S qt4` or `pacman -S qt5` +* GCC v4.7+ (for C++11 support) + * Deb: `apt-get install build-essential` + * Arch: `pacman -S gcc`, `pacman -S make` +* [CMake](http://www.cmake.org/) + * Deb: `apt-get install cmake` + * Arch: `pacman -S cmake` + +### Build GLFW: + +Works by calling these commands from a terminal: + +``` +git clone https://github.com/glfw/glfw.git +cd glfw +mkdir build && cd build +cmake .. +make +sudo make install +``` + +If you're on Arch Linux, you can use `pacman -S glfw` instead. + +### Build Citra: + +``` +mkdir build +cd build +cmake .. +make +sudo make install (currently doesn't work, needs to be fixed) +``` +Optionally, you can use "cmake -i .." to adjust various options (e.g. disable Qt4 GUI). + +### Building with debug symbols: + +``` +cmake .. -DCMAKE_BUILD_TYPE=Debug +make +``` + +### Running without installing: + +``` +cd data +../build/src/citra_qt/citra-qt +``` + +### Debugging: + +``` +cd data +gdb ../build/src/citra_qt/citra-qt +(gdb) run +(gdb) bt ``` \ No newline at end of file