hark-lib (Source Compilation)

These instructions are for hark-lib version 1.0.0 or later.

Compilation Environment

  • OS
    • Ubuntu 20.04 Focal (64bit)
    • Ubuntu 22.04 Jammy (64bit)


Installation instruction

Step.0 Registering our repository.

    Step.0 can be skipped in the environment where HARK is installed in the https://hark.jp/install/linux/ procedure. Step.0 is required if you want to install only hark-lib without installing HARK.

Register HARK apt repository to install HARK deb packages.

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 -


Step.1 Get build tools and dependent libraries.

sudo apt update
sudo apt install libtool cmake cmake-extras build-essential libopenblas-base libopenblas-dev gfortran liblapack-dev liblapacke-dev libeigen3-dev pybind11-dev python3-dev python3-pybind11 python3-setuptools python3-pkgconfig python3-pip python3-numpy python3-scipy python3-matplotlib python3-kivy libfmt-dev zlib1g-dev libharkio3


Step.2 Download and Build hark-lib and hark-lib python bindings source code.

cd ~/
mkdir YOUR_DIR

wget http://archive.hark.jp/harkrepos/dists/DISTRO/non-free/source/libhark-lib_HARK_VER.tar.xz
tar -Jxvf libhark-lib_HARK_VER.tar.xz

cd hark-lib
mkdir build
cd build
sudo make install

cd ..
cd python
python3 ./setup.py build
sudo python3 ./setup.py install

If you want to know which HARK_VER that can be downloaded, please access directly from your browser at the following location.

  • For Ubuntu 20.04 (focal) users.
  • For Ubuntu 22.04 (jammy) users.


  • YOUR_DIR : Your work directory path
  • HARK_VER : Package version
      e.g.) 1.0.0, 1.0.1, etc…
  • DISTRO : Ubuntu distribution
      e.g.) focal, jammy, etc…


Back to Top