mirror-chatterino2/BUILDING_ON_LINUX.md
James Upjohn d2b89f028b
feat: improve @Mm2PL's CI splitting work (#3631)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: James Upjohn <jammehcow@jammehcow.co.nz>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: qooq69 <52359859+qooq69@users.noreply.github.com>
Co-authored-by: karl-police <karl-police2001@bluewin.ch>
Co-authored-by: Patrick Geneva <goldbattle@users.noreply.github.com>
Co-authored-by: Infinitay <Infinitay@users.noreply.github.com>
Co-authored-by: Mm2PL <miau@mail.kotmisia.pl>
Co-authored-by: LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com>
Co-authored-by: ooxi <violetland@mail.ru>
Co-authored-by: Edgar <Edgar@AnotherFoxGuy.com>
Co-authored-by: Brian <18603393+brian6932@users.noreply.github.com>
Co-authored-by: oldLucke <oldlucke@gmail.com>
Co-authored-by: nerix <nero.9@hotmail.de>
2022-03-30 18:20:18 +00:00

2.2 KiB

Linux

Note on Qt version compatibility: If you are installing Qt from a package manager, please ensure the version you are installing is at least Qt 5.12 or newer.

Ubuntu 20.04

Most likely works the same for other Debian-like distros

  1. Install all of the dependencies using sudo apt install qttools5-dev qtmultimedia5-dev libqt5svg5-dev libboost-dev libssl-dev libboost-system-dev libboost-filesystem-dev cmake g++

Compiling through Qt Creator

  1. Install C++ IDE Qt Creator by using sudo apt install qtcreator
  2. Open chatterino.pro with Qt Creator and select build

Manually

  1. Go into the project directory
  2. Create a build folder and go into it (mkdir build && cd build)
  3. Use one of the options below to compile it

Using CMake

cmake .. && make

Using QMake

qmake .. && make

Arch Linux

Through AUR

Manually

  1. Install all of the dependencies using sudo pacman -S --needed qt5-base qt5-multimedia qt5-svg qt5-tools gst-plugins-ugly gst-plugins-good boost rapidjson pkgconf openssl cmake
  2. Go into the project directory
  3. Create a build folder and go into it (mkdir build && cd build)
  4. Use one of the options below to compile it

Using CMake

cmake .. && make

Using QMake

qmake .. && make

Fedora 28 and above

Most likely works the same for other Red Hat-like distros. Substitute dnf with yum.

  1. Install all of the dependencies using sudo dnf install qt5-qtbase-devel qt5-qtmultimedia-devel qt5-qtsvg-devel libsecret-devel openssl-devel boost-devel cmake
  2. Go into the project directory
  3. Create a build folder and go into it (mkdir build && cd build)
  4. Use one of the options below to compile it

Using CMake

cmake .. && make -j$(nproc)

Using QMake

qmake-qt5 .. && make -j$(nproc)

NixOS 18.09+

  1. Enter the development environment with all of the dependencies: nix-shell -p openssl boost qt5.full pkg-config cmake
  2. Go into the project directory
  3. Create a build folder and go into it (mkdir build && cd build)
  4. Use one of the options below to compile it

Using CMake

cmake .. && make

Using QMake

qmake .. && make