Difference between revisions of "RK ALL toolchain Qt 5.11.3"
Line 1: | Line 1: | ||
− | |||
− | + | = Prerequisites = | |
− | < | + | <span style="color:#FF0000;">Debian10(buster) is highly recommended OS to develop.</span> |
− | + | == Installing required packages == | |
− | <pre> | + | Please login and perform the following commands: |
− | $ sudo apt-get install -y build-essential | + | <pre>$ sudo apt-get install -y build-essential |
$ sudo apt-get install -y qtcreator | $ sudo apt-get install -y qtcreator | ||
$ sudo apt-get install -y qt5-default | $ sudo apt-get install -y qt5-default | ||
Line 20: | Line 19: | ||
</pre> | </pre> | ||
− | + | Link arm-linux-gnu*-8 to arm-linux-gnu* and aarch64-linux-gnu*-8 to aarch64-linux-gnu*: | |
− | + | <pre>$ sudo su | |
− | <pre> | ||
− | $ sudo su | ||
$ cd /usr/bin | $ 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 arm-linux-gnu*-8);do ln -sf $f $(echo $f|sed "s/-8//");done | ||
Line 30: | Line 27: | ||
</pre> | </pre> | ||
− | + | | |
− | |||
− | |||
− | + | == Installing cross toolchain == | |
− | + | Please download [https://pan.baidu.com/s/1JnXJ_X_HRDWoB14VBIq9fA RK3288](Password: gm9i) 、 [https://pan.baidu.com/s/1OEzbJsgBSo3n5DdwRY2Rag RK3399](Password: 0kkn) and (password:)cross compiler toolchain first. Then execute the following command to unzip the cross compiler tool to the /opt directory | |
− | <pre> | + | For RK3288 |
− | $ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3288/ | + | <pre>$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3288/ |
$ sudo mkdir -p /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/ | $ sudo tar -zxf rk3288_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3288/ | ||
</pre> | </pre> | ||
− | + | For RK3399 | |
− | + | <pre>$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3399/ | |
− | <pre> | ||
− | $ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3399/ | ||
$ sudo mkdir -p /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/ | $ sudo tar -zxvf rk3399_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3399/ | ||
</pre> | </pre> | ||
− | + | For RK3568 | |
− | + | <pre>$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3568/ | |
− | <pre> | ||
− | $ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3568/ | ||
$ sudo mkdir -p /opt/toolchain_Qt_V5.11.3/rk3568/ | $ sudo mkdir -p /opt/toolchain_Qt_V5.11.3/rk3568/ | ||
$ sudo tar -zxvf rk3568_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3568/ | $ sudo tar -zxvf rk3568_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3568/ | ||
</pre> | </pre> | ||
− | + | == Config QtCreator ---- Qt Versions == | |
− | + | #Bring up the options dialog using "Tools" -> "Options..." | |
− | + | #Select the "Build & Run" page on the left, switch to "Qt Versions" tab, and click "Add..." | |
− | + | #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". | |
− | + | #;or RK3399 Select "/opt/toolchain_Qt_V5.11.3/rk3399/sysroot/qmake-debian-buster-armhf " | |
− | + | #Input Version name "Qt 5.11.3 (RK3288 )" or "Qt 5.11.3 (RK3399 )". | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <img _fck_mw_filename="RK3288 Add Qt Verions.png" _fck_mw_origimgheight="597" _fck_mw_origimgwidth="1091" alt="RTENOTITLE" src="/wiki/images/0/0f/RK3288_Add_Qt_Verions.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | == Config QtCreator ---- Kits == | |
− | + | #Bring up the options dialog using "Tools" -> "Options..." | |
− | + | #Select the "Build & Run" page on the left, switch to "Kits" tab, and click "Add..." | |
− | + | #Click "Add". | |
− | |||
− | |||
− | + | ;<span style="color:#FF0000;">'''RK3288'''</span> | |
− | + | ;Name | |
− | + | :input "RK3288 toolchain" | |
− | + | ;Device Tpye | |
− | + | :Select "Generic Linux Device" | |
− | + | ;Device | |
− | + | :Select "RK3288" | |
− | + | ;Compiler | |
− | + | :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)" | |
− | + | ;Qt version | |
− | + | :Select "Qt 5.11.3 (RK3288)" | |
− | + | : | |
− | + | : | |
− | |||
− | |||
− | + | <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 (RK3399)" | |
− | + | : | |
− | + | : | |
− | |||
− | |||
− | + | <img _fck_mw_filename="RK3288 Add Kits.png" _fck_mw_origimgheight="597" _fck_mw_origimgwidth="1091" alt="RTENOTITLE" src="/wiki/images/b/b1/RK3288_Add_Kits.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | == Creating the Project == | |
− | + | #Bring up "New" dailog using "File" -> "New File or Project..." | |
− | + | #Select "Applications" -> 'Qt Widgets Application" | |
− | + | #Click "Choose..." | |
− | + | #;<img _fck_mw_filename="RK3399 Project 001.png" _fck_mw_origimgheight="733" _fck_mw_origimgwidth="1308" alt="RTENOTITLE" src="/wiki/images/4/4b/RK3399_Project_001.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Use "Hello" as name | |
− | + | #Create in "/mnt/sda1/work/qt/qt_PJ" | |
− | + | #Click "Next" | |
− | + | #;<img _fck_mw_filename="RK3399 Qt Project local.png" _fck_mw_origimgheight="128" _fck_mw_origimgwidth="738" alt="RTENOTITLE" src="/wiki/images/7/7f/RK3399_Qt_Project_local.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Check "RK toolchain" | |
− | + | #Click "Next". | |
− | + | #;<img _fck_mw_filename="RK3399 Qt Project toolchain.png" _fck_mw_origimgheight="736" _fck_mw_origimgwidth="1305" alt="RTENOTITLE" src="/wiki/images/b/b2/RK3399_Qt_Project_toolchain.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Use default settings for "Class Information" | |
− | + | #Click "Next" | |
− | + | #;<img _fck_mw_filename="RK3399 QT Project last.png" _fck_mw_origimgheight="731" _fck_mw_origimgwidth="1304" alt="RTENOTITLE" src="/wiki/images/7/7c/RK3399_QT_Project_last.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Use default settings for "Project Management" | |
− | + | #Click "Finish" | |
− | + | #;<img _fck_mw_filename="RK3399 Qt Project last2.png" _fck_mw_origimgheight="725" _fck_mw_origimgwidth="1305" alt="RTENOTITLE" src="/wiki/images/7/7c/RK3399_Qt_Project_last2.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Double click "Hello.pro" to switch to editor window | |
− | + | #In new project it is necessary to add following two lines into qt project file. | |
− | + | #:<code>target.path = .<br/> INSTALLS += target</code> | |
− | + | #;<img _fck_mw_filename="RK3399 Qt Project code002.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/0/0b/RK3399_Qt_Project_code002.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Press "Ctrl+S" to save file. | |
− | + | #Double click "mainwindow.ui" to switch to Design mode | |
− | + | #Drag & drop one Label widget on main form, use property editor on the right side to change text and font size | |
− | + | #;<img _fck_mw_filename="2015-01-30 174418.png" _fck_mw_origimgheight="338" _fck_mw_origimgwidth="279" alt="RTENOTITLE" src="/wiki/images/3/31/2015-01-30_174418.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #;<img _fck_mw_filename="RK3399 Qt Project code003.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/3/3c/RK3399_Qt_Project_code003.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Save all project files using "File" -> "Save All" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Building the Project == | |
− | + | #Switch to "Projects" mode | |
− | + | #Check if "build configuration" is set to "Debug". | |
− | + | #;<img _fck_mw_filename="RK3399 Qt debug setting.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/a/a8/RK3399_Qt_debug_setting.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Check if "Files to deploy" is correct | |
− | + | #;<img _fck_mw_filename="RK3399 Qt run setting.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/8/8c/RK3399_Qt_run_setting.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Set environment variable DISPLAY in QtCreator -> Projects -> Run -> Run Environment. The value of DISPLAY is obtained from the rk3399. For example, execute instruction '''''echo $DISPLAY''''' on RK3399. | |
− | + | #;<img _fck_mw_filename="RK3399 Qt ENV Display.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/f/f4/RK3399_Qt_ENV_Display.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Switch to "Edit" mode | |
− | + | #Click "Build" using context menu of project "Hello" | |
− | + | #;<img _fck_mw_filename="RK3399 Qt build start.png" _fck_mw_origimgheight="640" _fck_mw_origimgwidth="1212" alt="RTENOTITLE" src="/wiki/images/d/d6/RK3399_Qt_build_start.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #The green "Build" bar means no error occured. | |
− | + | #;<img _fck_mw_filename="RK3399 Qt build status.png" _fck_mw_origimgheight="28" _fck_mw_origimgwidth="996" alt="RTENOTITLE" src="/wiki/images/5/5c/RK3399_Qt_build_status.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Press "Alt+4" to show "Compile Output". <img _fck_mw_filename="RK3399 Qt build output.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/a/af/RK3399_Qt_build_output.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Deploying the Application == | |
− | + | #Click "Deploy" using context menu of project Hello<img _fck_mw_filename="RK3399 Qt deploy start.PNG" _fck_mw_origimgheight="532" _fck_mw_origimgwidth="1008" alt="RTENOTITLE" src="/wiki/images/c/c1/RK3399_Qt_deploy_start.PNG" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #The green "Deploy" bar indicates no error occured.<img _fck_mw_filename="RK3399 Qt deploy output.png" _fck_mw_origimgheight="367" _fck_mw_origimgwidth="996" alt="RTENOTITLE" src="/wiki/images/3/35/RK3399_Qt_deploy_output.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | |||
− | |||
− | + | == Debugging the Application == | |
− | + | #Click debug icon to start debugging. | |
− | + | #;<img _fck_mw_filename="RK3399 Qt debug start.png" _fck_mw_origimgheight="197" _fck_mw_origimgwidth="60" alt="RTENOTITLE" src="/wiki/images/1/17/RK3399_Qt_debug_start.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Press "Alt+3" to show "Application Output"<img _fck_mw_filename="RK3399 Qt debug output.png" _fck_mw_origimgheight="366" _fck_mw_origimgwidth="994" alt="RTENOTITLE" src="/wiki/images/7/75/RK3399_Qt_debug_output.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #The "Hello" shows up on primary display. | |
− | + | #;<img _fck_mw_filename="RK3399 Qt result show.png" _fck_mw_origimgheight="327" _fck_mw_origimgwidth="404" alt="RTENOTITLE" src="/wiki/images/a/ac/RK3399_Qt_result_show.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #Click "stop" to stop debugging. | |
− | + | #;<img _fck_mw_filename="RK3399 Qt debug stop.png" _fck_mw_origimgheight="55" _fck_mw_origimgwidth="346" alt="RTENOTITLE" src="/wiki/images/0/02/RK3399_Qt_debug_stop.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | + | #The deafult desktop returns back.<img _fck_mw_filename="RK3399 Qt default Desktop.png" _fck_mw_origimgheight="720" _fck_mw_origimgwidth="1280" alt="RTENOTITLE" src="/wiki/images/6/60/RK3399_Qt_default_Desktop.png" style="vertical-align:middle;" title="RTENOTITLE" /> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 09:38, 6 August 2023
Contents
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) 、 RK3399(Password: 0kkn) and (password:)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/
For RK3568
$ sudo rm -rf /opt/toolchain_Qt_V5.11.3/rk3568/ $ sudo mkdir -p /opt/toolchain_Qt_V5.11.3/rk3568/ $ sudo tar -zxvf rk3568_toolchain_Qt_V5.11.3_*.tar.gz -C /opt/toolchain_Qt_V5.11.3/rk3568/
Config QtCreator ---- Qt Versions
- Bring up the options dialog using "Tools" -> "Options..."
- Select the "Build & Run" page on the left, switch to "Qt Versions" tab, and click "Add..."
- 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".
- or RK3399 Select "/opt/toolchain_Qt_V5.11.3/rk3399/sysroot/qmake-debian-buster-armhf "
- Input Version name "Qt 5.11.3 (RK3288 )" or "Qt 5.11.3 (RK3399 )".
<img _fck_mw_filename="RK3288 Add Qt Verions.png" _fck_mw_origimgheight="597" _fck_mw_origimgwidth="1091" alt="RTENOTITLE" src="/wiki/images/0/0f/RK3288_Add_Qt_Verions.png" style="vertical-align:middle;" title="RTENOTITLE" />
Config QtCreator ---- Kits
- Bring up the options dialog using "Tools" -> "Options..."
- Select the "Build & Run" page on the left, switch to "Kits" tab, and click "Add..."
- 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 (RK3399)"
<img _fck_mw_filename="RK3288 Add Kits.png" _fck_mw_origimgheight="597" _fck_mw_origimgwidth="1091" alt="RTENOTITLE" src="/wiki/images/b/b1/RK3288_Add_Kits.png" style="vertical-align:middle;" title="RTENOTITLE" />
Creating the Project
- Bring up "New" dailog using "File" -> "New File or Project..."
- Select "Applications" -> 'Qt Widgets Application"
- Click "Choose..."
- <img _fck_mw_filename="RK3399 Project 001.png" _fck_mw_origimgheight="733" _fck_mw_origimgwidth="1308" alt="RTENOTITLE" src="/wiki/images/4/4b/RK3399_Project_001.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Use "Hello" as name
- Create in "/mnt/sda1/work/qt/qt_PJ"
- Click "Next"
- <img _fck_mw_filename="RK3399 Qt Project local.png" _fck_mw_origimgheight="128" _fck_mw_origimgwidth="738" alt="RTENOTITLE" src="/wiki/images/7/7f/RK3399_Qt_Project_local.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Check "RK toolchain"
- Click "Next".
- <img _fck_mw_filename="RK3399 Qt Project toolchain.png" _fck_mw_origimgheight="736" _fck_mw_origimgwidth="1305" alt="RTENOTITLE" src="/wiki/images/b/b2/RK3399_Qt_Project_toolchain.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Use default settings for "Class Information"
- Click "Next"
- <img _fck_mw_filename="RK3399 QT Project last.png" _fck_mw_origimgheight="731" _fck_mw_origimgwidth="1304" alt="RTENOTITLE" src="/wiki/images/7/7c/RK3399_QT_Project_last.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Use default settings for "Project Management"
- Click "Finish"
- <img _fck_mw_filename="RK3399 Qt Project last2.png" _fck_mw_origimgheight="725" _fck_mw_origimgwidth="1305" alt="RTENOTITLE" src="/wiki/images/7/7c/RK3399_Qt_Project_last2.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Double click "Hello.pro" to switch to editor window
- In new project it is necessary to add following two lines into qt project file.
target.path = .
INSTALLS += target- <img _fck_mw_filename="RK3399 Qt Project code002.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/0/0b/RK3399_Qt_Project_code002.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Press "Ctrl+S" to save file.
- Double click "mainwindow.ui" to switch to Design mode
- Drag & drop one Label widget on main form, use property editor on the right side to change text and font size
- <img _fck_mw_filename="2015-01-30 174418.png" _fck_mw_origimgheight="338" _fck_mw_origimgwidth="279" alt="RTENOTITLE" src="/wiki/images/3/31/2015-01-30_174418.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- <img _fck_mw_filename="RK3399 Qt Project code003.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/3/3c/RK3399_Qt_Project_code003.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Save all project files using "File" -> "Save All"
Building the Project
- Switch to "Projects" mode
- Check if "build configuration" is set to "Debug".
- <img _fck_mw_filename="RK3399 Qt debug setting.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/a/a8/RK3399_Qt_debug_setting.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Check if "Files to deploy" is correct
- <img _fck_mw_filename="RK3399 Qt run setting.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/8/8c/RK3399_Qt_run_setting.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Set environment variable DISPLAY in QtCreator -> Projects -> Run -> Run Environment. The value of DISPLAY is obtained from the rk3399. For example, execute instruction echo $DISPLAY on RK3399.
- <img _fck_mw_filename="RK3399 Qt ENV Display.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/f/f4/RK3399_Qt_ENV_Display.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Switch to "Edit" mode
- Click "Build" using context menu of project "Hello"
- <img _fck_mw_filename="RK3399 Qt build start.png" _fck_mw_origimgheight="640" _fck_mw_origimgwidth="1212" alt="RTENOTITLE" src="/wiki/images/d/d6/RK3399_Qt_build_start.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- The green "Build" bar means no error occured.
- <img _fck_mw_filename="RK3399 Qt build status.png" _fck_mw_origimgheight="28" _fck_mw_origimgwidth="996" alt="RTENOTITLE" src="/wiki/images/5/5c/RK3399_Qt_build_status.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Press "Alt+4" to show "Compile Output". <img _fck_mw_filename="RK3399 Qt build output.png" _fck_mw_origimgheight="740" _fck_mw_origimgwidth="1400" alt="RTENOTITLE" src="/wiki/images/a/af/RK3399_Qt_build_output.png" style="vertical-align:middle;" title="RTENOTITLE" />
Deploying the Application
- Click "Deploy" using context menu of project Hello<img _fck_mw_filename="RK3399 Qt deploy start.PNG" _fck_mw_origimgheight="532" _fck_mw_origimgwidth="1008" alt="RTENOTITLE" src="/wiki/images/c/c1/RK3399_Qt_deploy_start.PNG" style="vertical-align:middle;" title="RTENOTITLE" />
- The green "Deploy" bar indicates no error occured.<img _fck_mw_filename="RK3399 Qt deploy output.png" _fck_mw_origimgheight="367" _fck_mw_origimgwidth="996" alt="RTENOTITLE" src="/wiki/images/3/35/RK3399_Qt_deploy_output.png" style="vertical-align:middle;" title="RTENOTITLE" />
Debugging the Application
- Click debug icon to start debugging.
- <img _fck_mw_filename="RK3399 Qt debug start.png" _fck_mw_origimgheight="197" _fck_mw_origimgwidth="60" alt="RTENOTITLE" src="/wiki/images/1/17/RK3399_Qt_debug_start.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Press "Alt+3" to show "Application Output"<img _fck_mw_filename="RK3399 Qt debug output.png" _fck_mw_origimgheight="366" _fck_mw_origimgwidth="994" alt="RTENOTITLE" src="/wiki/images/7/75/RK3399_Qt_debug_output.png" style="vertical-align:middle;" title="RTENOTITLE" />
- The "Hello" shows up on primary display.
- <img _fck_mw_filename="RK3399 Qt result show.png" _fck_mw_origimgheight="327" _fck_mw_origimgwidth="404" alt="RTENOTITLE" src="/wiki/images/a/ac/RK3399_Qt_result_show.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- Click "stop" to stop debugging.
- <img _fck_mw_filename="RK3399 Qt debug stop.png" _fck_mw_origimgheight="55" _fck_mw_origimgwidth="346" alt="RTENOTITLE" src="/wiki/images/0/02/RK3399_Qt_debug_stop.png" style="vertical-align
- middle;" title="RTENOTITLE" />
- The deafult desktop returns back.<img _fck_mw_filename="RK3399 Qt default Desktop.png" _fck_mw_origimgheight="720" _fck_mw_origimgwidth="1280" alt="RTENOTITLE" src="/wiki/images/6/60/RK3399_Qt_default_Desktop.png" style="vertical-align:middle;" title="RTENOTITLE" />