2. Qt Creator¶
Here is the manual for Qt Creator on host PC, Please install and configure firefly Qt environment first.
Buildroot Qt environment instructions locate in Buildroot development
Ubuntu Qt environment instructions locat in Ubuntu manual
Go Qt download page, choose one version like qt-creator-opensource-linux-x86_64-x.x.x.run, download and then execute
./xxx.run to install. Note that the file has to be executable.
Here we use firefly-qt-5.12.2-aarch64 as example, the target platform uses Buildroot system:
The configuration varies slightly depending on the target system, so please read the text carefully, pictures for reference only, do not just copy configuration in the picture
Launch Qt Creator, open
Tools -> Options, find Kits page.
Select Qt Versions
addbutton on the right, select qmake in the Qt environment installation location.
addbutton on the right to add gcc and g++ compilers.
If crossbuild-essential-arm64 is installed on host PC, then the compilers are under
If using 3rd-party compilers, just find compilers’ installation location.
If the target uses Buildroot, use the compilers in the Buildroot Qt environment package.
For easily debug, configure gdb and devices for online debugging:
First install gdb-multiarch on host：
apt install -y gdb-multiarch
Check if /usr/bin/gdbserver exist on target. If not, install it:
apt install -y gdbserver(Buildroot comes with gdbserver, no need to install)
Back to host Qt Creator, click
addto add gdb
Select gdb-multiarch ：
Set the IP, username (root) and password (firefly). You can use static IP on target.
Set the GDB server:
Add previous settings into Kits.
If target uses Ubuntu, you need to set sysroot.
2.3. Compile and Run¶
Welcome -> Open Project to open a demo project, choose the Kits:
Projects -> Run to set platform parameters
Ubuntu target need to use
-platform xcb, or
eglfs as you need.
Configure envionment variables
RK356X Buildroot needs to use
Ubuntu target needs to set different variables according to platform selected above, read the README file in Qt environment package.
If the target Qt environment (mentioned at the beginning) is already prepared and demo ran successfully, then you can click
Fetch Device Environment in this step.
Compile and run:
Build to compile Qt program;
Debug for running and debugging.
To restart the program, remember to click
The output directory has the same location as demo directory.