Skip to content
archshift edited this page Mar 9, 2015 · 17 revisions

An unofficial PKGBUILD of Citra is available for Arch Linux on the AUR.

Dependencies:

You'll need to download and install the following to build Citra:

  • GLFW (tested with v3.0.4)
  • Deb: You should probably build this from source. Directions are below.
  • Arch: pacman -S glfw
  • Qt
  • Deb: apt-get install qtbase5-dev or apt-get install libqt4-dev
  • Arch: pacman -S qt5 or pacman -S qt4
  • GCC v4.7+ (for C++11 support)
  • Deb: apt-get install build-essential
  • Arch: pacman -S base-devel
  • CMake
  • Deb: apt-get install cmake
  • Arch: pacman -S cmake

Building GLFW:

On Debian, install dependencies with apt-get install xorg-dev and apt-get install libglu1-mesa-dev. Then compile using these commands from a terminal:

git clone https://github.com/glfw/glfw.git
cd glfw
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install

If you're on Arch Linux, you can use pacman -S glfw instead.

Cloning Citra in Git:

git clone --recursive https://github.com/citra-emu/citra
cd citra

The --recursive option automatically clones the required Git submodules too.

Building 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 the Qt GUI).

Building with debug symbols:

cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make

Running without installing:

cd data
../build/src/citra_qt/citra-qt

Debugging:

cd data
gdb ../build/src/citra_qt/citra-qt
(gdb) run
<crash>
(gdb) bt

Clone this wiki locally