From 02ebba67ced3603394b756c7ffdea5ec0a7797ab Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 19 May 2014 20:08:59 -0700 Subject: [PATCH] Created Linux Build (markdown) --- Linux-Build.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Linux-Build.md diff --git a/Linux-Build.md b/Linux-Build.md new file mode 100644 index 0000000..ba58c04 --- /dev/null +++ b/Linux-Build.md @@ -0,0 +1,47 @@ +## 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) + * Requires X11 and OpenGL header packages installed, e.g. xorg-dev and libglu1-mesa-dev on Ubuntu +* [Qt v4](http://qt-project.org/downloads) (tested with version 4.8.5. + * Note... v5 will be supported soon +* GCC v4.7+ (for C++11 support) +* [CMake](http://www.cmake.org/) + +## 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
\ No newline at end of file