8,367
edits
Changes
→How to install QT
# Use the script below to install QT5 and QT Creator
::{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''install_qt.sh'''
|}
<ol start="2" style="list-style-type: decimal;">
<li><p>After installation, the version number of QT will be automatically printed</p>
<ol style="list-style-type: lower-alpha;">
<li>The qt version that comes with Ubuntu 20.04 is '''5.12.8'''</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''install_qt.sh'''
QMake version 3.1
Using Qt version '''<span style="color:#FF0000">5.12.8</span>''' in /usr/lib/aarch64-linux-gnu|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>The QT version that comes with Ubuntu 22.04 is '''5.15.3'''</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''install_qt.sh'''
QMake version 3.1
Using Qt version '''<span style="color:#FF0000">5.15.3</span>''' in /usr/lib/aarch64-linux-gnu|}</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>The QT version that comes with Debian11 is '''5.15.2'''</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''install_qt.sh'''
QMake version 3.1
Using Qt version '''<span style="color:#FF0000">5.15.2</span>''' in /usr/lib/aarch64-linux-gnu|}</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>The QT version that comes with Debian12 '''is 5.15.8'''</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''install_qt.sh'''
QMake version 3.1
Using Qt version '''<span style="color:#FF0000">5.15.8</span>''' in /usr/lib/aarch64-linux-gnu|}</ol></li></ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then you can see the startup icon of QT Creator in '''Applications'''</li></ol>
[[File:cm4-img337.png]]
You can also use the following command to open QT Creator
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''qtcreator'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''During the startup process of QT and QT application, if the following error is prompted, please ignore it directly, this error will not affect the operation of the application.'''
'''libGL error: failed to create dri screen'''
'''libGL error: failed to create dri screen'''
'''libGL error: failed to load driver: rockchip'''</big>|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>The interface after QT Creator is opened is as follows</li></ol>
[[File:cm4-img338.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>The version of QT Creator is as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Ubuntu20.04''' is as follows</li></ol></li></ol>
[[File:cm4-img339.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Ubuntu22.04''' is as follows</li></ol>
[[File:cm4-img340.png]]
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Debian11''' is as follows</li></ol>
[[File:cm4-img341.png]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Debian12''' is as follows</li></ol>
[[File:cm4-img342.png]]
</ol></li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then set the QT</p>
<ol style="list-style-type: lower-alpha;">
<li>open first '''Help'''->'''About Plugins...'''</li></ol></li></ol>
[[File:cm4-img343.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then remove the tick of '''ClangCodeModel'''</li></ol>
[[File:cm4-img344.png]]
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>'''<span style="color:#FF0000">After setting, you need to restart QT Creator</span>'''</p></li><li><p>Then make sure the GCC compiler used by QT Creator, if the default is Clang, please modify it to GCC</p></li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </olbig> '''Debian12 please skip this step.'''</big>|}
[[File:cm4-img345.png]]
[[File:cm4-img346.png]]
</ol></li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>Then you can open a sample code</li></ol>
[[File:cm4-img347.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>After clicking the sample code, the corresponding instruction document will be opened automatically, you can read the instruction carefully</li></ol>
[[File:cm4-img348.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then click next '''Configure Project'''</li></ol>
[[File:cm4-img349.png]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>Then click the green triangle in the lower left corner to compile and run the sample code</li></ol>
[[File:cm4-img350.png]]
</ol>
<ol start="11" style="list-style-type: decimal;">
<li>After waiting for a period of time, the interface shown in the figure below will pop up, which means that QT can compile and run normally</li></ol>
[[File:cm4-img351.png]]
</ol>
<ol start="12" style="list-style-type: decimal;">
<li>References</li></ol>{| class="wikitable" style="width:800px;" |-|
[https://wiki.qt.io/Install_Qt_5_on_Ubuntu '''https://wiki.qt.io/Install_Qt_5_on_Ubuntu''']
[https://download.qt.io/archive/qt '''https://download.qt.io/archive/qt''']
|}
</ol>
<span id="how-to-install-ros"></span>
== How to install ROS ==