Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 3B

711 bytes added, 16:42, 11 August 2023
QT installation method
# Use the following script 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>The QT version number will be automatically printed after installation</p>
<ol style="list-style-type: lower-alpha;">
<li>Ubuntu20.04 comes with QT version '''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>Ubuntu22.04 comes with QT version '''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>Debian11 comes with QT version '''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>Debian12 comes with QT version '''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 QT Creator launch icon in '''Applications'''</li></ol>
[[File:pi3b-img327.png]]
QT Creator can also be opened using the following command
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''qtcreator'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''During the startup of QT and QT applications, if the following error is displayed, ignore it. This error has no impact on application running.'''
'''During the startup of QT and QT applications, if the following error is displayed, ignore it. This error has no impact on application running.'''
'''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:pi3b-img328.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>The QT Creator version is shown below</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:pi3b-img329.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:pi3b-img330.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:pi3b-img331.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:pi3b-img332.png]]
</ol></li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then set QT</p>
<ol style="list-style-type: lower-alpha;">
<li>First open '''Help'''-&gt;'''About Plugins...'''</li></ol></li></ol>
[[File:pi3b-img333.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then remove the check box for '''ClangCodeModel'''</li></ol>
[[File:pi3b-img334.png]]
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>'''<span style="color:#FF0000">Restart QT Creator after the Settings are complete</span>'''</p></li><li><p>Then make sure that QT Creator uses the GCC compiler, if the default is Clang, change it to GCC</p></li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </olbig> '''Debian12 Please skip this step.'''</big>|}
[[File:pi3b-img335.png]]
[[File:pi3b-img336.png]]
</ol></li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>You can then open a sample code</li></ol>
[[File:pi3b-img337.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>Clicking on the example code will automatically open the corresponding instruction document, you can carefully read the instructions</li></ol>
[[File:pi3b-img338.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then click '''Configure Project'''</li></ol>
[[File:pi3b-img339.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:pi3b-img340.png]]
</ol>
<ol start="11" style="list-style-type: decimal;">
<li>After waiting for a period of time, the interface shown in the following figure will pop up, which indicates that QT can compile and run normally</li></ol>
[[File:pi3b-img341.png]]
</ol>
<ol start="12" style="list-style-type: decimal;">
<li>Reference documents</li></ol>{| class="wikitable" style="width:800px;" |-|
https://wiki.qt.io/Install_Qt_5_on_Ubuntu
https://download.qt.io/archive/qt
|}
</ol>
<span id="ros-installation-method"></span>
<span id="ros-installation-method"></span>
== ROS Installation Method ==