QT交叉编译环境搭建
<h3>虚拟机登录镜像docker</h3>
<pre><code class="language-shell"> sudo docker load &lt;nodka\_docker\_qt\_build\_20230223.tar
(注:docker镜像文件过大由我们单独提供)</code></pre>
<h3>运行docker image,注意 : /home/APP_PATH为QT应用程序所在目录</h3>
<pre><code class="language-shell"> sudo docker run --rm --mount type=bind,source=/home/APP\_PATH,target=/mnt/ -i -t 09a37c1b2fc3 /bin/bash </code></pre>
<h3>编译QT 应用程序</h3>
<pre><code class="language-shell"> cd /mnt
qmake
make</code></pre>