... | ... | @@ -5,18 +5,16 @@ It is also meant as a description for setting up Kaidan on other Linux distribut |
|
|
|
|
|
## Install *dependencies*
|
|
|
|
|
|
This requires at least *Ubuntu 18.04* or *Debian buster* (which is currently still testing).
|
|
|
Older distributions are not supported since they do not provide Qt 5.8 or newer, an exception is KDE Neon 16.04.
|
|
|
This requires at least *Ubuntu 20.04* or *Debian bullseye* (which is currently still testing).
|
|
|
Older distributions are not supported since they do not provide Qt 5.12 or newer.
|
|
|
|
|
|
```bash
|
|
|
sudo apt install git-core cmake extra-cmake-modules build-essential pkg-config \
|
|
|
zlib1g-dev libqt5quick5 libqt5quickcontrols2-5 libqt5quickwidgets5 \
|
|
|
libqt5qml5 libqt5gui5 libqt5core5a qtdeclarative5-dev qttools5-dev qt5-default \
|
|
|
qtmultimedia5-dev qtpositioning5-dev qtlocation5-dev qtquickcontrols2-5-dev \
|
|
|
libqt5svg5-dev qml-module-qt-labs-platform qml-module-qtquick-layouts \
|
|
|
qml-module-qt-labs-folderlistmodel qml-module-qtquick-dialogs qml-module-qt-labs-settings \
|
|
|
qml-module-qtmultimedia qml-module-qtpositioning qml-module-qtlocation \
|
|
|
kirigami2-dev libnotify-bin libkf5notifications-dev \
|
|
|
sudo apt install git-core cmake extra-cmake-modules build-essential \
|
|
|
qtdeclarative5-dev qttools5-dev qt5-default qtmultimedia5-dev qtpositioning5-dev \
|
|
|
qtlocation5-dev qtquickcontrols2-5-dev libqt5svg5-dev \
|
|
|
qml-module-qtquick-layouts qml-module-qtquick-dialogs qml-module-qtmultimedia \
|
|
|
qml-module-qtpositioning qml-module-qtlocation \
|
|
|
kirigami2-dev libkf5notifications-dev \
|
|
|
breeze-icon-theme fonts-noto-color-emoji libzxingcore-dev
|
|
|
```
|
|
|
|
... | ... | @@ -33,40 +31,11 @@ source ~/.profile |
|
|
|
|
|
## Set up the XMPP library *QXmpp*
|
|
|
|
|
|
There are two options for setting up QXmpp:
|
|
|
You may build and install it with a package manager or without one.
|
|
|
|
|
|
### Option A: Build and install with a package manager (only on Debian 10+)
|
|
|
|
|
|
```bash
|
|
|
git clone https://salsa.debian.org/xmpp-team/qxmpp
|
|
|
cd qxmpp
|
|
|
uscan -v
|
|
|
cd $(find ../ -name qxmpp-$(dpkg-parsechangelog -SVersion | sed 's/[-].*$//')+git*.* -type d)
|
|
|
sudo apt build-dep .
|
|
|
dpkg-buildpackage
|
|
|
sudo dpkg -i ../libqxmpp{2,-dev}*.deb
|
|
|
```
|
|
|
|
|
|
### Option B: Build and install without a package manager
|
|
|
The version packaged in debian is currently too old (only v1.0.0), so we need to build QXmpp manually.
|
|
|
|
|
|
```bash
|
|
|
git clone https://github.com/qxmpp-project/qxmpp
|
|
|
cd qxmpp
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
|
make -j$(nproc)
|
|
|
sudo make install
|
|
|
```
|
|
|
|
|
|
## Set up the barcode library *ZXing-C++* for QR codes (optional, only if you need the master version for development)
|
|
|
|
|
|
```bash
|
|
|
git clone https://github.com/nu-book/zxing-cpp
|
|
|
cd zxing-cpp
|
|
|
mkdir build
|
|
|
cd build
|
|
|
mkdir qxmpp/build && cd qxmpp/build
|
|
|
cmake ..
|
|
|
make -j$(nproc)
|
|
|
sudo make install
|
... | ... | @@ -77,15 +46,13 @@ sudo make install |
|
|
### Get the source code
|
|
|
|
|
|
```bash
|
|
|
git clone https://invent.kde.org/kde/kaidan.git
|
|
|
git clone https://invent.kde.org/network/kaidan.git
|
|
|
```
|
|
|
|
|
|
### Build
|
|
|
|
|
|
```bash
|
|
|
cd kaidan
|
|
|
mkdir build
|
|
|
cd build
|
|
|
mkdir kaidan/build && cd kaidan/build
|
|
|
cmake .. -DI18N=1
|
|
|
make -j$(nproc)
|
|
|
```
|
... | ... | |