mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 04:20:05 +00:00
Destroyed Building for Ubuntu 16.04 (markdown)
parent
76b4101d81
commit
f153a521e1
@ -1,68 +0,0 @@
|
||||
These instructions also apply for related distributions based on this Ubuntu LTS version.
|
||||
|
||||
## Step 1: Prerequisites
|
||||
|
||||
### cmake
|
||||
|
||||
The following instructions install `cmake` to `~/cmake`:
|
||||
|
||||
wget https://cmake.org/files/v3.9/cmake-3.9.0-Linux-x86_64.sh
|
||||
sh cmake-3.9.0-Linux-x86_64.sh --prefix=$HOME/cmake
|
||||
|
||||
### GCC 7
|
||||
|
||||
sudo add-apt-repository ppa:jonathonf/gcc
|
||||
sudo apt-get update
|
||||
sudo apt-get install gcc-7 g++-7
|
||||
|
||||
Remove the PPA (optional):
|
||||
|
||||
sudo add-apt-repository --remove ppa:jonathonf/gcc
|
||||
sudo apt-get update
|
||||
|
||||
### Other prerequisites
|
||||
|
||||
sudo apt-get install build-essential git libqt5opengl5-dev qtmultimedia5-dev libsdl2-dev libssl-dev qtbase5-dev wget xorg-dev
|
||||
|
||||
## Step 2: Build Citra
|
||||
|
||||
### Get Citra
|
||||
|
||||
git clone --recursive https://github.com/citra-emu/citra
|
||||
|
||||
### Compile
|
||||
|
||||
cd citra
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
export PATH=$HOME/cmake/cmake-3.9.0-Linux-x86_64/bin:$PATH
|
||||
export CC=gcc-7
|
||||
export CXX=g++-7
|
||||
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
make
|
||||
|
||||
## Step 3: Run Citra
|
||||
|
||||
./src/citra_qt/citra-qt
|
||||
|
||||
## Optional: Install new QT version
|
||||
|
||||
If you had an error while building citra-qt part (this part was added from an `AutoMoc subprocess error` when running a qt5/bin/moc command, but this may fix some other errors)
|
||||
|
||||
- Go to http://download.qt.io/official_releases/qt/ and get the latest linux version link (this guide used 5.11.1 at the time) and run the following commands:
|
||||
|
||||
wget link_to_latest_linux_official_release
|
||||
chmod +x qt-opensource-linux-x64-x.x.x.run
|
||||
./qt-opensource-linux-x64-x.x.x.run
|
||||
|
||||
- Install selecting only `Desktop gcc` option besides the `Tools` one that you can't remove
|
||||
- Add those exports to your .bashrc file (change QTDIR variable if installing another version)
|
||||
|
||||
export QTDIR="$HOME/Qt5.11.1/5.11.1/gcc_64"
|
||||
export PATH="$QTDIR/bin:$PATH"
|
||||
export LD_LIBRARY_PATH="$QTDIR/lib:$LD_LIBRARY_PATH"
|
||||
|
||||
- Reload your .bashrc file and try building again from the start.
|
Loading…
Reference in New Issue
Block a user