Requirements for Linux/X11
Instructions in this documentation assume Ubuntu Linux 64-bit 12.04 LTS or later. Other Linux distributions may work, but have not been tested.
Installing Platform Dependencies
Before you can build the applications with Qt for Device Creation, you must have the correct build tools and other dependencies installed in the development host:
|C/C++ build essentials||Qt for Device Creation assumes that a C++ compiler, debugger, make, and other development tools are provided by the host operating system.|
|Python||Required by the Qt for Device Creation toolchain installer. The minimum version is Python 2.7.|
|libusb-1.0||Required by the QDB tool.|
You can install the dependencies with the following command in a terminal:
sudo apt-get install build-essential python2.7 libusb-1.0-0
Note: The requirements for building your own embedded Linux image are listed in Yocto Build Environment Requirements.
If you have problems with installing the build essentials, see https://help.ubuntu.com/community/InstallingCompilers.
Requirements for Boot to Qt emulator
The Boot to Qt emulator in Qt for Device Creation relies on VirtualBox virtualization software. You can download it from https://www.virtualbox.org/wiki/Downloads or install it via the distribution tools. The minimum version is VirtualBox 4.3.
Installing VirtualBox on the Older Ubuntu version
If you are running an older Ubuntu system such as 12.04, the version of VirtualBox provided by the distribution is not recent enough. To install a newer version, first add a foreign package source:
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list sudo apt-get update
Then, install VirtualBox on your computer:
sudo apt-get install virtualbox-4.3
After you have installed VirtualBox, configure it:
- Start the VirtualBox user interface.
- Select File > Preferences > Network to open VirtualBox network settings.
- Create a new host-only network. VirtualBox automatically assigns a name for the new host-only network. On Linux the default name is vboxnet0.
Note: If the created host-only network is not named as vboxnet0, you must change the VirtualBox settings to use the created host-only network. In VirtualBox:
Boot2Qt-59machine in the VirtualBox main view.
- Select Machine > Settings > Network > Adapter 1 and choose the created host-only network in the Name field.
- Edit the properties of the created host-only network:
- Change the IPv4 address to
192.168.56.1and the IPv4 network mask to
- In the DCHP Server tab, select the Enable Server check box.
- Change the server address to
- Change both the lower and upper address bounds to
- Change the IPv4 address to
If a firewall is enabled on the development host, it needs to allow TCP and UDP packets between your host and the virtual machine.
Available under certain Qt licenses.
Find out more.