Skip to content
Snippets Groups Projects

Eekboard working in the Librem5 VM

Closed Luciana requested to merge LuciCodes/eekboard:eekInVM into master
4 unresolved threads

Instructions:

  • Share the project root with the VM when starting it, with the extra qemu options:

path=/path_to_project/eekboard,mount_tag=host0,security_model=passthrough,id=host0

  • In the VM, mount it (let's say, /mnt/host-dir):

mount -t 9p -o trans=virtio host0 /mnt/host-dir -oversion=9p2000.L

  • The VM needs some extra packages installed:

sudo apt-get install libcroco3-dev

sudo apt-get install libxklavier-dev

sudo apt-get install gtk-doc-tools

sudo apt-get install gawk

sudo apt-get install gnome-common

sudo apt-get install gobject-introspection

  • In the project dir, autogen to some local path (say /home/eekboard):

./autogen.sh --prefix=/home/eekboard --disable-gtk-doc

  • After make and sudo make install, copy and recompile the gschema namespace:

cp /mnt/host-dir/data/org.fedorahosted.eekboard.gschema.xml /usr/share/glib-2.0/schemas/

/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/

  • Then mkdir and copy some other files by hand:

sudo mkdir /usr/share/eekboard/keyboards

sudo mkdir /usr/share/eekboard/keyboards/geometry

sudo mkdir /usr/share/eekboard/keyboards/symbols

sudo mkdir /usr/share/eekboard/themes

sudo cp /mnt/host-dir/data/keyboards/keyboards.xml /usr/share/eekboard/keyboards

sudo cp /mnt/host-dir/data/keyboards/geometry/compact.xml /usr/share/eekboard/keyboards/geometry

sudo cp /mnt/host-dir/data/keyboards/symbols/* /usr/share/eekboard/keyboards/symbols

sudo cp /mnt/host-dir/data/themes/default.css /usr/share/eekboard/themes

  • Then inside /home/eekboard/bin, first run the server with 'eekboard-server', then in another terminal window run 'eekboard'

The keyboard should appear on screen.

Edited by Luciana

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
71 71 }
72 72
73 73 static void
74 multiply (gdouble a, gdouble b, gdouble c, gdouble d,
75 gdouble e, gdouble f, gdouble * x, gdouble * y)
74 multiply (gdouble a, gdouble b, gdouble c, gdouble d,
  • 1 1 <?xml version="1.0"?>
    2 2 <keyboards version="0.90">
    3 3 <keyboard id="ar" name="ar"
    4 geometry="compact" symbols="ar"
    5 longname="Arabic" language="ar"/>
    4 geometry="compact" symbols="ar"
    5 longname="Arabic" language="ar"/>
  • 1 1 <?xml version="1.0"?>
    2 2 <keyboards version="0.90">
    3 3 <keyboard id="ar" name="ar"
    4 geometry="compact" symbols="ar"
    5 longname="Arabic" language="ar"/>
    4 geometry="compact" symbols="ar"
    5 longname="Arabic" language="ar"/>
  • When it comes to licensing changes, these should appear nowhere in the history. The goal is to not have them in the first place, rather than revert them. Try git rebase -i.

  • 71 71 }
    72 72
    73 73 static void
    74 multiply (gdouble a, gdouble b, gdouble c, gdouble d,
    74 multiply (gdouble a, gdouble b, gdouble c, gdouble d,
  • Are the changes related to xklavier needed in order to get the keyboard to work? They will need to come back, so removing them seems a little overkill.

    Apart from the changes with installation directories, did any code change?

  • added needswork label

  • Squeekboard is in a good enough shape to run on the VM. Closing.

  • Please register or sign in to reply
    Loading