wiki:mycroft-gui-mark-2_sys

Version 5 (modified by admin, 2 years ago) (diff)

--

Mycroft Mark2 GUI using system QT5 and KDE framework

This is based on the very helpful build log of user AIIX that he published on https://github.com/AIIX/Documentation/blob/master/Custom-RPI4-MycroftImage.md He is doing this on Rasbperry 4 while the target here is Raspberry 3B but also on 64-bit.

Install Linux

Get https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04&architecture=arm64+raspi (Ubuntu Server 20.04 for 64-bit arm - codename focal) flash it to sdcard and boot. After first boot login as ubuntu/ubuntu (takes a while until you can do this), change password

Wifi

  • ls /sys/class/net

on RP3 the wifi interface is the wlan0

  • sudo nano /etc/netplan/50-cloud-init.yaml
    # network: {config: disabled}
    network:
        ethernets:
            eth0:
                dhcp4: true
                optional: true
        version: 2
        wifis:
            wlan0:
                optional: true
                access-points:
                    "ESSID-of-the-Accesspoint":
                        password: "your-password"
                dhcp4: true
    

user

  • sudo useradd mycroft -g users -G sudo -m -s /bin/bash
  • sudo passwd mycroft
  • sudo nano /etc/group

(add mycroft to all groups like ubuntu)

From now on work as user mycroft

update / initial apt setup

  • sudo apt-get update && sudo apt-get dist-upgrade -y
  • sudo apt install git gnupg wget curl apt-transport-https software-properties-common

Do the next steps as root:

  • sudo su -

Add KDE Neon gpg key:

Add the repository

mycroft core

  • sudo apt-get install git python3 python3-dev python3-setuptools libtool libffi-dev libssl-dev autoconf automake bison swig libglib2.0-dev portaudio19-dev mpg123 screen flac curl libicu-dev pkg-config libjpeg-dev libfann-dev build-essential jq

mimic =

skipped for now

Plasma Nano

Install the system Libraries

I will try to come up with a completer list later but I think most of it should be in the dependencies of the following

  • sudo apt install sddm kwin-wayland kwin-x11 openssh-server ftp i2c-tools konsole nano plasma-workspace-wayland plasma-workspace plasma-pa plasma-widgets-addons libkf5wallet-bin gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav qml-module-qtmultimedia network-manager plasma-nm konsole plasma-workspace-dev

I was not asked for the login manager so I set it manually:

  • sudo dpkg-reconfigure sddm

build plasma-nano

  • sudo apt install cmake kwayland-dev
  • cd ~
  • git clone https://github.com/KDE/plasma-nano
  • cd plasma-nano
  • mkdir build
  • cd build
  • cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON

this results in an error:

 * Qt5Network (required version >= 5.12.5)
 * Qt5Qml
 * Qt5Quick
 * Qt5 (required version >= 5.2.0)
 * ECM (required version >= 1.6.0)
 * Qt5Core
 * KF5Plasma (required version >= 5.0.0)
 * KF5WindowSystem (required version >= 5.0.0)
 * Qt5Gui (required version >= 5.11.0)
 * KF5Wayland (required version >= 5.0.0)
 * KF5 (required version >= 5.0.0)

CMake Warning at /usr/lib/arm-linux-gnueabihf/cmake/KF5Package/KF5PackageMacros.cmake:64 (message):
  couldn't generate metainfo for org.kde.plasma.nano: Package type
  "Plasma/Shell" not found

  Error: description missing, will result in broken appdata field as
  <sumary/> is mandatory at /home/pi/plasma-nano/shell/metadata.desktop
Call Stack (most recent call first):
  /usr/lib/arm-linux-gnueabihf/cmake/KF5Plasma/KF5PlasmaMacros.cmake:34 (kpackage_install_package)
  CMakeLists.txt:35 (plasma_install_package)

I think this is an error in the 5.17 release, have to check this in detail

Attachments (1)

Download all attachments as: .zip