2023-10-04 12:44:35 +02:00
![chatterinoLogo ](https://user-images.githubusercontent.com/41973452/272541622-52457e89-5f16-4c83-93e7-91866c25b606.png )
2021-05-14 11:59:47 +02:00
Chatterino 2 [![GitHub Actions Build (Windows, Ubuntu, MacOS) ](https://github.com/Chatterino/chatterino2/workflows/Build/badge.svg?branch=master )](https://github.com/Chatterino/chatterino2/actions?query=workflow%3ABuild+branch%3Amaster) [![Cirrus CI Build (FreeBSD only) ](https://api.cirrus-ci.com/github/Chatterino/chatterino2.svg?branch=master )](https://cirrus-ci.com/github/Chatterino/chatterino2/master) [![Chocolatey Package ](https://img.shields.io/chocolatey/v/chatterino?include_prereleases )](https://chocolatey.org/packages/chatterino) [![Flatpak Package ](https://img.shields.io/flathub/v/com.chatterino.chatterino )](https://flathub.org/apps/details/com.chatterino.chatterino)
2017-09-28 22:24:14 +02:00
============
2017-01-22 22:59:21 +01:00
2020-10-04 18:47:02 +02:00
Chatterino 2 is a chat client for [Twitch.tv ](https://twitch.tv ).
2020-09-25 20:42:27 +02:00
The Chatterino 2 wiki can be found [here ](https://wiki.chatterino.com ).
2021-03-21 14:59:41 +01:00
Contribution guidelines can be found [here ](https://wiki.chatterino.com/Contributing%20for%20Developers ).
2017-02-06 14:47:47 +01:00
2019-08-21 22:12:55 +02:00
## Download
2021-02-21 14:45:42 +01:00
2019-08-21 22:12:55 +02:00
Current releases are available at [https://chatterino.com ](https://chatterino.com ).
2020-10-10 23:01:41 +02:00
Windows users can also install Chatterino [from Chocolatey ](https://chocolatey.org/packages/chatterino ).
2019-08-21 22:12:55 +02:00
## Nightly build
2021-02-21 14:45:42 +01:00
2019-05-26 17:48:14 +02:00
You can download the latest Chatterino 2 build over [here ](https://github.com/Chatterino/chatterino2/releases/tag/nightly-build )
2018-06-22 13:18:12 +02:00
2022-05-22 11:36:03 +02:00
You might also need to install the [VC++ Redistributables ](https://aka.ms/vs/17/release/vc_redist.x64.exe ) from Microsoft if you do not have it installed already.
2021-02-21 14:45:42 +01:00
If you still receive an error about `MSVCR120.dll missing` , then you should install the [VC++ 2013 Restributable ](https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe ).
2018-06-22 13:18:12 +02:00
2017-09-28 22:24:14 +02:00
## Building
2021-02-21 14:45:42 +01:00
2018-10-14 00:54:58 +02:00
To get source code with required submodules run:
2021-02-21 14:45:42 +01:00
2018-10-14 00:54:58 +02:00
```
2019-07-28 13:30:17 +02:00
git clone --recurse-submodules https://github.com/Chatterino/chatterino2.git
2018-10-14 00:54:58 +02:00
```
2021-02-21 14:45:42 +01:00
2018-10-14 00:54:58 +02:00
or
2021-02-21 14:45:42 +01:00
2018-10-14 00:54:58 +02:00
```
2019-07-28 13:30:17 +02:00
git clone https://github.com/Chatterino/chatterino2.git
2019-07-26 10:40:09 +02:00
cd chatterino2
2018-10-14 00:54:58 +02:00
git submodule update --init --recursive
```
2017-06-06 11:25:16 +02:00
2018-05-25 17:19:02 +02:00
[Building on Windows ](../master/BUILDING_ON_WINDOWS.md )
2022-05-15 17:57:31 +02:00
[Building on Windows with vcpkg ](../master/BUILDING_ON_WINDOWS_WITH_VCPKG.md )
2018-05-25 17:19:02 +02:00
[Building on Linux ](../master/BUILDING_ON_LINUX.md )
[Building on Mac ](../master/BUILDING_ON_MAC.md )
2017-09-28 22:24:14 +02:00
2020-06-27 11:28:11 +02:00
[Building on FreeBSD ](../master/BUILDING_ON_FREEBSD.md )
2023-08-05 13:10:55 +02:00
## Git blame
This project has big commits in the history which for example update all line
endings. To improve the output of git-blame, consider setting:
```
git config blame.ignoreRevsFile .git-blame-ignore-revs
```
This will ignore all revisions mentioned in the [`.git-blame-ignore-revs`
file](./.git-blame-ignore-revs). GitHub does this by default.
2018-05-25 17:08:09 +02:00
## Code style
2021-02-21 14:45:42 +01:00
2019-10-31 21:57:59 +01:00
The code is formatted using clang format in Qt Creator. [.clang-format ](src/.clang-format ) contains the style file for clang format.
2018-05-14 13:04:15 +02:00
2018-05-25 17:19:02 +02:00
### Get it automated with QT Creator + Beautifier + Clang Format
2021-02-21 14:45:42 +01:00
2022-12-02 21:12:11 +01:00
1. Download LLVM: https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.5/LLVM-15.0.5-win64.exe
2018-05-25 17:19:02 +02:00
2. During the installation, make sure to add it to your path
3. In QT Creator, select `Help` > `About Plugins` > `C++` > `Beautifier` to enable the plugin
4. Restart QT Creator
5. Select `Tools` > `Options` > `Beautifier`
6. Under `General` select `Tool: ClangFormat` and enable `Automatic Formatting on File Save`
7. Under `Clang Format` select `Use predefined style: File` and `Fallback style: None`
Qt creator should now format the documents when saving it.
2019-05-18 21:33:16 +02:00
2019-10-03 22:20:55 +02:00
## Doxygen
2021-02-21 14:45:42 +01:00
2019-10-03 22:20:55 +02:00
Doxygen is used to generate project information daily and is available [here ](https://doxygen.chatterino.com ).