mirage icon indicating copy to clipboard operation
mirage copied to clipboard

Mirage compiled from git does not run on Mobian (Debian Bullseye)

Open Djhg2000 opened this issue 5 years ago • 3 comments

Description

Mirage compiles when following the instructions but does not run.

Your environment

Mobian (Debian Bullseye) arm64 Phosh 0.4.3-1mobian1 Compiled from git using the instructions at https://github.com/mirukana/mirage/blob/master/INSTALL.md#manual-installation Qt 5.14.2+dfsg-4 Python 3.8.2-3

Steps to reproduce

  1. Install the packages in the Ubuntu 19.04 section, swapping out qml-module:io-thp-pyotherside with qml-module-io-thp-pyotherside and libjpeg-turbo8-dev with libjpeg62-turbo-dev (latest installable version on both systems).
  2. Go through the compilation steps
  3. Instead of sudo make install run ./mirage (even if you install it, it will still give the same error)

Expected behavior

Mirage should start and show the chat window.

Actual behavior

Just a single line is printed on the terminal: ! 04:52:03 | QQmlComponent: Component is not ready

It seems like some dependency is missing but I have no idea which. It compiles just fine so perhaps it's a python dependency?

I also want to add Mirage does compile and run on my workstation running Debian Sid (after also installing qml-module-qt-labs-qmlmodels), although a few months ago it had the same issue as I'm seeing on Mobian now. I think I installed the critical dependency sometime between now and then when compiling something else.

Djhg2000 avatar Aug 14 '20 02:08 Djhg2000

I pulled all the installed qml packages from the workstation and installed them in Mobian. So the good news is that Mirage runs in Mobian now, the bad news is that I have to go through this list and figure out which new dependencies we need:

qml-module-qt-labs-folderlistmodel qml-module-qt-labs-platform qml-module-qt-labs-qmlmodels qml-module-qt-labs-settings qml-module-qtgraphicaleffects qml-module-qtgstreamer qml-module-qtmultimedia qml-module-qtqml qml-module-qtqml-models2 qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-localstorage qml-module-qtquick-privatewidgets qml-module-qtquick-shapes qml-module-qtquick-templates2 qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qtwebengine qml-module-qtwebkit

I tried removing half of them at a time and it failed on both halves so it's more than one package as well...

Djhg2000 avatar Aug 14 '20 03:08 Djhg2000

So I ended up having to go through every package on the list.

Not needed:

qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings qml-module-qtgstreamer qml-module-qtmultimedia qml-module-qtqml qml-module-qtqml-models2 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-localstorage qml-module-qtquick-privatewidgets qml-module-qtquick-virtualkeyboard qml-module-qtwebengine

Needed:

qml-module-qt-labs-platform qml-module-qt-labs-qmlmodels qml-module-qtgraphicaleffects qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-shapes qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2

Djhg2000 avatar Aug 14 '20 13:08 Djhg2000

This works for me:

sudo apt update sudo apt install qt5-default qt5-qmake qt5-image-formats-plugins
qml-module-qtquick2 qml-module-qtquick-window2
qml-module-qtquick-layouts qml-module-qtquick-dialogs
qml-module-qt-labs-platform
qml-module-qtquick-shapes
qtdeclarative5-dev
qtquickcontrols2-5-dev
libx11-dev libxss-dev
python3-dev python3-pip
build-essential git cmake
zlib1g-dev libtiff5-dev libwebp-dev
libopenjp2-7-dev libmediainfo-dev
libjpeg62-turbo-dev libolm-dev
qml-module-io-thp-pyotherside
qml-module-qtquick-controls2
qml-module-qtgraphicaleffects
qml-module-qt-labs-qmlmodels

export QT_SELECT=5 export MAKEFLAGS="-j$(nproc)" export CFLAGS="-march=native -O2 -pipe" export PATH=$PATH:/home/mobian/.local/bin

git clone https://github.com/mirukana/mirage cd mirage

git pull git submodule update --init submodules/* pip3 install --user -Ur requirements.txt

qmake mirage.pro make sudo make install `

There is also a ITP https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970814 so it should be available in mobian soon !

karlkashofer avatar Sep 29 '20 07:09 karlkashofer