|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | ==交叉编译你的Qt应用程序 ==
| |
| | | |
− | ===S5P4418平台的编译===
| |
− | <syntaxhighlight lang="bash">
| |
− | git clone https://github.com/friendlyarm/QtE-Demo
| |
− | mkdir build && cd build
| |
− | /usr/local/Trolltech/Qt-5.9.1-nexell32/bin/qmake ../QtE-Demo/QtE-Demo.pro
| |
− | make
| |
− | </syntaxhighlight>
| |
− | ===S5P6818平台的编译===
| |
− | <syntaxhighlight lang="bash">
| |
− | git clone https://github.com/friendlyarm/QtE-Demo
| |
− | mkdir build && cd build
| |
− | /usr/local/Trolltech/Qt-5.9.1-nexell64/bin/qmake ../QtE-Demo/QtE-Demo.pro
| |
− | make
| |
− | </syntaxhighlight>
| |
− | ===Allwinner H3平台的编译===
| |
− | <syntaxhighlight lang="bash">
| |
− | export PATH=/opt/FriendlyARM/toolschain/4.9.3/bin/:$PATH
| |
− | git clone https://github.com/friendlyarm/QtE-Demo
| |
− | mkdir build && cd build
| |
− | /usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake ../QtE-Demo/QtE-Demo-Qt4.pro
| |
− | make
| |
− | </syntaxhighlight>
| |
− | ===Allwinner H5平台的编译===
| |
− | <syntaxhighlight lang="bash">
| |
− | export PATH=/opt/FriendlyARM/toolschain/a64-32bit-tootchain/bin/:$PATH
| |
− | git clone https://github.com/friendlyarm/QtE-Demo
| |
− | mkdir build && cd build
| |
− | /usr/local/Trolltech/QtEmbedded-4.8.6-arm-a64/bin/qmake ../QtE-Demo/QtE-Demo-Qt4.pro
| |
− | make
| |
− | </syntaxhighlight>
| |
− | ===Amlogic S905平台的编译===
| |
− | <syntaxhighlight lang="bash">
| |
− | export PATH=/opt/FriendlyARM/toolschain/a64-32bit-tootchain/bin/:$PATH
| |
− | git clone https://github.com/friendlyarm/QtE-Demo
| |
− | mkdir build && cd build
| |
− | /usr/local/Trolltech/QtEmbedded-5.9.1-arch64/bin/qmake ../QtE-Demo/QtE-Demo.pro
| |
− | make
| |
− | </syntaxhighlight>
| |
− |
| |
− | ===开机自动运行Qt程序===
| |
− |
| |
− | 以运行上一章节中的 QtE-Demo 程序为例,假设它放在 /root 目录,则你可以编辑 /etc/rc.local 文件,确否有以下内容:
| |
− | <syntaxhighlight lang="bash">
| |
− | . /usr/bin/setqt5env
| |
− | /root/QtE-Demo -qws&
| |
− | </syntaxhighlight>
| |