8,367
edits
Changes
→How to install QT
<ol style="list-style-type: decimal;">
<li><p>Use the script below to install QT5 and QT Creator</p>
{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''install_qt.sh'''</p>|}</li>
<li><p>After installation, the version number of QT will be automatically printed</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The qt version that comes with Ubuntu 20.04 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>The QT version that comes with Ubuntu 22.04 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 that 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>
<li><p>The QT version that comes with Debian12 is '''5.15.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.15.8</span>''' in /usr/lib/aarch64-linux-gnu</p>|}</li></ol>
</li>
<li><p>Then you can see the QT Creator startup icon in '''Applications'''</p>
<p>[[File:media/image254.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>|}</li>
<li><p>The interface after QT Creator is opened is as follows</p>
<p>[[File:media/image255.png|576x342px]]</p></li>
<li><p>The version of QT Creator is as follows</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The default version of QT Creator in '''Ubuntu20.04''' is as > follows</p>
<p>[[File:media/image256.png|419x224px]]</p></li>
<li><p>The default version of QT Creator in '''Ubuntu22.04''' is as > follows</p>
<p>[[File:media/image257.png|443x237px]]</p></li>
<li><p>The default version of QT Creator in '''Debian11''' is as follows</p>
<li><p>Then remove the tick of '''ClangCodeModel'''</p>
<p>[[File:media/image261.png|408x254px]]</p></li>
<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>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''Debian12 please skip this step.'''</p></big>|}
<p>[[File:media/image262.png|576x315px]]</p>
<p>[[File:media/image263.png|575x307px]]</p></li></ol>
<p>[[File:media/image268.png|576x308px]]</p></li>
<li><p>References</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[https://wiki.qt.io/Install_Qt_5_on_Ubuntu '''https://wiki.qt.io/Install_Qt_5_on_Ubuntu''']</p>
<p>[https://download.qt.io/archive/qtcreator '''https://download.qt.io/archive/qtcreator''']</p>
<p>[https://download.qt.io/archive/qt '''https://download.qt.io/archive/qt''']</p>|}</li></ol>
<span id="how-to-install-ros"></span>
== How to install ROS ==