mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 11:15:43 +01:00
GCC 10 and other misceallaneous updates/fixes
parent
3da01e338f
commit
892ebf7ff0
@ -4,14 +4,13 @@
|
||||
|
||||
You'll need to download and install the following to build yuzu:
|
||||
|
||||
* GCC v7+ (for C++17 support) & misc
|
||||
* GCC v10+ (for C++20 support) & misc
|
||||
* [CMake](https://www.cmake.org/) 3.15+
|
||||
* [SDL2](https://www.libsdl.org/download-2.0.php)
|
||||
* [Qt](https://qt-project.org/downloads)
|
||||
* [Python2](https://www.python.org/download/releases/2.7/) 2.7
|
||||
* [FFmpeg](https://ffmpeg.org/)
|
||||
|
||||
All other dependencies will be downloaded by [conan](https://conan.io/downloads.html) if needed:
|
||||
All other dependencies will be downloaded by [Conan](https://conan.io/downloads.html) if needed:
|
||||
|
||||
* [Boost](https://www.boost.org/users/download/)
|
||||
* [Catch2](https://github.com/catchorg/Catch2)
|
||||
@ -25,14 +24,19 @@ All other dependencies will be downloaded by [conan](https://conan.io/downloads.
|
||||
|
||||
| Distro | Commands
|
||||
| --------------- | ----------------
|
||||
| Arch | `sudo pacman -S --needed git base-devel ninja cmake sdl2 qt5 python2 python-pip boost catch2 ffmpeg fmt libzip lz4 mbedtls nlohmann-json openssl opus zlib zstd && pip install --user conan`
|
||||
| Ubuntu / Mint | `sudo apt-get install git build-essential ninja-build cmake libsdl2-dev qtbase5-dev libqt5opengl5-dev qtwebengine5-dev qtbase5-private-dev python python3-pip libboost-dev libboost-context-dev libavcodec-dev libavutil-dev libswscale-dev libzip-dev liblz4-dev libmbedtls-dev libssl-dev libopus-dev zlib1g-dev libzstd-dev && pip3 install --user conan`
|
||||
| Manjaro / Arch | `sudo pacman -Syu --needed git base-devel ninja cmake sdl2 qt5 python2 python-pip boost catch2 ffmpeg fmt libzip lz4 mbedtls nlohmann-json openssl opus zlib zstd && pip install --user conan`
|
||||
| Ubuntu / Linux Mint | `sudo apt-get install gcc-10 g++-10 git build-essential ninja-build cmake libsdl2-dev qtbase5-dev libqt5opengl5-dev qtwebengine5-dev qtbase5-private-dev python python3-pip libboost-dev libboost-context-dev libavcodec-dev libavutil-dev libswscale-dev libzip-dev liblz4-dev libmbedtls-dev libssl-dev libopus-dev zlib1g-dev libzstd-dev && pip3 install --user conan`
|
||||
| Fedora | `sudo dnf install git gcc ninja-build cmake make libzip-tools SDL2-devel qt5-qtbase-devel qt5-qtbase-private-devel qt5-qtwebengine-devel qt5-linguist python2 python-pip boost-devel fmt-devel libzip-devel libzstd-devel lz4-devel mbedtls-devel openssl-devel opus-devel zlib-devel ffmpeg-devel pulseaudio-libs-devel alsa-lib-devel jack-audio-connection-kit-devel && pip install --user conan`
|
||||
| Gentoo | `emerge dev-vcs/git =sys-devel/gcc-7.1.0 dev-util/ninja dev-util/cmake media-libs/libsdl2 dev-qt/qtcore dev-qt/qtopengl && pip install --user conan`
|
||||
| Gentoo (needs updated) | `emerge dev-vcs/git =sys-devel/gcc-7.1.0 dev-util/ninja dev-util/cmake media-libs/libsdl2 dev-qt/qtcore dev-qt/qtopengl && pip install --user conan`
|
||||
|
||||
After installing conan, `$HOME/.local/bin` needs to be included in the `PATH` variable. Check your `$HOME/.profile` and `$HOME/.bashrc` files, if `PATH=$HOME/.local/bin:$PATH` is not present, append that line to one of either file, then log out and log back in. Fedora and Ubuntu by default already have this covered.
|
||||
After installing Conan, `$HOME/.local/bin` needs to be included in the `PATH` variable. Check your `$HOME/.profile` and `$HOME/.bashrc` files, if `PATH=$HOME/.local/bin:$PATH` is not present, append that line to one of either file, then log out and log back in. Fedora and Ubuntu by default already have this covered.
|
||||
|
||||
Fedora users need to setup [RPM Fusion](https://rpmfusion.org/Configuration) (free) to install FFmpeg dependencies.
|
||||
Ubuntu and Linux Mint users need to manually specify building with GCC 10. This can be done by adding the parameters `-DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10` when running CMake. i.e.
|
||||
```
|
||||
cmake .. -GNinja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10
|
||||
```
|
||||
|
||||
Fedora users need to set up [RPM Fusion](https://rpmfusion.org/Configuration) (free) to install FFmpeg dependencies.
|
||||
|
||||
### Cloning yuzu with Git
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user