Ubuntu desktop build instructions - PTDreamer/openMSA GitHub Wiki
How to compile on Ubuntu desktop
These instructions were tested on a prestine:
uname -a
Linux jose-virtual-machine 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 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
Starting from a prestine Ubuntu you first need to install the following:
sudo apt install build-essential libusb-1.0-0-dev mesa-common-dev git
You also need to symlink your opengl library:
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so
After that download the Qt installer with:
wget https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
Make it executable and run it with:
sudo chmod +x qt-unified-linux-x64-online.run
and then
./qt-unified-linux-x64-online.run
You will get something like:
images/installer1.png click next images/installer2.png click skip images/installer3.png next again images/installer4.png choose the directory in which you want to install images/installer5.png make sure you select "Qt 5.12.2" and click next images/installer6.png accept the license and click next images/installer7.png click install images/installer8.png click next images/installer9.png click finish
At this time Qt creator should open
Now click tools->option and make sure your compiler is set to gcc like the image below
Now is time to clone the code from gitHub
cd
mkdir code
git clone https://github.com/PTDreamer/openMSA.git
git clone https://github.com/PTDreamer/openMSAGui.git
After that return to QtCreator click File->Open File or Project and choose the file "~/code/openMSA/openmsa.pro"
images/creator2.png images/creator3.png