Raspberry Pi 3 Guide
To successfully set up the Boot to Qt software stack, you must closely follow the instructions in this section and perform all the described tasks.
In case of problems, see Troubleshooting.
Note: After you have installed the Boot to Qt software stack and want to connect to the target device with SSH or a serial cable, you can access the device by using the user
root and an empty password.
Before you install the Boot to Qt software stack, you should install the required software on the development host:
The Boot to Qt software stack is available as a Qt Board Support Package (QBSP) that can be installed with the MaintenanceTool application or directly from the Qt online installer.
- Download the QBSP file from the Qt Account Downloads page. QBSP files have either a .qbsp or .7z extension.
- Start the MaintenanceTool application and select Add or Remove Components.
- Select Browse QBSP Files, locate the downloaded file, and select Open.
- The Select Components view is updated with content from the QBSP.
Select the Boot to Qt software stack for Raspberry Pi 3 with the following steps:
- Select Qt > Qt for Device Creation.
- Select the Boot to Qt software stack version.
- Select Raspberry Pi 3.
- Select Next.
To finish the installation, follow the instructions in the installation wizard.
The Boot to Qt software stack provides a system image (<target-device> Linux System) and a toolchain (<target-device> Linux Toolchain) for each target device. The system image contains the Boot to Qt software stack and needs to be flashed to the SD card or directly to the target device (see 3. Installing Boot to Qt on Target Device). building and developing applications for the target devices.
Note: Building the Boot to Qt system image and toolchain are not supported on Windows. Thus the sources of the Boot to Qt software stack are available only via the Linux online installer.
On Linux, remember to allow the execution of the installer binary. You can do this by using one of the following methods:
- On the command line enter the
chmod +x <filename>command.
- Right-click the file, and select Properties > Permissions > Allow executing file as program.
Note: Do not execute the installer as a root user or with sudo.
The installer will let you select a directory where the Boot to Qt software stack will be installed. In this documentation, the installation directory is referred to as
<INSTALL_DIR>. The default installation directories are:
Before you can test your Qt applications on the target device, you must flash the target device with an image containing the Boot to Qt software stack.
Use Flashing Wizard to flash the image to your Raspberry Pi 3 Model B:
- Connect your SD card reader to the development host. Make sure that the SD card size is at least 2 GB.
- Launch Qt Creator.
- Select Tools > Flash Boot to Qt Device, and follow the instructions in Flashing Wizard.
The Raspberry Pi hardware does not support client connections via USB. You need to set up a wired or wireless network in order to use this device.
After you have prepared the target device, you must set up the development tools in Qt Creator for your device. Connect your device to the network via an Ethernet cable and launch Qt Creator. In Qt Creator:
- Select Tools > Options > Devices > Add.
- Select Boot2Qt Device > Start Wizard.
- Enter the device name and network address (IPv4). You can check the device address in the Launcher Settings when the device is running the Boot to Qt demo.
- Select Finish.
You also have to configure the correct device to be used for each build and run kit:
- Select Tools > Options > Build & Run > Kits.
- Select one of the predefined kits starting with Boot to Qt... that matches the type of your device.
- Select the correct device in the Device field.
- Select OK.
You are now ready to start developing with Qt for your device. For detailed information about how to deploy Qt projects to the device, see Tutorial: Deploying Your First Project with Boot to Qt.
Available under certain Qt licenses.
Find out more.