Skip to content
Snippets Groups Projects
Commit a7bd860e authored by Thomas Rouleau's avatar Thomas Rouleau Committed by Sébastien Blin
Browse files

Doc: Clarification of install.md instructions

GitLab: #1168

Change-Id: I478b7db6fd6438ed3a35defcc9a7b3e5e7176f32
parent df9c4b06
No related branches found
No related tags found
No related merge requests found
......@@ -11,32 +11,38 @@ Because the client-qt is multi-platforms and supporting macOS, we need a recent
This version is generally not packaged on a lot of platforms, and to control available plugins and such, we have our own Qt packaged (available on https://jami.net on the distributions we support).
So, you will need to get Qt 6.4 first. For this, there is 3 methods:
### Qt from https://jami.net (recommended)
### Qt from our repo (recommended)
If your distribution is supported, we provide a Qt package (libqt-jami) on our repo.
The files will be installed in `/usr/lib/libqt-jami`.
#### Install libqt-jami, Debian based
#### Install libqt-jami, Ubuntu based
```
To install libqt-jami on Ubuntu, execute these commands replacing `ubuntu_<VERSION>` by your distribution version. For example "ubuntu_22.04"
```bash
sudo apt install gnupg dirmngr ca-certificates curl --no-install-recommends
curl -s https://dl.jami.net/public-key.gpg | sudo tee /usr/share/keyrings/jami-archive-keyring.gpg > /dev/null
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/nightly/debian_<VERSION>/ jami main' > /etc/apt/sources.list.d/jami.list"
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/nightly/ubuntu_<VERSION>/ jami main' > /etc/apt/sources.list.d/jami.list"
sudo apt-get update && sudo apt-get install libqt-jami
```
#### Install libqt-jami, Ubuntu based
#### Install libqt-jami, Debian based
```
To install libqt-jami on Debian, execute these commands replacing `debian_<VERSION>` by your distribution version. For example "debian_11"
```bash
sudo apt install gnupg dirmngr ca-certificates curl --no-install-recommends
curl -s https://dl.jami.net/public-key.gpg | sudo tee /usr/share/keyrings/jami-archive-keyring.gpg > /dev/null
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/nightly/ubuntu_<VERSION>/ jami main' > /etc/apt/sources.list.d/jami.list"
sudo apt-get update && sudo apt-get install libqt-jami
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/nightly/debian_<VERSION>/ jami main' > /etc/apt/sources.list.d/jami.list"
sudo apt-get update && sudo apt-get install jami
```
#### Install jami-libqt, Fedora based
```
To install libqt-jami on Fedora, execute these commands replacing `fedora_<VERSION>` by your distribution version. For example "fedora_38"
```bash
sudo dnf config-manager --add-repo https://dl.jami.net/nightly/fedora_<VERSION>/jami-nightly.repo
sudo dnf update && sudo dnf install jami-libqt
```
......@@ -49,7 +55,7 @@ It should be (For now qt5 only is packaged by distributions, so names can change
#### Dependencies, Debian based
```
```bash
sudo apt-get install cmake make doxygen g++ gettext libnotify-dev pandoc nasm libqrencode-dev \
libnotify-dev libnm-dev \
qt6-base-dev \
......@@ -66,7 +72,7 @@ sudo apt-get install cmake make doxygen g++ gettext libnotify-dev pandoc nasm li
#### Dependencies, Fedora based
```
```bash
sudo dnf install qt6-qtsvg-devel qt6-qtwebengine-devel qt6-qtmultimedia-devel qt6-qtdeclarative-devel qt6-qtquickcontrols2-devel qt6-qtquickcontrols qrencode-devel NetworkManager-libnm-devel
```
......@@ -87,8 +93,13 @@ for getting the latest development versions; otherwise, you can use
`git submodule update --init` then checkout specific commits for each
submodule).
If you're a developer you need to install clang-format separately before initializing with the command
```bash
sudo apt install clang-format
```
```bash
./build.py --init --qt=<path/to/qt> # qt path is required for qmlformatting to work
./build.py --init [--qt=<path/to/qt> (this is required for qmlformatting to work)]
```
Then you will need to install dependencies:
......@@ -96,7 +107,7 @@ Then you will need to install dependencies:
- For GNU/Linux
```bash
./build.py --dependencies # needs sudo
sudo ./build.py --dependencies
```
Then, you can build daemon and the client using:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment