采用 Qt Edu for Developers package, you can also develop for embedded devices with Raspberry Pi as target hardware. This is done by adding a Qt Board Support Package (QBSP) to your existing Qt installation, and flashing an SD card used by Raspberry Pi with a Boot to Qt system image.
注意: Windows and Linux are supported as development hosts, but macOS is not supported.
First, complete the Qt Edu for Developers installation steps before continuing.
Log in to your Qt 帐户 . Go to the 下载 section and select Qt for Device Creation QBSP for the EDU license from the drop-down menu in the Product 字段。
Download the correct version of the .qbsp file for your development host (Windows or Linux).
Go to Qt's installation folder, and run MaintenanceTool .
Maintenance tool allows you to modify your existing Qt installation. Navigate to Custom installation 并选择 下一 .
选择
Browse QBSP files
. In the file dialog window, locate and select the
.qbsp
file you downloaded from your Qt Account.
After this, the list of available components is updated. Under Boot to Qt Software Stack ,选择 Raspberry Pi and then 下一 . This will install the Boot to Qt system image and toolchain for Raspberry Pi.
To complete the setup, the Boot to Qt system image needs to be flashed to an SD card used as the boot drive for Raspberry Pi. In addition, Qt Creator needs to be configured for connecting to the device running the Boot to Qt software stack, using either a wired or wireless network connection.
These steps are performed in Qt Creator, see Qt Creator: Connecting Boot2Qt Devices 了解细节。
Qt Edu for Developers Qt Edu resources