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