mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 14:10:05 +00:00
Updated Linux Build (markdown)
parent
f5de687393
commit
46dcb4fd7c
@ -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
|
||||
```
|
Loading…
Reference in New Issue
Block a user