<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=RK3288_qt5Creater.</id>
		<title>RK3288 qt5Creater. - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=RK3288_qt5Creater."/>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=RK3288_qt5Creater.&amp;action=history"/>
		<updated>2026-05-14T16:52:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=RK3288_qt5Creater.&amp;diff=21725&amp;oldid=prev</id>
		<title>Xingxing.li: Created page with &quot;{{DISPLAYTITLE:Setting-up QtCreator to cross compile for RK3288}}  {| align=&quot;right&quot; |- | __TOC__ |}  &lt;!-- --&gt;  = Prerequisites =  All operations in this guide are based on Ubu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=RK3288_qt5Creater.&amp;diff=21725&amp;oldid=prev"/>
				<updated>2021-10-26T02:35:01Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:Setting-up QtCreator to cross compile for RK3288}}  {| align=&amp;quot;right&amp;quot; |- | __TOC__ |}  &amp;lt;!-- --&amp;gt;  = Prerequisites =  All operations in this guide are based on Ubu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Setting-up QtCreator to cross compile for RK3288}}&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| __TOC__&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
&lt;br /&gt;
All operations in this guide are based on Ubuntu 18.04 LTS 64bit only.&amp;lt;br/&amp;gt;First please install Ubuntu 18.04 LTS 64bit&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt; with minimum 2GB memory.&lt;br /&gt;
&lt;br /&gt;
== Installing required packages ==&lt;br /&gt;
&lt;br /&gt;
Please login and perform the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ sudo apt-get install build-essential&lt;br /&gt;
$ sudo apt-get install qtcreator&lt;br /&gt;
$ sudo apt-get install qt5-default&lt;br /&gt;
$ sudo apt-get install qt5-doc&lt;br /&gt;
$ sudo apt-get install qt5-doc-html qtbase5-doc-html&lt;br /&gt;
$ sudo apt-get install qtbase5-examples&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing cross toolchain ==&lt;br /&gt;
&lt;br /&gt;
Please download [https://pan.baidu.com/s/1FmO1QK2W6-TKzMYw0pTkkw cross compiler toolchain] (Password: m47o)first. Then execute the following command to unzip the cross compiler tool to the /opt directory&lt;br /&gt;
&lt;br /&gt;
===  ===&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;$ sudo tar -zxf rk3288_toolchain_Qt_V5.9.4.tar.gz -C /opt&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Working within QtCreator =&lt;br /&gt;
&lt;br /&gt;
== Starting the QtCreator ==&lt;br /&gt;
&amp;lt;pre&amp;gt;$ qtcreator&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#The QtCreator's main window shows up.&lt;br /&gt;
#;[[File:RK3399 Qt start init.png|upright|RK3399 Qt start init.png]]&lt;br /&gt;
#Check QtCreator's version by using &amp;quot;Help&amp;quot; -&amp;gt; &amp;quot;About Qt Creator&amp;quot;.&lt;br /&gt;
#;[[File:RK3399 QtCreator version.png|RTENOTITLE]]&lt;br /&gt;
&lt;br /&gt;
== Configuring the Cross-Compiler Options ==&lt;br /&gt;
&lt;br /&gt;
#Bring up the options dialog using &amp;quot;Tools&amp;quot; -&amp;gt; &amp;quot;Options...&amp;quot;&lt;br /&gt;
#Select the &amp;quot;Devices&amp;quot; page on the left, and click &amp;quot;Add...&amp;quot;&lt;br /&gt;
#Select &amp;quot;Generic Linux Device&amp;quot; and click &amp;quot;Start Wizard&amp;quot;.&lt;br /&gt;
#;[[File:RK3399 Qt Remote device setting.png|RTENOTITLE]]&lt;br /&gt;
#Specify proper settings and click &amp;quot;Next&amp;gt;&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt ssh device.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Click &amp;quot;Finish&amp;quot;&lt;br /&gt;
#Device test finished successfully. Click &amp;quot;Close&amp;quot;.&lt;br /&gt;
#;[[File:RK3288 Qt ssh connect.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#;&amp;lt;br/&amp;gt;&lt;br /&gt;
#;If device test failed, please go back to specify proper settings.&lt;br /&gt;
#;:[[File:2015-02-24 113504.png|RTENOTITLE]]&lt;br /&gt;
#:(It is necessary to set a blank password at least, null password does not work.)&lt;br /&gt;
#:&amp;lt;br/&amp;gt;&lt;br /&gt;
#:[[File:2015-02-24 113635.png|RTENOTITLE]]&lt;br /&gt;
#:(It means device's IP is incorrect or some network issues occured.)&lt;br /&gt;
#Click &amp;quot;Apply&amp;quot;&lt;br /&gt;
#Select the &amp;quot;Build &amp;amp; Run&amp;quot; page on the left, switch to &amp;quot;Compilers&amp;quot; tab, drop down &amp;quot;Add&amp;quot; menu and choose &amp;quot;GCC--&amp;gt;C++&amp;quot;.&lt;br /&gt;
#Name the compiler as &amp;quot;RK G++&amp;quot;&lt;br /&gt;
#Click &amp;quot;Browse...&amp;quot; to select &amp;quot;/opt/rk3288_risc/buildroot/output/rockchip_rk3288/host/bin/arm-buildroot-linux-gnueabihf-g++&amp;quot;&lt;br /&gt;
#Click &amp;quot;Apply&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt g++.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Switch to the &amp;quot;Debuggers&amp;quot; tab&lt;br /&gt;
#Click &amp;quot;Add&amp;quot;&lt;br /&gt;
#Name the debugger as &amp;quot;RK GDB&amp;quot;&lt;br /&gt;
#Click &amp;quot;Browse...&amp;quot; to select &amp;quot;/opt/rk3288_risc/buildroot/output/rockchip_rk3288/host/bin/arm-buildroot-linux-gnueabihf-gdb&amp;quot;&lt;br /&gt;
#Click &amp;quot;Apply&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt GDB.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Switch to the &amp;quot;Qt Versions&amp;quot; tab.&lt;br /&gt;
#Check if the &amp;quot;Qt 5.9.4&amp;amp;nbsp;(host)&amp;quot; is auto detected in &amp;quot;Manual&amp;quot; item&amp;amp;nbsp;?&lt;br /&gt;
#;[[File:RK3288 Qt version.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#;If not, click &amp;quot;Add...&amp;quot; to choose the proper qmake.&lt;br /&gt;
#Click &amp;quot;Apply&amp;quot;&lt;br /&gt;
#Switch to the &amp;quot;Kits&amp;quot; tab.&lt;br /&gt;
#Click &amp;quot;Add&amp;quot;.&lt;br /&gt;
#Name the kit as &amp;quot;RK&amp;amp;nbsp;toolchain&amp;quot;&lt;br /&gt;
#Specify the correct &amp;quot;Device Tpye&amp;quot;, &amp;quot;Compiler&amp;quot;, &amp;quot;Debugger&amp;quot; and &amp;quot;Qt version&amp;quot;&lt;br /&gt;
#Click &amp;quot;Browse...&amp;quot; to select &amp;quot;/opt/rk3288_risc/buildroot/output/rockchip_rk3288/host/arm-buildroot-linux-gnueabihf/sysroot&amp;quot; as sysroot&lt;br /&gt;
#Click Apply&lt;br /&gt;
#;[[File:RK3288 Qt toolchain.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Click OK to finalize the configuration.&lt;br /&gt;
#Invoke the options dialog again to make sure the &amp;quot;iMX6 toolchain&amp;quot; is default kit.&lt;br /&gt;
&lt;br /&gt;
== Creating the Project ==&lt;br /&gt;
&lt;br /&gt;
#Bring up &amp;quot;New&amp;quot; dailog using &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;New File or Project...&amp;quot;&lt;br /&gt;
#Select &amp;quot;Applications&amp;quot; -&amp;gt; 'Qt Widgets Application&amp;quot;&lt;br /&gt;
#Click &amp;quot;Choose...&amp;quot;&lt;br /&gt;
#;[[File:RK3399 Project 001.png|RTENOTITLE]]&lt;br /&gt;
#Use &amp;quot;hello_qt&amp;quot; as name&lt;br /&gt;
#Create in &amp;quot;/mnt/sda1/work/qt/PJ&amp;quot;&lt;br /&gt;
#Click &amp;quot;Next&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt project name local.PNG|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Check &amp;quot;RK3288 toolchain&amp;quot;&lt;br /&gt;
#Click &amp;quot;Next&amp;quot;.&lt;br /&gt;
#;[[File:RK3288 Qt project kit select.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Use default settings for &amp;quot;Class Information&amp;quot;&lt;br /&gt;
#Click &amp;quot;Next&amp;quot;&lt;br /&gt;
#;[[File:RK3399 QT Project last.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Use default settings for &amp;quot;Project Management&amp;quot;&lt;br /&gt;
#Click &amp;quot;Finish&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt project finish.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Double click &amp;quot;hello_qt.pro&amp;quot; to switch to editor window&lt;br /&gt;
#In new project it is necessary to add following two lines into qt project file.&lt;br /&gt;
#:&amp;lt;code&amp;gt;target.path = ./&amp;lt;br/&amp;gt;INSTALLS += target&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
#;[[File:RK3288 Qt code pro.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Press &amp;quot;Ctrl+S&amp;quot; to save file.&lt;br /&gt;
#Double click &amp;quot;mainwindow.ui&amp;quot; to switch to Design mode&lt;br /&gt;
#Drag &amp;amp; drop one Label widget on main form, use property editor on the right side to change text and font size&lt;br /&gt;
#;[[File:2015-01-30 174418.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#;[[File:RK3288 Qt code window size.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Save all project files using &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Save All&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Building the Project ==&lt;br /&gt;
&lt;br /&gt;
#Switch to &amp;quot;Projects&amp;quot; mode&lt;br /&gt;
#Check if &amp;quot;build configuration&amp;quot; is set to &amp;quot;Debug&amp;quot;.&lt;br /&gt;
#;[[File:RK3288 Qt debug setting.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Check if &amp;quot;Files to deploy&amp;quot; is correct&lt;br /&gt;
#;[[File:RK3288 Qt debug run.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Set environment variable DISPLAY in QtCreator -&amp;gt; Projects -&amp;gt; Run -&amp;gt; Run Environment. The value of DISPLAY is obtained from the rk3288. For example, execute instruction '''''echo $DISPLAY''''' on RK3288.&lt;br /&gt;
#;[[File:RK3288 Qt debug DISPLAY.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Switch to &amp;quot;Edit&amp;quot; mode&lt;br /&gt;
#Click &amp;quot;Build&amp;quot; using context menu of project &amp;quot;Hello&amp;quot;&lt;br /&gt;
#;[[File:RK3288 Qt code build.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#The green &amp;quot;Build&amp;quot; bar means no error occured.&lt;br /&gt;
#;￼&lt;br /&gt;
#Press &amp;quot;Alt+4&amp;quot; to show &amp;quot;Compile Output&amp;quot;.&lt;br /&gt;
#;;￼&amp;lt;br/&amp;gt;&lt;br /&gt;
#;;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deploying the Application ==&lt;br /&gt;
&lt;br /&gt;
#Click &amp;quot;Deploy&amp;quot; using context menu of project hello_qt&lt;br /&gt;
#;￼&amp;lt;br/&amp;gt;&lt;br /&gt;
#The green &amp;quot;Deploy&amp;quot; bar indicates no error occured.&lt;br /&gt;
#;;[[File:RK3288 Qt deploy output.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Debugging the Application ==&lt;br /&gt;
&lt;br /&gt;
#Click debug icon to start debugging.&lt;br /&gt;
#;[[File:RK3288 Qt debug icon.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#Press &amp;quot;Alt+3&amp;quot; to show &amp;quot;Application Output&amp;quot;&lt;br /&gt;
#;;[[File:RK3288 Qt debug output.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#The &amp;quot;hello_qt&amp;quot; shows up on primary display.&lt;br /&gt;
#;[[File:RK3399 Qt result show.png|RTENOTITLE]]&lt;br /&gt;
#Click &amp;quot;stop&amp;quot; to stop debugging.&lt;br /&gt;
#;[[File:RK3288 Qt debug stop.png|RTENOTITLE]]&amp;lt;br/&amp;gt;&lt;br /&gt;
#The deafult desktop returns back.&lt;br /&gt;
#;;[[File:RK3399 Qt default Desktop.png|RTENOTITLE]]&lt;br /&gt;
&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
#:&lt;br /&gt;
&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>Xingxing.li</name></author>	</entry>

	</feed>