mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 16:20:06 +00:00
Updated Linux Build (markdown)
parent
f5de687393
commit
46dcb4fd7c
@ -1,63 +1,65 @@
|
|||||||
### Dependencies:
|
### Dependencies:
|
||||||
|
|
||||||
You'll need to download and install the following to build Citra:
|
You'll need to download and install the following to build Citra:
|
||||||
|
|
||||||
* [GLFW](http://www.glfw.org/download.html) (tested with v3.0.4)
|
* [GLFW](http://www.glfw.org/download.html) (tested with v3.0.4)
|
||||||
* You should probably build this from source. Directions are below.
|
* You should probably build this from source. Directions are below.
|
||||||
* Deb: Requires `apt-get install xorg-dev` and `apt-get install libglu1-mesa-dev`
|
* Deb: Requires `apt-get install xorg-dev` and `apt-get install libglu1-mesa-dev`
|
||||||
* [Qt v4](http://qt-project.org/downloads)
|
* [Qt v4](http://qt-project.org/downloads)
|
||||||
* Deb: `apt-get install libqt4-dev` or `apt-get install libqt5-dev`
|
* Deb: `apt-get install libqt4-dev` or `apt-get install libqt5-dev`
|
||||||
* Arch: `pacman -S qt4` or `pacman -S qt5`
|
* Arch: `pacman -S qt4` or `pacman -S qt5`
|
||||||
* GCC v4.7+ (for C++11 support)
|
* GCC v4.7+ (for C++11 support)
|
||||||
* Deb: `apt-get install build-essential`
|
* Deb: `apt-get install build-essential`
|
||||||
* Arch: `pacman -S gcc`, `pacman -S make`
|
* Arch: `pacman -S gcc`, `pacman -S make`
|
||||||
* [CMake](http://www.cmake.org/)
|
* [CMake](http://www.cmake.org/)
|
||||||
* Deb: `apt-get install cmake`
|
* Deb: `apt-get install cmake`
|
||||||
* Arch: `pacman -S cmake`
|
* Arch: `pacman -S cmake`
|
||||||
|
|
||||||
### Build GLFW:
|
### Build GLFW:
|
||||||
|
|
||||||
Works by calling these commands from a terminal:
|
Works by calling these commands from a terminal:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/glfw/glfw.git
|
git clone https://github.com/glfw/glfw.git
|
||||||
cd glfw
|
cd glfw
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build Citra:
|
If you're on Arch Linux, you can use `pacman -S glfw` instead.
|
||||||
|
|
||||||
```
|
### Build Citra:
|
||||||
mkdir build
|
|
||||||
cd build
|
```
|
||||||
cmake ..
|
mkdir build
|
||||||
make
|
cd build
|
||||||
sudo make install (currently doesn't work, needs to be fixed)
|
cmake ..
|
||||||
```
|
make
|
||||||
Optionally, you can use "cmake -i .." to adjust various options (e.g. disable Qt4 GUI).
|
sudo make install (currently doesn't work, needs to be fixed)
|
||||||
|
```
|
||||||
### Building with debug symbols:
|
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
|
```
|
||||||
```
|
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
make
|
||||||
### Running without installing:
|
```
|
||||||
|
|
||||||
```
|
### Running without installing:
|
||||||
cd data
|
|
||||||
../build/src/citra_qt/citra-qt
|
```
|
||||||
```
|
cd data
|
||||||
|
../build/src/citra_qt/citra-qt
|
||||||
### Debugging:
|
```
|
||||||
|
|
||||||
```
|
### Debugging:
|
||||||
cd data
|
|
||||||
gdb ../build/src/citra_qt/citra-qt
|
```
|
||||||
(gdb) run
|
cd data
|
||||||
(gdb) bt
|
gdb ../build/src/citra_qt/citra-qt
|
||||||
|
(gdb) run
|
||||||
|
(gdb) bt
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user