moment/README.md

62 lines
1.4 KiB
Markdown
Raw Normal View History

# harmonyqml
2019-09-12 18:10:21 -04:00
## Dependencies setup
2019-08-30 17:05:22 -04:00
From your distribution's package manager, install:
2019-07-18 08:10:36 -04:00
Qt 5.12+, including:
2019-07-25 19:19:39 -04:00
- qt5-declarative-devel
- qt5-quickcontrols
- qt5-quickcontrols2-devel
- qt5-svg-devel
2019-07-18 08:10:36 -04:00
- qt5-graphicaleffects
- qt5-qmake
2019-08-30 00:07:05 -04:00
- qt5-devel
2019-07-18 08:10:36 -04:00
2019-08-30 00:07:05 -04:00
- python3
- python3-devel
2019-07-25 19:19:39 -04:00
- olm-python3 >= 3.1
2019-08-30 17:05:22 -04:00
Make sure that the right version of Qt is selected and compiler flags are
correctly set:
2019-08-30 00:07:05 -04:00
export QT_SELECT=5
2019-08-30 17:05:22 -04:00
export CFLAGS="-march=native -O2 -pipe"
export CXXFLAGS="$CFLAGS"
export MAKEFLAGS="$(nproc)"
2019-08-30 00:07:05 -04:00
2019-08-16 09:47:44 -04:00
Install [pyotherside](https://github.com/thp/pyotherside):
2019-07-18 08:10:36 -04:00
git clone https://github.com/thp/pyotherside
cd pyotherside
2019-07-25 19:19:39 -04:00
qmake && make && sudo make install
After this, verify the permissions of the installed plugin files.
2019-08-30 17:05:22 -04:00
To ensure that they're correctly set:
2019-08-30 17:05:22 -04:00
sudo chmod -R 755 /usr/lib/qt5/qml/io
2019-07-18 08:10:36 -04:00
sudo chmod 644 /usr/lib/qt5/qml/io/thp/pyotherside/*
sudo chmod 755 /usr/lib/qt5/qml/io/thp/pyotherside/*.so
2019-09-12 18:10:21 -04:00
Install the Python 3 dependencies:
2019-07-18 08:10:36 -04:00
2019-09-12 18:10:21 -04:00
pip3 install --user -Ur requirements.txt
2019-08-30 20:24:13 -04:00
Optional dependency for performance improvements:
2019-09-12 18:10:21 -04:00
pip3 install --user -U uvloop==0.13.0
2019-07-18 08:10:36 -04:00
## Building
git clone <TODO>
cd harmonyqml
2019-08-25 15:38:42 -04:00
qmake harmonyqml.pro && make && sudo make install
2019-07-18 08:10:36 -04:00
After this if no errors happened, run `harmonyqml`.
2019-08-30 17:05:22 -04:00
If you get a version mismatch error related to cffi, try:
pip3 install --user --upgrade --force-reinstall cffi