2019-07-03 03:59:52 +10:00
|
|
|
# harmonyqml
|
|
|
|
|
2019-09-13 08:10:21 +10:00
|
|
|
|
2019-07-03 03:59:52 +10:00
|
|
|
## Dependencies setup
|
|
|
|
|
2019-08-31 07:05:22 +10:00
|
|
|
From your distribution's package manager, install:
|
2019-07-03 03:59:52 +10:00
|
|
|
|
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
|
2019-07-03 03:59:52 +10:00
|
|
|
|
|
|
|
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-07-03 03:59:52 +10:00
|
|
|
|
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-09-13 08:10:21 +10:00
|
|
|
Install the Python 3 dependencies:
|
2019-07-18 22:10:36 +10:00
|
|
|
|
2019-09-13 08:10:21 +10:00
|
|
|
pip3 install --user -Ur requirements.txt
|
2019-08-31 10:24:13 +10:00
|
|
|
|
|
|
|
Optional dependency for performance improvements:
|
|
|
|
|
2019-09-13 08:10:21 +10:00
|
|
|
pip3 install --user -U uvloop==0.13.0
|
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
|