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

images/creator1.png

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

You will get something like the image below, just click "configure project"

images/creator4.png

Now it is time to build and run, for that click the "play" button (the one inside the red rectangle below"

images/creator5.png

After a while you will see an icon like the one above (inside the green rectangle on the upper right), that means the openMSA backend is up and running.

Now for the gui. Again File->Open File or Project, select "~/code/openMSAGui/openmsagui.pro", click configure project and the hit the play button. After a while you will get something like the image below.

images/gui.png

Note: By default the backend is configured to connect to simulated hardware, you will need to change the configuration in order to connect to real hardware.