NODKA诺达佳ARM整机

整机项目


QT cross-compilation of the English version

<h3>Method 2: Set up the QT compilation environment using the ARM board</h3> <ul> <li> <p>**Online installation of QT</p> <pre><code class="language-shell">apt-get install qtcreator apt-get install qt5-default (Dependency package) ---If the qt5-default dependency package is removed from the official website, please use the following method to install the dependency.--- sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtcreator</code></pre> <p>After installation, open QT. In the menu bar of the software, select Tools -&gt; Options to open the following window.</p> </li> <li> <p><strong>Add qmake</strong></p> <pre><code class="language-shell">/usr/local/qt5.12-arm/bin/qmake</code></pre> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=7ba607060f8615302539abfe47350864&amp;amp;file=file.png" alt="" /></p> </li> <li><strong>Configure the cross-compiler</strong></li> </ul> <p>Click the &quot;add&quot; button on the right to add the locations of the gcc and g++ cross-compilers. </p> <p>If the host has crossbuild-essential-arm64 installed, the compiler will be located in /usr/bin/. </p> <p>If a third-party cross-compiler is used, locate the installation location and add it. </p> <p>If the target platform is Buildroot, then the compiler included in the Buildroot Qt environment package needs to be used.</p> <pre><code class="language-shell">g++:/usr/bin/aarch64-linux-gnu-g++</code></pre> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=131701acdaa16df4a707ed4a3199d7d7&amp;amp;file=file.png" alt="" /></p> <pre><code class="language-shell">gcc:/usr/bin/aarch64-linux-gnu-gcc</code></pre> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1f695bc5bf6f3066cc9dd013b83ab8e4&amp;amp;file=file.png" alt="" /></p> <p>For ease of debugging, configure Debeggers and Devices for online debugging:</p> <ul> <li><strong>Configure Debuggers</strong></li> </ul> <p>Click the &quot;add&quot; button on the right to add &quot;gbd-multiarch&quot;: <code>apt install -y gdb-multiarch</code> </p> <p>Check if /usr/bin/gdbserver exists on the target machine. If it doesn&#039;t exist, install it: <code>apt install -y gdbserver</code>. If it still doesn&#039;t exist, install it again: <code>apt install -y gdbserver</code> (This is included in Buildroot and no additional installation is required.) </p> <p>Back to the Qt Creator on the host machine, click the &quot;add&quot; button on the right to add gdb</p> <p>Select from the mainframe: gdb-multiarch : /usr/bin/gdb-multierch</p> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a5a890434062130dcd5263841ee8f1c8&amp;amp;file=file.png" alt="" /></p> <ul> <li><strong>Configure Devices</strong></li> </ul> <p>Set the IP and username (root) of the device. For the convenience of debugging, a static IP can be set on the device.</p> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5a880837a45ed38584ff32a8ed7749de&amp;amp;file=file.png" alt="" /></p> <ul> <li><strong>Configure Kits</strong></li> </ul> <p>Add the previously set configuration items to Kits.</p> <p>If the target platform is the Ubuntu system, this step also requires adding the path of the sysroot.</p> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=b8449f348f3176083035fe1cce5127ff&amp;amp;file=file.png" alt="" /></p>

页面列表

ITEM_HTML