Setting up the development environment
Qt Installation (All platforms)
The graphical user interface is using Qt. Building Trodes requires installing Qt.
For all platforms, download the Qt online installer.
Make sure to download the right installer for your platform.
It will prompt you login with a Qt account. You create one and verify your email.
After it finishes loading, it will prompt you to select which packages to install.
Select a custom installation.
Deselect the defaults and only select
We want the latest
5.x.x version. Under the latest
Desktop gcc 64 bit
Qt Debug Information Files
For Windows users, it may display Desktop (MSVC) or something similar. Select that.
Leave any packages under “Development tools” selected. Those defaults are fine.
Agree to the licenses and install.
The git repository is hosted on Bitbucket. To set up a local clone, do the following steps.
sudo apt-get install git(if you do not already have git installed)
git clone https://bitbucket.org/mkarlsso/trodes.git
git submodule init
git submodule update
For the first build, it is best to use Qt Creator, and open up Trodes-all.pro. Make sure you are compiling in Release mode (the default is debug mode). Also, make sure that shadow build is turned off. Then, run qmake from Qt Creator. After that, you can build either from Qt Creator or from the command line:
Code is tested on Ubuntu 20.04.
Install the following packages before building:
sudo apt update
sudo apt install build-essential
sudo apt-get install chrpath(used during the build + installation process)
sudo apt-get install mesa-common-dev libglu1-mesa-dev. (Note that this may not actually be necessary; if you are using a graphics card and installed its driver, then OpenGL is probably set up already. Many manufacturers such as Nvidia have implemented OpenGL for their hardware, so installing the appropriate driver will pull in the necessary dependencies).
sudo apt-get install libpulse-dev(needed for audio)
sudo apt-get install libgstreamer-plugins-base0.10-0(optional, for camera module)
Trodes now depends on MSVC 2019, so you will need to install MSVC in order to compile.
Qt on Windows uses jom, which is similar to make. We recommend building Trodes_all.pro from Qt Creator on windows.