8,367
edits
Changes
→QT installation method
<ol style="list-style-type: decimal;">
<li><p>You can install QT5 and QT Creator with the following scripts</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''install_qt.sh'''</p>|}</li>
<li><p>After installation, it will automatically print the QT version number</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Ubuntu20.04's own QT version is '''5.12.8'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''install_qt.sh'''</p>
<p>......</p>
<p>QMake version 3.1</p>
<p>Using Qt version '''<span style="color:#FF0000">5.12.8</span>''' in /usr/lib/aarch64-linux-gnu</p>|}</li>
<li><p>Ubuntu22.04's own QT version is '''5.15.3'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''install_qt.sh'''</p>
<p>......</p>
<p>QMake version 3.1</p>
<p>Using Qt version '''<span style="color:#FF0000">5.15.3</span>''' in /usr/lib/aarch64-linux-gnu</p>|}</li>
<li><p>The QT version comes with Debian11 is '''5.15.2'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''install_qt.sh'''</p>
<p>......</p>
<p>QMake version 3.1</p>
<p>Using Qt version '''<span style="color:#FF0000">5.15.2</span>''' in /usr/lib/aarch64-linux-gnu</p>|}</li></ol>
</li>
<li><p>Then you can see the lax icon of QT Creator in '''Applications'''</p>
<p>[[File:media/image392.png|576x270px]]</p>
<p>You can also use the following command to open QT Creator</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''qtcreator'''</p>
|} {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''During the startup process of QT and QT applications, if the error below is prompted, please ignore it directly. This error will not affect the operation of the application.。'''</p>
<p>'''libGL error: failed to create dri screen'''</p>
<p>'''libGL error: failed to load driver: rockchip'''</p>
<p>'''libGL error: failed to create dri screen'''</p>
<p>'''libGL error: failed to load driver: rockchip'''</p></big>|}</li>
<li><p>The interface after the QT Creator is opened is shown below</p>
<p>[[File:media/image393.png|576x306px]]</p></li>
<li><p>Then remove the hook of '''ClangCodeModel'''</p>
<p>[[File:media/image398.png|575x359px]]</p></li>
<li><p>'''<span style="color:#FF0000">After setting, you need to restart Qt Creator</span>'''</p></li>
<li><p>Then make sure that the GCC compiler used by QT Creator, if the > default is CLANG, please modify it to GCC</p>
<p>[[File:media/image399.png|576x315px]]</p>
<p>[[File:media/image405.png|576x308px]]</p></li>
<li><p>Reference information</p>
<span id="ros-installation-method"></span>
== ROS installation method ==