My idea is to recreate something like the Mycroft Mark 2.
I use a Raspberry Pi 4 with Picroft Image installed on it and a 3.5 inch LCD display for graphic output. Mycroft-Core is basically installed and works fine.
Now it’s about building a GUI and I want to use Mycroft GUI Mycroft Gui for it. So first I installed KDE Plasma on the Raspberry and then I installed Mycroft-gui. Everything worked fine, but unfortunately, I get an error message when I run the Mycroft GUI.
Unfortunately, I haven’t found any other post describing this problem, so I would have these questions:
Is it basically possible to use Mycroft-Gui with Picroft on a raspberry?
Does the procedure basically work that I expand Picroft with KDE Plasma and then install Mycroft GUI on it? Or do I have to use KDE NEON Image, for example?
What does this error message mean when running Mycroft GUI?:
Failed to create wl_display (No such file or directory) qt.qpa.plugin: Could not load the Qt platform plugin “wayland” in “” even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Mycroft-GUI requires newer Qt libraries than available on Picroft, It requires at minimum a distribution running Debian Bullseye
About the error above:
How are you launching the Mycroft-GUI application, are you launching it inside a X11 desktop session or a wayland session ?
Are you trying to launch Mycroft-GUI directly from tty ? if so you need to export the QT_QPA_PLATFORM environment variable to either wayland or eglfs depending on what compositor background you want to use
If you instead want to skip developing your own image and just find a running image for the Raspberry PI 4 which creates a smart speaker environment similar to the mark-2 based on Buildroot or Ubuntu focal you can look at the OpenVoiceOS project, we do post development images on the matrix openvoiceos development channel https://matrix.to/#/#openvoiceos-development:matrix.org
I have some trouble installing Mycroft GUI on my RPi 4 as well.
I am running a Rapsberry Pi 4 Model B with Raspbian (based on Debian Bullseye). When I cloned into the Mycroft GUI repo and ran bash dev_setup.sh I had to choose option “5) Others” for distribution, which means I need to install Qt5 manually.
I then tried to use the offline installer for Qt5 version 5.15 (link here) but ran into some error during installation. Here is the error message:
ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
My question is what is the standard way of installing Mycroft GUI on RPi4? Is it even possible?
Thank you! I had a look at my distro and apparently the Raspberry Pi OS on the RPi 4 is 32-bit, while some packages like qml-module-qtwebengine only supports arm64 architecture. I tried to install Ubuntu 20 but it’s too slow on the RPi 4.
I’m not sure if it’s even possible to run Mycroft GUI on a Raspberry Pi considering the components require Ubuntu 20+ Is there some alternative way to build a simple GUI for Mycroft?
@yumium@simi If you guys want a simple GUI thats fully customizable, you can go ahead and clone my repo. It only requires a browser, npm, and works out of the box.
Let me know how it goes for you if you do use it.
@AIIX@Vangrel@guhl Thank you all! Will try them out. In the meantime I found the python module pywebio to be a very simple way to set up a GUI for Mycroft, though it might struggle to build something too complicated.