C
Requirements for Emulator
Qt Creator
Starting with Qt Creator 4.11, development with the Boot to Qt emulator is no longer supported. If Qt Creator 4.10 is not available from the Qt online installer, you will need to install it separately in order to use the existing emulator images. You can download Qt Creator installation packages from the Qt Account Downloads page.
After you have downloaded and installed Qt Creator, you must set it up to use the pre-configured emulator settings from the original SDK installation path. To do this, start Qt Creator with additional command line arguments or add the same information to a settings file.
Using the command command line argument, tell Qt Creator the location of the SDK. Note that this needs to be done each time you start Qt Creator.
<Qt Creator install path>/bin/qtcreator -installsettingspath <qtsdkroot>/Tools/QtCreator/share/qtcreator
Or permanently add the same path to a new settings file in <Qt Creator install path>/share/qtcreator/QtProject/QtCreator.ini
[Settings] InstallSettings=<qtsdkroot>/Tools/QtCreator/share/qtcreator
VirtualBox
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.
After you have installed VirtualBox, configure it:
- Start the VirtualBox user interface.
- Open the VirtualBox network settings as follows:
- In VirtualBox 4.x, select File > Preferences > Network.
- In VirtualBox 5.x and 6.x, select File > Host Network Manager.
- Create a new host-only network. VirtualBox automatically assigns a name for the new host-only network. On Windows the default name is VirtualBox Host-Only Ethernet Adapter and on Linux the default name is vboxnet0.
Note: If the created host-only network is not using the default name, you must change the VirtualBox settings to use the created host-only network. In VirtualBox:
- Select
Boot2Qt-59
machine in the VirtualBox main view. - Select Machine > Settings > Network > Adapter 1 and choose the created host-only network in the Name field.
- Select
- Edit the properties of the created host-only network:
- Change the IPv4 address to
192.168.56.1
and the IPv4 network mask to255.255.255.0
. - Enable the DCHP server as follows:
- In VirtualBox 4.x, open the DCHP Server tab and select the Enable Server check box.
- In VirtualBox 5.x and 6.x, select the Enable check box for DCHP Server.
- Change the DCHP server address to
192.168.56.1
. - Change the DCHP server mask to
255.255.255.0
. - Change both the lower and upper address bounds for the DCHP server to
192.168.56.101
.
- 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.