moment/README.md

66 lines
1.6 KiB
Markdown
Raw Normal View History

# harmonyqml
## Dependencies setup
2019-08-31 07:05:22 +10:00
From your distribution's package manager, install:
2019-07-18 22:10:36 +10:00
Qt 5.12+, including:
2019-07-26 09:19:39 +10:00
- qt5-declarative-devel
- qt5-quickcontrols
- qt5-quickcontrols2-devel
- qt5-svg-devel
2019-07-18 22:10:36 +10:00
- qt5-graphicaleffects
- qt5-qmake
2019-08-30 14:07:05 +10:00
- qt5-devel
2019-07-18 22:10:36 +10:00
2019-08-30 14:07:05 +10:00
- python3
- python3-devel
2019-07-26 09:19:39 +10:00
- olm-python3 >= 3.1
2019-08-31 07:05:22 +10:00
Make sure that the right version of Qt is selected and compiler flags are
correctly set:
2019-08-30 14:07:05 +10:00
export QT_SELECT=5
2019-08-31 07:05:22 +10:00
export CFLAGS="-march=native -O2 -pipe"
export CXXFLAGS="$CFLAGS"
export MAKEFLAGS="$(nproc)"
2019-08-30 14:07:05 +10:00
2019-08-16 23:47:44 +10:00
Install [pyotherside](https://github.com/thp/pyotherside):
2019-07-18 22:10:36 +10:00
git clone https://github.com/thp/pyotherside
cd pyotherside
2019-07-26 09:19:39 +10:00
qmake && make && sudo make install
After this, verify the permissions of the installed plugin files.
2019-08-31 07:05:22 +10:00
To ensure that they're correctly set:
2019-08-31 07:05:22 +10:00
sudo chmod -R 755 /usr/lib/qt5/qml/io
2019-07-18 22:10:36 +10:00
sudo chmod 644 /usr/lib/qt5/qml/io/thp/pyotherside/*
sudo chmod 755 /usr/lib/qt5/qml/io/thp/pyotherside/*.so
2019-08-31 07:05:22 +10:00
Install the Python 3 dependencies from Pypi:
2019-07-18 22:10:36 +10:00
pip3 install --user --upgrade \
2019-08-30 14:07:05 +10:00
Pillow aiofiles appdirs dataclasses filetype hsluv html_sanitizer \
2019-07-26 09:19:39 +10:00
lxml mistune uvloop
2019-07-18 22:10:36 +10:00
2019-08-31 07:05:22 +10:00
Install the Python 3 dependencies from Github:
2019-07-18 22:10:36 +10:00
[matrix-nio](https://github.com/mirukan/matrix-nio):
git clone https://github.com/mirukan/matrix-nio
cd matrix-nio
2019-07-26 09:19:39 +10:00
pip3 install --user --upgrade -e '.[e2e]'
2019-07-18 22:10:36 +10:00
## Building
git clone <TODO>
cd harmonyqml
2019-08-26 05:38:42 +10:00
qmake harmonyqml.pro && make && sudo make install
2019-07-18 22:10:36 +10:00
After this if no errors happened, run `harmonyqml`.
2019-08-31 07:05:22 +10:00
If you get a version mismatch error related to cffi, try:
pip3 install --user --upgrade --force-reinstall cffi