Building from source - espotek-org/Labrador GitHub Wiki

Building on Linux

Please note that a 32-bit Linux binary is not built automatically by the server, but the following set of commands should get you a working version of Labrador on Ubuntu and variants (Lubuntu, Xubuntu, Kubuntu etc.)

sudo apt-get update
sudo apt-get install build-essential 
sudo apt-get install pkg-config
sudo apt-get install git
sudo apt-get install qtbase5-dev
sudo apt-get install qtchooser
sudo apt-get install qt5-qmake
sudo apt-get install qtbase5-dev-tools
sudo apt-get install libusb-1.0-0-dev 
sudo apt-get install libfftw3-dev
sudo apt-get install libeigen3-dev
cd ~
git clone https://github.com/espotek-org/Labrador
cd ~/Labrador/Desktop_Interface
QT_SELECT=qt5 qmake
make
sudo make install
sudo ldconfig
labrador

The Raspberry Pi bootstrap script (see below) performs these commands and should also work on Ubuntu and variants.

If you're having any issues, please file a bug report and we can work together to update the wiki.

Raspberry Pi Build

Please note that Raspbian version 9 (Stretch) or later is required to install this software.

To install Labrador on the Raspberry Pi, open a terminal and paste the following command:

wget -O /tmp/labrador_bootstrap_pi https://raw.githubusercontent.com/espotek-org/Labrador/master/labrador_bootstrap_pi && sudo chmod +x /tmp/labrador_bootstrap_pi && sudo /tmp/labrador_bootstrap_pi

This will automatically download, compile and install the latest version of the Labrador software from source. The whole process will take around 20-30 minutes, so don't forget to pack a snack!
After running it, a desktop entry will appear for the Labrador software (under Education), and running the labrador command from the terminal will launch the software interface.

Creating a Debian package

Continuing the instructions from above, you will additionally need to install the debhelper package. Then run dpkg-buildpackage from the Desktop_Interface directory. If everything is successful, you will have a file named espotek-labrador_<version>_<arch>.deb in the parent directory (replace <version> and <arch> with appropriate values) which can be installed using dpkg:

sudo apt-get install debhelper
cd ~/Labrador/Desktop_Interface
DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage -b -j1
cd ..
sudo dpkg -i espotek-labrador_<version>_<arch>.deb

The DEB_BUILD_OPTIONS=nostrip part is optional; it leaves the symbols in case you need them for debugging, and skips creating a separate debug-symbols package. The -j1 part is also optional; it may be needed on Raspberry Pi or other resource-limited computers to build using only a single CPU core.

⚠️ **GitHub.com Fallback** ⚠️