Building for Ubuntu 14.04 | Citra | Nintendo 3DS Emulator
Read First!

The below wiki article is based on user submitted content.
Please verify all hyperlinks and terminal commands below!

See a mistake? Want to contribute? Edit this article on Github

Building for Ubuntu 14.04

These instructions also apply for related distributions based on this Ubuntu LTS version. We strongly recommend updating to Ubuntu 16.04 LTS instead.

Step 1: Prerequisites

GCC

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5

libstdc++

sudo apt-get install lib32stdc++6

xorg-dev

sudo apt-get install xorg-dev

Qt5

sudo apt-get install qt5-default libqt5opengl5-dev

cmake

The following instructions install cmake to ~/cmake:

wget https://cmake.org/files/v3.5/cmake-3.5.1-Linux-x86_64.sh
sh cmake-3.5.1-Linux-x86_64.sh --prefix=~/cmake

SDL2

wget http://libsdl.org/release/SDL2-2.0.4.tar.gz -O - | tar xz
cd SDL2-2.0.4
./configure
make
sudo make install

Step 2: Build Citra

Get Citra

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

Compile

cd citra
mkdir build
cd build
export CC=gcc-5
export CXX=g++-5
~/cmake/bin/cmake .. -DCMAKE_BUILD_TYPE=Release
make

Step 3: Run Citra

./src/citra_qt/citra-qt