Linux
Thease instructions are for HARK V3.0 or later. The instructions for HARK V2.x or earlier are provided here.
Installation from Pre-compiled Binaries
Compilation Environment
- OS (for V3.2.0 or later)
- Ubuntu 20.04 Focal (64bit)
- OS (for V3.1.0 or earlier)
- Ubuntu 16.04 Xenial (64bit)
- Ubuntu 18.04 Bionic (64bit)
For other environments, please use the source compilation.
HARK later than version 3.2.0 is supported only for focal.
Installation
Register HARK apt repository to install HARK deb packages.
- Ubuntu 16.04 (Xenial) or Ubuntu 18.04 (Bionic) or Ubuntu 20.04 (Focal)
sudo bash -c 'echo -e "deb http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free\ndeb-src http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free" > /etc/apt/sources.list.d/hark.list'
Setup the GPG key.
wget -q -O - http://archive.hark.jp/harkrepos/public.gpg | sudo apt-key add -
node.js installation
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt install -y nodejs
HARK server re-indexing.
sudo apt update
HARK installation.
sudo apt install hark-base harkmw hark-core sudo apt install hark-designer sudo apt install harktool5 harktool5-gui sudo apt install kaldidecoder-hark
- for V3.2.0
sudo apt install hark-linux hark-gtkplot
HARK Designer startup.
hark_designer
HARK Designer is a GUI tool that runs on a browser.
V3.2.0 or later, default browser is changed to Firefox.
- V3.1.0 or earlier
The default browser is Chromium, but you can also use Firefox.
To start HARK Designer with Firefox, use the following command.
hark_designer f
HARK Designer can also be used over the network.
Sartup HARK Designer in Host A(xxx.xxx.xxx.xxx)
hark_desigenr allowremote
To use HARK Designer over the network, access xxx.xxx.xxx.xxx:3000 from Host B,
These options f and allowremote cannot be used together.
See here for how to use HARK Designer.(Japanese only)
Installation from Source Compilation
Installation of HARK from source.
Source compilation supports GCC 5 or later.
The following packages are needed to be installed:
- hark-base
- harkmw
- libharkio3
- libhark-netapi
- hark-core
- harktool5
- kaldidecoder-hark
- hark-linux
- hark-gtkplot
for V3.2.0
To compile these packages, “libtool”, “cmake”, and “python3” are required.
Step1 : Preparation before the compilation
Make your preferred directory to download source codes.
mkdir ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Install dependent packages.
sudo apt install libtool cmake libxml2-dev libzip-dev libasound2-dev libopenblas-dev libgtk2.0-dev libsndfile1-dev libsdl2-dev liblapacke-dev gfortran python3-setuptools python3-dev libpopt-dev
for V3.2.0
sudo apt install python3-daemon python3-paho-mqtt libmosquittopp-dev python3-pkgconfig python3-pybind11
Step2 : hark-base installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest hark-base source codes.
apt source hark-base
Compile and install the source codes.
cd hark-base-*.*.* mkdir build cd build cmake .. make sudo make install
The “*.*.*” describes the package version.
Step3 : harkmw installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest harkmw source codes.
apt source harkmw
Compile and install the source codes.
cd harkmw-*.*.* python3 setup.py build sudo python3 setup.py install
harkmw depends on hark-core.
Therefor you should compile harkmw after hark-core.
Step4 : libhark-netapi installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest libhark-netapi_*.*.* source codes.
apt source libhark-netapi
Compile and install the source codes.
cd libhark-netapi-*.*.* make sudo make install
cd libhark-netapi-*.*.* mkdir build cd build cmake .. make sudo make install
Step5 : libharkio3 installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest libharkio3 source codes.
apt source libharkio3
Compile, and install the source codes.
cd libharkio3-*.*.* mkdir build cd build cmake .. make sudo make install
Step6 : hark-core installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest hark-core source codes.
apt source hark-core
Compile, and install the source codes.
※For Ubuntu 18.04 users, due to build errors related to a bug in openBLAS (See here), libopenblas-dev needs to be purged first before executing “cmake” below, until the fix for openBLAS is applied to the official Ubuntu package. After the successful installation of hark-core, reinstallation of libopenblas-dev is needed.
cd hark-core-*.*.* mkdir build cd build cmake -DENABLE_RASP24=OFF -DENABLE_WS=OFF .. make sudo make install
※If libatlas-base-dev is installed, it cannot be linked with cblas libraries. So it needs the same procedure as libopenblas-dev.
In V3.2.0 or later, hark-linux and hark-gtkplot are added by dividing the Hardware-dependent part of hark-core.
Download the latest hark-linux source codes.
apt source hark-linux
Compile, and install the source codes.
cd hark-linux-*.*.* mkdir build cd build cmake -DENABLE_RASP24=OFF -DENABLE_WS=OFF .. make sudo make install
Download the latest hark-gtkplot source codes.
apt source hark-gtkplot
Compile, and install the source codes.
cd hark-gtkplot-*.*.* mkdir build cd build cmake .. make sudo make install
Step7 : harktool5 installation instruction
Move to your preferred directory.
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download the latest harktool5 source codes.
apt source harktool5
Compile and install the source codes.
cd harktool5/ mkdir build cd build/ cmake .. make sudo make install
Step8 : kaldidecoder-hark installation instruction
See one of the following: