View Single Post
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#6
I tried to compile okboard a few weeks ago, but didn't have any time (or experience) really, just couldn't sleep (seems to be my main sailfish-timeframe).
I did not get anywhere, especially getting a corpus to build, but I started documenting what I did, let's hope anything in there helps anyone

I used ubuntu.

get sources (I got an error, but it worked when I tried again)

follow directions in okb-keyboard readme to set up your development environment. It's not much work if you already have an sdk running.
as mersdk I had to install aspell as well…
Code:
sudo zypper install aspell

LANGUAGES
install dependencies:
Code:
sudo apt-get install libzip2 python3-dev qt5-qmake
get languages (corpora files):
from http://corpora2.informatik.uni-leipzig.de/download.html


repackage those (unpack, rename the folder to corpus-[LANG] and compress as .tar.bz2) – I think this is incorrect, I just guessed!



remove unwanted language files lang-[LANGUAGE] from the db folder
i just copied my corpus-*.tar.bz2 files there as well and
Code:
	cd okb-engine/db
	mkdir workdir
	export CORPUS_DIR=./
	export WORK_DIR=./workdir
	./build.sh
[edit:]I remember changing something about the available language files in source as well, but did not seem to write that down[/edit]

Asking the dev would be a sensible solution, me thinks.
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)

Last edited by velox; 2015-12-19 at 13:19. Reason: code tags
 

The Following 4 Users Say Thank You to velox For This Useful Post: