2018-05-25 17:08:09 +02:00
# Linux
2020-11-21 11:24:32 +01:00
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** .
2018-10-19 21:39:09 +02:00
2022-03-30 20:20:18 +02:00
## Ubuntu 20.04
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
_Most likely works the same for other Debian-like distros_
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
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++`
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
### Compiling through Qt Creator
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
1. Install C++ IDE Qt Creator by using `sudo apt install qtcreator`
2021-04-04 15:58:18 +02:00
1. Open `chatterino.pro` with Qt Creator and select build
### Manually
2021-07-31 13:03:07 +02:00
1. Go into the project directory
1. Create a build folder and go into it (`mkdir build && cd build`)
1. Use one of the options below to compile it
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
### Using CMake
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
`cmake .. && make`
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
### Using QMake
2021-04-04 15:58:18 +02:00
2021-07-31 13:03:07 +02:00
`qmake .. && make`
2018-05-25 17:08:09 +02:00
## Arch Linux
2021-02-21 14:45:42 +01:00
2021-03-28 16:58:51 +02:00
### Through AUR
2021-02-21 14:45:42 +01:00
2021-03-28 16:58:51 +02:00
- [chatterino2-git ](https://aur.archlinux.org/packages/chatterino2-git/ )
### Manually
2022-03-30 20:20:18 +02:00
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`
2021-07-31 13:03:07 +02:00
1. Go into the project directory
1. Create a build folder and go into it (`mkdir build && cd build`)
1. Use one of the options below to compile it
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
### Using CMake
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
`cmake .. && make`
2018-06-08 20:50:59 +02:00
2021-07-31 13:03:07 +02:00
### Using QMake
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
`qmake .. && make`
2021-03-28 16:58:51 +02:00
2020-08-13 21:41:54 +02:00
## Fedora 28 and above
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
_Most likely works the same for other Red Hat-like distros. Substitute `dnf` with `yum` ._
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
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`
1. Go into the project directory
1. Create a build folder and go into it (`mkdir build && cd build`)
1. Use one of the options below to compile it
2021-02-21 14:45:42 +01:00
2021-03-28 16:58:51 +02:00
### Using CMake
2021-07-31 13:03:07 +02:00
`cmake .. && make -j$(nproc)`
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
### Using QMake
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
`qmake-qt5 .. && make -j$(nproc)`
2019-05-01 15:18:29 +02:00
## NixOS 18.09+
2021-02-21 14:45:42 +01:00
2021-07-31 13:03:07 +02:00
1. Enter the development environment with all of the dependencies: `nix-shell -p openssl boost qt5.full pkg-config cmake`
1. Go into the project directory
1. Create a build folder and go into it (`mkdir build && cd build`)
1. Use one of the options below to compile it
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
### Using CMake
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
`cmake .. && make`
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
### Using QMake
2021-03-28 16:58:51 +02:00
2021-07-31 13:03:07 +02:00
`qmake .. && make`