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 LTS
.
We want the latest 5.x.x
version. Under the latest 5.x.x
version,
select only:
Desktop gcc 64 bit
Sources
Qt Debug Information Files
Note
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.
Repository setup
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
Building
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:
qmake
make
make install
Platform-specific instructions
Linux (Ubuntu)
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)
Mac
Install Homebrew. Then execute
brew install git
Go to Apple’s developer website. Search for Xcode. Download and install that as well as Xcode Command Line Tools. Then from the top menu, Xcode->Preferences->Locations. Select the appropriate kit for the Command Line Tools.
Windows
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.