Difference between revisions of "Qt5Creator toolchain Qt 5.11.3"

From ESS-WIKI
Jump to: navigation, search
Line 65: Line 65:
 
#Select the "Build & Run" page on the left, switch to "Kits" tab, and click "Add..."
 
#Select the "Build & Run" page on the left, switch to "Kits" tab, and click "Add..."
 
#Click "Add".
 
#Click "Add".
#;Name
+
 
#:input "RK3288 toolchain"
+
;<span style="color:#FF0000;">'''RK3288'''</span>
#;Device Tpye
+
;Name
#:Select "Generic Linux Device"
+
:input "RK3288 toolchain"
#;Device
+
;Device Tpye
#:Select "RK3288"
+
:Select "Generic Linux Device"
#;Compiler
+
;Device
#:Select "GCC 8(C,arm 32bit in /usr/bin)" and "GCC 8(C++,arm 32bit in /usr/bin)"
+
:Select "RK3288"
#;Qt version
+
;Compiler
#:Select "Qt 5.11.3 (RK3288)"<br/>
+
:Select "GCC (C,arm <span style="color:#FF0000;">32</span>bit in /usr/bin)" and "GCC (C++,arm <span style="color:#FF0000;">32</span>bit in /usr/bin)"
#:<br/>
+
;Qt version
 +
:Select "Qt 5.11.3 (RK3288)"<br/>
 +
:<br/>
 +
:
 +
<span style="color:#FF0000;">'''RK3399'''</span>
 +
 
 +
;Name
 +
:input "RK3399 toolchain"
 +
;Device Tpye
 +
:Select "Generic Linux Device"
 +
;Device
 +
:Select "RK3399"
 +
;Compiler
 +
:Select "GCC (C,arm <span style="color:#FF0000;">64</span>bit in /usr/bin)" and "GCC (C++,arm <span style="color:#FF0000;">64</span>bit in /usr/bin)"
 +
;Qt version
 +
:Select "Qt 5.11.3 (RK3288)"
 +
:<br/>
 +
:<br/>
  
 
[[File:RK3288 Add Kits.png|RTENOTITLE]]
 
[[File:RK3288 Add Kits.png|RTENOTITLE]]

Revision as of 11:08, 8 December 2021

Prerequisites

Debian10(buster) is highly recommended OS to develop.

Installing required packages

Please login and perform the following commands:

$ sudo apt-get install -y build-essential 
$ sudo apt-get install -y qtcreator 
$ sudo apt-get install -y qt5-default 
$ sudo apt-get install -y qt5-doc 
$ sudo apt-get install -y qt5-doc-html qtbase5-doc-html 
$ sudo apt-get install -y qtbase5-examples 
$ sudo apt-get install -y qt5-qmake 
$ sudo apt-get install -y rsync
$ sudo apt-get install -y gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf
$ sudo apt-get install -y gcc-8-aarch64-linux-gnu g++-8-aarch64-linux-gnu

Link arm-linux-gnu*-8 to arm-linux-gnu* and aarch64-linux-gnu*-8 to aarch64-linux-gnu*:

$ sudo su
$ cd /usr/bin
$ for f in $(ls arm-linux-gnu*-8);do ln -sf $f $(echo $f|sed "s/-8//");done 
$ for f in $(ls aarch64-linux-gnu*-8);do ln -sf $f $(echo $f|sed "s/-8//");done
$ exit

Installing cross toolchain

Please download RK3288(Password: gm9i) and RK3399(Password: 0kkn) cross compiler toolchain first. Then execute the following command to unzip the cross compiler tool to the /opt directory

For RK3288

$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3288/
$ sudo mkdir -p /opt/toolchain_Qt_V5.11.3/rk3288/
$ sudo tar -zxf rk3288_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3288/

For RK3399

$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3399/ 
$ sudo mkdir -p /opt/toolchain_Qt_V5.11.3/rk3399/ 
$ sudo tar -zxvf rk3399_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3399/

Working within QtCreator

The method of using this toolchain with qtcreator is the same as 5.9.4 toolchain. Therefore, you can refer to rk3288_qt5Creator.

However, the following differences need to be noted:

Config QtCreator ---- Qt Versions

  1. Bring up the options dialog using "Tools" -> "Options..."
  2. Select the "Build & Run" page on the left, switch to "Qt Versions" tab, and click "Add..."
  3. Select qmake file
    Select "/opt/toolchain_Qt_V5.11.3/rk3288/sysroot/qmake-debian-buster-armhf".
    or 
    RK3399 Select "/opt/toolchain_Qt_V5.11.3/rk3399/sysroot/qmake".
  4. Input Version name "Qt 5.11.3 (RK3288 )" or "Qt 5.11.3 (RK3399 )".

RTENOTITLE

Config QtCreator ---- Kits

  1. Bring up the options dialog using "Tools" -> "Options..."
  2. Select the "Build & Run" page on the left, switch to "Kits" tab, and click "Add..."
  3. Click "Add".
RK3288
Name
input "RK3288 toolchain"
Device Tpye
Select "Generic Linux Device"
Device
Select "RK3288"
Compiler
Select "GCC (C,arm 32bit in /usr/bin)" and "GCC (C++,arm 32bit in /usr/bin)"
Qt version
Select "Qt 5.11.3 (RK3288)"

RK3399

Name
input "RK3399 toolchain"
Device Tpye
Select "Generic Linux Device"
Device
Select "RK3399"
Compiler
Select "GCC (C,arm 64bit in /usr/bin)" and "GCC (C++,arm 64bit in /usr/bin)"
Qt version
Select "Qt 5.11.3 (RK3288)"


RTENOTITLE