Linux (Ubuntu) Setup (C++)

<< Click to Display Table of Contents >>

Navigation:  Getting started with CVB tutorials > Setting up your system > C++, CMake and Qt >

Linux (Ubuntu) Setup (C++)

This documentation has been tested with Ubuntu 16.04 and 18.04.

1Open a terminal and ensure the system integrity by updating your installed components and their dependencies:
sudo apt-get update

2Install the latest version of the GNU C++ compiler:
 
sudo apt-get install g++

 

LinuxSetup1
 

3Install CMake:
 
sudo apt-get install cmake

LinuxSetup2
 

4Install latest Qt Online Installer for Linux.
It is necessary to create a Qt account for commercial purposes before starting the Qt Online Installer. For Open Source purposes the creation of a Qt account can be skipped.
 
Minimal and recommended Qt version: see Setting up your system
See Qt links for further support.
 
On Ubuntu 18.04 based distributions you can get a suitable Qt version through apt-get. The needed packages are listed in the tutorial documentations, e.g. QmlGevServer tutorial
 
QtInstall
 

5Change the access rights of the downloaded .run file with chmod u+x <qt-file>.run
QtSetup1
 

6Execute the file with e.g. ./qt-unified-linux-x64-3.1.1-online.run, which will start the Qt Online Installer.
It is necessary to create a Qt account for commercial purposes before starting the Qt Online Installer. For Open Source purposes the creation of a Qt account can be skipped.
 

7Execute the Qt Online Installer and enter your account credentials optionally.
Enter the installation path, in our example it is /opt/Qt.
Select the Qt version you would like to install.
The Qt version has to match your compiler and your operating system.
 
QtSetup2
 

8Continue the installation.
 

9Install the GL components with sudo apt-get install libgl-dev.
GLInstall

 

Your system is ready to use CMake and Qt with Common Vision Blox.