如有错误,欢迎批评指正!!!
为了更好的在ARM平台上开发Qt程序,往往需要定制编译Qt开发套件,以满足需求与限制的平衡,在使用容量较小的ARM平台时这显得尤为重要,本文根据Qt5.4.2进行相关介绍。
详情参考http://doc.qt.io/qt-5/configure-options.html
下文信息翻译自qt-everywhere-opensource-src-5.4.2中configure帮助信息。
Usage: configure [options]
Installation options:
These are optional, but you may specify install directories.
-prefix <dir> ...... This will install everything relative to <dir>
(default /usr/local/Qt-5.4.2, $PWD if -developer-build is active)
指定安装目录,默认安装目录/usr/local/Qt-5.4.2
-extprefix <dir> ... When -sysroot is used, install everything to <dir>,
rather than into SYSROOT/PREFIX.
当-sysroot被使用时,被安装进<dir>目录而不是SYSROOT/PREFIX
-hostprefix [dir] .. Tools and libraries needed when developing
applications are installed in [dir]. If [dir] is
not given, the current build directory will be used.
(default EXTPREFIX)
You may use these to separate different parts of the install:
-bindir <dir> ......... User executables will be installed to <dir>,用户可执行文件安装目录
(default PREFIX/bin)
-headerdir <dir> ...... Headers will be installed to <dir>,头文件安装目录
(default PREFIX/include)
-libdir <dir> ......... Libraries will be installed to <dir>,库文件安装目录
(default PREFIX/lib)
-archdatadir <dir> .... Arch-dependent data used by Qt will be installed to <dir>,Qt依赖的体系结构数据目录
(default PREFIX)
-plugindir <dir> ...... Plugins will be installed to <dir>,Plugin安装目录
(default ARCHDATADIR/plugins)
-libexecdir <dir> ..... Program executables will be installed to <dir>,程序可执行文件安装目录
(default ARCHDATADIR/libexec, ARCHDATADIR/bin for MinGW)
-importdir <dir> ...... Imports for QML1 will be installed to <dir>,QML1安装目录
(default ARCHDATADIR/imports)
-qmldir <dir> ......... Imports for QML2 will be installed to <dir>,QML2安装目录
(default ARCHDATADIR/qml)
-datadir <dir> ........ Arch-independent data used by Qt will be installed to <dir>,不依赖于体系结构数据目录
(default PREFIX)
-docdir <dir> ......... Documentation will be installed to <dir>,文档安装目录
(default DATADIR/doc)
-translationdir <dir> . Translations of Qt programs will be installed to <dir>,Qt程序的translation安装目录
(default DATADIR/translations)
-sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>, Qt程序设置查找目录
(default PREFIX/etc/xdg)
-examplesdir <dir> .... Examples will be installed to <dir>, 例程安装目录
(default PREFIX/examples)
-testsdir <dir> ....... Tests will be installed to <dir>, 测试用例安装目录
(default PREFIX/tests)
-hostbindir <dir> .. Host executables will be installed to <dir>,主机端程序安装目录
(default HOSTPREFIX/bin)
-hostlibdir <dir> .. Host libraries will be installed to <dir>,主机端库文件安装目录
(default HOSTPREFIX/lib)
-hostdatadir <dir> . Data used by qmake will be installed to <dir>,qmake使用数据目录
(default HOSTPREFIX)
Configure options:
The defaults (*) are usually acceptable. A plus (+) denotes a default value
that needs to be evaluated. If the evaluation succeeds, the feature is
included. Here is a short explanation of each option:
默认(*)表示可接受选项,(+)表示该选项需要被评估,如果评估成功,则该特性可以被包括。
* -release ........... Compile and link Qt with debugging turned off.