Skip to main content

OxOOL v4 community edition compiling on Ubuntu 20.04 HOWTO

  1. First thing first, install a Ubuntu 20.04 server! Can it be run on Ubuntu 20.04 desktop? Yes, but why bother? :-)

  2. Upgrade the system:

sudo apt update
sudo apt upgrade -y
  1. Make sure you install OpenSSH and Vim (I'm a Vim guy! All right, but remember to install your favorite editor, okay?) and a couple of tools:
sudo apt install vim openssh-server net-tools curl git -y
  1. Import OSSII public key
curl http://www.oxoffice.com.tw/deb/OSSII-2022.key | sudo apt-key add
  1. Set up OxOOL repository
cd /etc/apt/sources.list.d/
sudo wget http://www.oxoffice.com.tw/deb/oxool-community-v4-focal.list
  1. Install software packages necessary for compiling OxOOL (use option apt install -y if you don't like to be asked everytime)
sudo apt update
sudo apt install oxoffice* libpoco-dev libgumbo-dev
sudo apt install build-essential libsqlite3-dev libcurl4-openssl-dev libcppunit-dev libcap-dev libcap2-bin libgit2-dev libtool libpng-dev automake m4 wget curl autoconf pkg-config openssl libgumbo-dev ccache fontconfig libfontconfig1-dev libpam-dev
sudo apt install devscripts debhelper dh-systemd dh-exec
sudo apt install libodbc1 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5
sudo apt install hunspell
sudo apt install python3-polib python3-lxml
  1. Install and setup Node.js
cd ~
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
  1. Clone OxOOL-community code from GitHub and switch to branch v4
cd ~
git clone https://github.com/OSSII/oxool-community.git
cd oxool-community
git switch v4
  1. For debug and developing, run autogen.sh directly WITHOUT running configure
cd oxool-community
./autogen.sh

It will enable debug options so that you can test and debug by running make run.

  1. For installing, you can build deb packages directly: debuild -b -uc -us The built deb packages will be one level up the compiling directory:
cd ..
ls oxool_4.x.x-1.community_amd64.deb

The generated deb files can be then installed in the system.