Ubuntu server build instructions - PTDreamer/openMSA GitHub Wiki
These instructions were tested on a prestine:
uname -a
Linux jose_server 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Start by installing the necessary packages
sudo apt install build-essential libusb-1.0-0-dev mesa-common-dev git xvfb libfontconfig
You also need to create a symlink to your opengl library
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so
Then clone all the needed repositories
cd
mkdir code
cd code
git clone https://github.com/PTDreamer/openMSA.git
git clone https://github.com/PTDreamer/openMSAGui.git
git clone https://github.com/skalee/non-interactive-qt-installer.git
not part of the project but used as a helper for headless Qt installer
Edit the script file below
vi non-interactive-qt-installer/ci/vars_linux.js
so it looks like
var InstallComponents = [ "qt.qt5.5122.gcc_64", "qt.qt5.5122.qtcharts" ]
var InstallPath = "/opt/Qt"
Define the required variables
export QT_INSTALLER_DOWNLOAD_NAME="qt-unified-linux-x64-online.run"
and
export QT_INSTALLER_VARS="/home/YOUR_USER/code/non-interactive-qt-installer/ci/vars_linux.js"
Then start Qt's installer with
cd non-interactive-qt-installer
xvfb-run --auto-servernum --error-file=/dev/stderr ./qt_installer.sh
Now add Qt to your path and define QT_DIR
export PATH=/opt/Qt/5.12.2/gcc_64/bin/:$PATH
export QTDIR=/opt/Qt
Go to the openMSA directory and build
cd
cd code
cd openMSA
qmake
make
And do the same for openMSAGui
cd
cd code
cd openMSAGui
qmake
make