[Qt配置指南—1]Qt 5.4.2 Configure Options---Qt配置选项介绍

如有错误,欢迎批评指正!!!


为了更好的在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.
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值