From 030c0174e45d1749a2e6fbc3f780dfd02a7b7015 Mon Sep 17 00:00:00 2001 From: cobalt2727 <60624944+cobalt2727@users.noreply.github.com> Date: Tue, 27 Sep 2022 02:12:44 -0400 Subject: [PATCH] only install necessary submodules to save space --- Building-for-Linux.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Building-for-Linux.md b/Building-for-Linux.md index 498bf4e..f41d993 100644 --- a/Building-for-Linux.md +++ b/Building-for-Linux.md @@ -2,7 +2,7 @@ * `git` * `curl` * `cmake`, version 3.13 or newer for Dolphin 5.0-16995 and newer. -* C++ compiler, with C++20 support for Dolphin 5.0-17123 and newer. +* C++ compiler such as `gcc`, with C++20 support for Dolphin 5.0-17123 and newer. ## Additional Dependencies Examples @@ -16,7 +16,7 @@ sudo apt install build-essential git cmake ffmpeg libavcodec-dev libavformat-dev sudo apt install build-essential git cmake ffmpeg libavcodec-dev libevdev-dev libusb-1.0-0-dev libavformat-dev libswscale-dev libsfml-dev libminiupnpc-dev libmbedtls-dev curl libhidapi-dev libpangocairo-1.0-0 libgtk2.0-dev libbluetooth-dev qtchooser qmake6 libudev-dev portaudio19-dev libasound2-dev libzypp-dev libcubeb-dev libfmt-dev llvm-dev ``` -### Chrome/Chromium OS (via Chromebrew): +### Chrome/Chromium OS (via [Chromebrew](https://github.com/chromebrew/chromebrew)): ``` crew install git cmake qtbase ffmpeg libfmt pugixml enet pkgconf buildessential sommelier qtwayland ``` @@ -26,8 +26,11 @@ crew install git cmake qtbase ffmpeg libfmt pugixml enet pkgconf buildessential 2. `cd dolphin` ## Add necessary submodules -1. `git submodule update --init` -2. `git pull --recurse-submodules` +1. `git submodule update --init Externals/mGBA` +2. `git submodule update --init Externals/spirv_cross` +3. `git submodule update --init Externals/zlib-ng` +4. `git submodule update --init Externals/libspng` +5. `git pull --recurse-submodules` ## Building ### Global Build (if unsure, use this option) @@ -93,5 +96,5 @@ On some distributions of Linux, package maintainers provide unmodified builds of ### Troubleshooting -- Ubuntu 18.04 users will not have a working emulated Wii Remote cursor. To fix this, install `gcc-11` from [this PPA](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test) and instead of `cmake ..` type `cmake .. -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11` during the build process. This may become necessary in the in the long term anyway to solve issues for anyone still building on 18.04 in the future. +- Ubuntu 18.04 users must install `gcc-11` from [this PPA](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test) and then instead of `cmake ..` type `cmake .. -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11` during the build process. - Whenever QT5 support is eventually dropped, the proper QT6 dependencies will need to be installed from source or from a repo (such as [this PPA for outdated Ubuntu releases](https://launchpad.net/~okirby/+archive/ubuntu/qt6-backports)). \ No newline at end of file