4-3 Installation of Qt Creator
In this tutorial, we will learn how to install Qt 5.6.3 on Ubuntu and configure an RZ/G2L Build & Run Kit on Qt Creator.
Step 1: Install Qt Versions
Install Qt 5.6.3 as the primary version for Ubuntu 22.04.
Qt 5.12.10 is optional but provides useful examples.
Downloads
Switching between versions may cause errors due to shared settings.
Backup settings for each version to avoid conflicts.
Settings location:
- Linux:
~/.config/QtProject
- Windows:
%appdata%/QtProject
Step 2: Set Environment Variables
Before launching Qt Creator, set the following environment variables:
unset LD_LIBRARY_PATH
source /opt/poky/3.1.31/environment-setup-aarch64-poky-linux
Step 3: Run Qt Creator
Navigate to the Qt Creator directory and launch the application:
cd ~/Qt5.6.3/Tools/QtCreator/bin/
./qtcreator
Step 4: Connect to RZ/G2L
In Qt Creator, navigate to Tools > External > Configure
.
Under Devices, input the IP address of the RZ/G2L target board and click Test to verify the connection.
Step 5: Configure Kits
Go to Build & Run > Kits and add a new kit named "RZ/G2L".
Set the following paths:
Setting | Value |
---|---|
Device | Select the device configured in the previous step. |
Sysroot | /opt/poky/3.1.31/sysroots/aarch64-poky-linux |
C Compiler | /opt/poky/3.1.31/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc |
C++ Compiler | /opt/poky/3.1.31/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ |
Debugger | /opt/poky/3.1.31/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gdb |
Qt Version | /opt/poky/3.1.31/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake |
CMake | /opt/poky/3.1.31/sysroots/x86_64-pokysdk-linux/usr/bin/cmake |
Fix any errors indicated during the setup process and ensure there are no exclamation marks beside the Kits icon.