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.
Code is tested on Ubuntu 20.04 and Ubuntu 18.04.
Most of the code has been tested in Ubuntu 18.04. Newer code has been tested in 20.04. Both versions should work and are supported.
Install the following packages:
sudo apt-get install git(to pull the Trodes repo from Bitbucket)
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)
Recommended: Select mingw32. This will install a shell that sets up the Qt build environment, so you won’t have to worry about adding qmake to a PATH environment variable.
Alternatively, you can install one of the msvc pre-built packages if you really want 64 bit, but you will have to do some additional things to get Trodes to compile. Don’t worry, it’s not terribly difficult to do. It’s mostly changing variable length arrays to conform to the features that the Microsoft C++ compiler will support. Next, install the Microsoft Visual Studio version that matches the Qt package version you selected (example: install Qt msvc2017 and then Microsoft Visual Studio Community 2017). We also recommend you install Qt’s jom executable to parallelize the compilation process.