关闭

QT5.5.1 配置说明文档

标签: qtqt5文档
1184人阅读 评论(0) 收藏 举报
分类:

QT5.5.1 配置说明文档

+ cd qtbase

+ /opt/qt-x11/qtbase/configure -top-level --help

Usage: configure [options]

 

Installation options:

安装选项:

 

 These areoptional, but you may specify install directories.

 

    -prefix<dir> ...... The deployment directory, as seen on the target device.

                         (default/usr/local/Qt-5.5.1, $PWD if -developer-build is active)

指定安装目录;默认安装目录 /usr/local/Qt-5.5.1

 

    -extprefix<dir> ... The installation directory, as seen on the host machine.

                         (defaultSYSROOT/PREFIX)

与“-prefix”类似,但它是用来设置结构依赖的文件的安装位置;默认为SYSROOT/PREFIX

 

    -hostprefix[dir] .. The installation directory for build tools running on the

                         host machine. If [dir]is not given, the current build

                         directory will beused. (default EXTPREFIX)

    指定可扩展的工具库安装路径,默认当前目录

 

 You may usethese to change the layout of the install. Note that all directories

 except-sysconfdir should be located under -prefix/-hostprefix:

 

    -bindir<dir> ......... User executables will be installed to <dir>

                            (defaultPREFIX/bin)

    指定可执行文件路径<dir>;默认PREFIX/bin

    -headerdir<dir> ...... Headers will be installed to <dir>

                            (defaultPREFIX/include)

    指定头文件路径<dir>;默认PREFIX/include

    -libdir<dir> ......... Libraries will be installed to <dir>

                            (defaultPREFIX/lib)

    指定库文件路径<dir>;默认PREFIX/lib

    -archdatadir<dir> .... Arch-dependent data used by Qt will be installed to<dir>

                            (default PREFIX)

    指定主要依赖文件安装路径<dir>;默认PREFIX

    -plugindir<dir> ...... Plugins will be installed to <dir>

                            (defaultARCHDATADIR/plugins)

    指定插件安装路径<dir>;默认ARCHDATADIR/plugins

    -libexecdir<dir> ..... Program executables will be installed to <dir>

                            (default ARCHDATADIR/libexec,ARCHDATADIR/bin for MinGW)

    指定可执行文件的路径<dir>;默认ARCHDATADIR/libexec,ARCHDATADIR/bin for MinGW

    -importdir<dir> ...... Imports for QML1 will be installed to <dir>

                            (defaultARCHDATADIR/imports)

    -qmldir<dir> ......... Imports for QML2 will be installed to <dir>

                            (defaultARCHDATADIR/qml)

    -datadir<dir> ........ Arch-independent data used by Qt will be installed to<dir>

                            (default PREFIX)

    指定QT要使用到文件的安装路径<dir>;默认PREFIX

    -docdir<dir> ......... Documentation will be installed to <dir>

                            (defaultDATADIR/doc)

    指定文档安装路径<dir>;默认DATADIR/doc

   -translationdir <dir> . Translations of Qt programs will beinstalled to <dir>

                            (defaultDATADIR/translations)

    指定QT程序的翻译文件路径<dir>;默认DATADIR/translations

    -sysconfdir<dir> ..... Settings used by Qt programs will be looked for in<dir>

                            (defaultPREFIX/etc/xdg)

    指定QT的设置文件路径<dir>;默认PREFIX/etc/xdg

    -examplesdir<dir> .... Examples will be installed to <dir>

                            (defaultPREFIX/examples)

    指定实例文件安装路径<dir>;默认PREFIX/examples

    -testsdir<dir> ....... Tests will be installed to <dir>

                            (defaultPREFIX/tests)

 

    -hostbindir<dir> .. Host executables will be installed to <dir>

                         (defaultHOSTPREFIX/bin)

    指定可扩展可执行文件安装路径<dir>;默认HOSTPREFIX/bin

    -hostlibdir<dir> .. Host libraries will be installed to <dir>

                         (defaultHOSTPREFIX/lib)

    指定可扩展库的安装路径<dir>;默认HOSTPREFIX/lib

    -hostdatadir<dir> . Data used by qmake will be installed to <dir>

                        (default HOSTPREFIX)

    指定Qmake使用可扩展文件的安装路径<dir>;默认HOSTPREFIX

 

Configure options:

配置选项:

 

 The defaults(*) are usually acceptable. A plus (+) denotes a default value

 that needs tobe evaluated. If the evaluation succeeds, the feature is

 included. Hereis a short explanation of each option:

默认的选项(*),可选添加选项(+

 *  -release ........... Compile and link Qt withdebugging turned off.

    此选项在编译过程QT会对程序进行优化,在发布软件的时候应该用此选项

-debug .............Compile and link Qt with debugging turned on.

加上此选项编译程序QT不会做出优化,往往在开发过程使用此选项

   -debug-and-release . Compile and link two versions of Qt, with andwithout

                         debugging turned on(Mac only).

    编译两个版本

   -force-debug-info .. Create symbol files for release builds.

 

    -developer-build... Compile and link Qt with Qt developer options (including auto-testsexporting)

    编译QT的开发商和链接选项(包括自动测试出口的QT

-opensource ........Compile and link the Open-Source Edition of Qt.

以开源版本发布程序

    -commercial........ Compile and link the Commercial Edition of Qt.

    以商业版本发布程序

   -confirm-license ... Automatically acknowledge the license (use with

                         either -opensource or-commercial)

 

    -no-c++11.......... Do not compile Qt with C++11 support enabled.

 +  -c++11 ............. Compile Qt with C++11support enabled.

 

 *  -shared ............ Create and use shared Qtlibraries.

    创建和使用共享QT

    -static............ Create and use static Qt libraries.

    创建和使用静态的QT

-no-largefile ......Disables large file support.

禁用大文件支持

 +  -largefile ......... Enables Qt to accessfiles larger than 4 GB.

    支持访问大于4GB的文件

   -no-accessibility .. Do not compile Accessibility support.

                         Disablingaccessibility is not recommended, as it will break QStyle

                         and may break other internal parts ofQt.

                         With this switch youcreate a source incompatible version of Qt,

                         which is unsupported.

    禁用无障碍支持

 +  -accessibility ..... Compile Accessibilitysupport.

    启用无障碍支持

-no-sql-<driver>... Disable SQL <driver> entirely.

禁用SQL

   -qt-sql-<driver> ... Enable a SQL <driver> in the Qt SQLmodule, by default

                         none are turned on.

    根据需求启用SQL插件(默认全部关闭)

   -plugin-sql-<driver> Enable SQL <driver> as a plugin to belinked to

                         at run time.

 

                         Possible values for<driver>:

                         [ db2 ibase mysql ociodbc psql sqlite sqlite2 tds ]

    禁用/启用/启用插件 对SQL的支持

   -system-sqlite ..... Use sqlite from the operating system.

    启用支持sqlite也可用-qt-sqlite

   -no-qml-debug ...... Do not build the in-process QML debugging support.

 +  -qml-debug ......... Build the QML debuggingsupport.

 

    -platformtarget ... The operating system and compiler you are building

                         on (default detectedfrom host system).

   

                         See the README filefor a list of supported

                         operating systems andcompilers.

    目标平台

    -no-sse2........... Do not compile with use of SSE2 instructions.

    -no-sse3........... Do not compile with use of SSE3 instructions.

    -no-ssse3.......... Do not compile with use of SSSE3 instructions.

    -no-sse4.1......... Do not compile with use of SSE4.1 instructions.

    -no-sse4.2......... Do not compile with use of SSE4.2 instructions.

    -no-avx............ Do not compile with use of AVX instructions.

    -no-avx2........... Do not compile with use of AVX2 instructions.

    -no-mips_dsp....... Do not compile with use of MIPS DSP instructions.

   -no-mips_dspr2 ..... Do not compile with use of MIPS DSP rev2instructions.

    禁用这些指令

-qtnamespace<name>  Wraps all Qt library codein 'namespace <name> {...}'.

指定所有库代码路径

    -qtlibinfix<infix>  Renames all libQt*.so tolibQt*<infix>.so.

    重命名所有.so库文件到指定路径

    -testcocoon........ Instrument Qt with the TestCocoon code coverage tool.

    -gcov.............. Instrument Qt with the GCov code coverage tool.

 

-D <string>........ Add an explicit define to the preprocessor.

添加一个预处理器

-I <string>........ Add an explicit include path.

添加一个明确的头文件路径

-L <string>........ Add an explicit library path.

添加一个明确的库文件路径

 

 +  -pkg-config ........ Use pkg-config to detectinclude and library paths. By default,

                         configure determineswhether to use pkg-config or not with

                         some heuristics suchas checking the environment variables.

   -no-pkg-config ..... Disable use of pkg-config.

   -force-pkg-config .. Force usage of pkg-config (skips pkg-configusability

                         detection heuristic).

 

    -help, -h.......... Display this information.

    显示帮助信息

Third Party Libraries:

第三方库选项

    -qt-zlib............ Use the zlib bundled with Qt.

 +  -system-zlib ........ Use zlib from theoperating system.

                          Seehttp://www.gzip.org/zlib

    zlib依赖包,详询http://www.gzip.org/zlibzlib库是用于文件和资源压缩的库,一般用于图形图像的压缩)

    -no-mtdev........... Do not compile mtdev support.

 +  -mtdev .............. Enable mtdev support.

 

 +  -no-journald ........ Do not send loggingoutput to journald.

    -journald........... Send logging output to journald.

 

    -no-gif............. Do not compile GIF reading support.

        不支持gif图片

    -no-libpng.......... Do not compile PNG support.

-qt-libpng ..........Use the libpng bundled with Qt.

png图片支持插件

 +  -system-libpng ...... Use libpng from theoperating system.

                          Seehttp://www.libpng.org/pub/png

   

    -no-libjpeg......... Do not compile JPEG support.

-qt-libjpeg .........Use the libjpeg bundled with Qt.

jpeg图片支持

 +  -system-libjpeg ..... Use libjpeg from theoperating system.

                          Seehttp://www.ijg.org

 

    -no-freetype........ Do not compile in Freetype2 support.

-qt-freetype ........Use the libfreetype bundled with Qt.

禁用/启用对freetype模块的支持

 +  -system-freetype..... Use the libfreetypeprovided by the system (enabled if -fontconfig is active).

                          Seehttp://www.freetype.org

 

    -no-harfbuzz........ Do not compile HarfBuzz-NG support.

 *  -qt-harfbuzz ........ Use HarfBuzz-NG bundledwith Qt to do text shaping.

                          It can still bedisabled by setting

                          the QT_HARFBUZZenvironment variable to "old".

   -system-harfbuzz .... Use HarfBuzz-NG from the operating system

                         to do text shaping. It canstill be disabled

                          by setting theQT_HARFBUZZ environment variable to "old".

 

 

    -no-openssl......... Do not compile support for OpenSSL.

 +  -openssl ............ Enable run-time OpenSSLsupport.

   -openssl-linked ..... Enabled linked OpenSSL support.

    Openssl支持插件(SSLSecurity Socket Layer,是一个安全传输协议,在Internet网上进行数据保护和身份确认,而openssl是一个开放源代码的实现了SSL及相关加密技术的软件包)

    -no-libproxy....... Do not compile support for libproxy

 +  -libproxy .......... Use libproxy from theoperating system.

 

    -qt-pcre............ Use the PCRE library bundled with Qt.

 +  -system-pcre ........ Use the PCRE libraryfrom the operating system.

 

    -qt-xcb............. Use xcb- libraries bundled with Qt.

                          (libxcb.so will stillbe used from operating system).

 +  -system-xcb ......... Use xcb- libraries fromthe operating system.

 

   -xkb-config-root .... Set default XKB config root. This option is usedonly together with -qt-xkbcommon-x11.

   -qt-xkbcommon-x11 ... Use the xkbcommon library bundled with Qt incombination with xcb.

 +  -system-xkbcommon-x11 Use the xkbcommonlibrary from the operating system in combination with xcb.

 

   -no-xkbcommon-evdev . Do not use X-less xkbcommon when compilinglibinput support.

 *  -xkbcommon-evdev .... Use X-less xkbcommonwhen compiling libinput support.

 

    -no-xinput2......... Do not compile XInput2 support.

 *  -xinput2 ............ Compile XInput2support.

 

    -no-xcb-xlib.........Do not compile Xcb-Xlib support.

 *  -xcb-xlib............ Compile Xcb-Xlibsupport.

 

    -no-glib............ Do not compile Glib support.

 +  -glib ............... Compile Glib support.

    禁用/开启对glib的支持 (glib库对应即gtk库,也就是说加入后可以使用gtk

    -no-pulseaudio...... Do not compile PulseAudio support.

 +  -pulseaudio ......... Compile PulseAudiosupport.

 

    -no-alsa............ Do not compile ALSA support.

 +  -alsa ............... Compile ALSA support.

    禁用/开启对alsa的支持

    -no-gtkstyle........ Do not compile GTK theme support.

 +  -gtkstyle ........... Compile GTK themesupport.

    禁用/开启对gtkstyle 的支持

Additional options:

其它选项:

    -make<part> ....... Add part to the list of parts to be built at make time.

                         (defaults to: libs tools examples)

    选择是否编译某些无关紧要的子模块

    -nomake<part> ..... Exclude part from the list of parts to be built.

    如不想编译系统自导的demos,则可使用-nomake demos

    -skip<module> ..... Exclude an entire module from the build.

 

   -no-compile-examples ... Install only the sources of examples.

 

    -no-gui............ Don't build the Qt GUI module and dependencies.

 +  -gui ............... Build the Qt GUI moduleand dependencies.

    禁用/开启对gui的支持

    -no-widgets........ Don't build the Qt Widgets module and dependencies.

 +  -widgets ........... Build the Qt Widgetsmodule and dependencies.

    禁用/开启对widgets 的支持

    -R<string> ........ Add an explicit runtime library path to the Qt

                        libraries.

    添加一个动态库

    -l<string> ........ Add an explicit library.

    添加一个静态库

    -no-rpath.......... Do not use the library install path as a runtime

                         library path.

 +  -rpath ............. Link Qt libraries andexecutables using the library

                         install path as aruntime library path. Equivalent

                         to -R install_libpath

    是否将生成的库安装在软件的安装目录,默认是在安装目录,否则自己指定路径

    -continue.......... Continue as far as possible if an error occurs.

    忽略错误一路前奔的编译,因为一般情况是按照模块逐个编译的

    -verbose, -v....... Print verbose information about each step of the

                         configure process.

    显示每个步骤的详细信息

    -silent............ Reduce the build output so that warnings and errors

                         can be seen moreeasily.

    安静的编译省略信息回显

 *  -no-optimized-qmake ... Do not build qmakeoptimized.

   -optimized-qmake ...... Build qmake optimized.

    禁用/开启qmake 的优化作用

    -no-nis............ Do not compile NIS support.

 *  -nis ............... Compile NIS support.

    禁用/开启NIS的支持(NIS(网络信息服务)是一个提供目录服务的RPC(远程过程调用)应用服务,当然没网络需要的可以再次华丽地无视)

    -no-cups........... Do not compile CUPS support.

 *  -cups .............. Compile CUPS support.

                        Requires cups/cups.h andlibcups.so.2.

    禁用/开启对CUPS的支持(CUPSUnix/Linux提供了一种可靠有效的方法来管理打印,它支持IPP,并提供了LPDSMB(服务消息块,如配置微软WINDOWS的打印机)、JetDirect等接口。CUPS还可以浏览网络打印机。)

    -no-iconv.......... Do not compile support for iconv(3).

 *  -iconv ............. Compile support foriconv(3).

    禁用/开启对iconv 的支持(iconv是一个计算机程序以及一套应用程序编程接口的名称,它的作用是在多种国际编码格式之间进行文本内码的转换。)

    -no-evdev.......... Do not compile support for evdev.

 *  -evdev ............. Compile support forevdev.

    禁用/开启对evdev 的支持

    -no-tslib.......... Do not compile support for tslib.

 *  -tslib ............. Compile support fortslib.

    禁用/开启对触摸屏的支持

    -no-icu............ Do not compile support for ICU libraries.

 +  -icu ............... Compile support for ICUlibraries.

    禁用/开启对ICU的支持

   -no-fontconfig ..... Do not compile FontConfig support.

 +  -fontconfig ........ Compile FontConfigsupport.

 

    -no-strip.......... Do not strip binaries and libraries of unneeded symbols.

 *  -strip ............. Strip binaries and librariesof unneeded symbols when installing.

 

 *  -no-pch ............ Do not use precompiledheader support.

    -pch............... Use precompiled header support.

    禁用/开启是否使用预处理器头文件

    -no-dbus........... Do not compile the Qt D-Bus module.

 +  -dbus .............. Compile the Qt D-Busmodule and dynamically load libdbus-1.

    禁用/开启对QTdbus 模块的编译

    -dbus-linked....... Compile the Qt D-Bus module and link to libdbus-1.

 

   -reduce-relocations ..... Reduce relocations in the libraries throughextra

                              linker optimizations(Qt/X11 and Qt for Embedded Linux only;

                              experimental;needs GNU ld >= 2.18).

    减少因为链接优化而导致的额外的库文件重置

   -no-use-gold-linker ..... Do not link using the GNU gold linker.

 +  -use-gold-linker ........ Link using the GNUgold linker if available.

 

   -force-asserts ........ Force Q_ASSERT to be enabled even in releasebuilds.

 

    -sanitize[address|thread|memory|undefined] Enables the specified compiler sanitizer.

 

    -device<name> ............... Cross-compile for device <name>(experimental)

   -device-option <key=value> ... Add device specific options for thedevice mkspec

                                  (experimental)

 

 *  -no-separate-debug-info . Do not store debuginformation in a separate file.

    不将调试信息放在一个文件内

   -separate-debug-info .... Strip debug information into a separate file.

    将调试信息放在一个文件内

    -no-xcb............ Do not compile Xcb (X protocol C-language Binding) support.

 *  -xcb ............... Compile Xcb support.

 

    -no-eglfs.......... Do not compile EGLFS (EGL Full Screen/Single Surface) support.

 *  -eglfs ............. Compile EGLFS support.

 

    -no-directfb....... Do not compile DirectFB support.

 *  -directfb .......... Compile DirectFBsupport.

 

    -no-linuxfb ........ Do not compile LinuxFramebuffer support.

 *  -linuxfb ........... Compile LinuxFramebuffer support.

 

    -no-kms............ Do not compile KMS support.

 *  -kms ............... Compile KMS support(Requires EGL).

 

    -qpa<name> ......... Sets the default QPA platform (e.g xcb, cocoa, windows).

 

    -xplatformtarget ... The target platform when cross-compiling.

    交叉编译过程指定目标平台

    -sysroot<dir> ...... Sets <dir> as the target compiler's and qmake'ssysroot and also sets pkg-config paths.

   -no-gcc-sysroot ..... When using -sysroot, it disables the passing of--sysroot to the compiler

 

-no-feature-<feature>Do not compile in <feature>.

不编译<feature>

    -feature-<feature>.. Compile in <feature>. The available features

                          are described in src/corelib/global/qfeatures.txt

编译<feature>。可选用featuresrc/corelib/global/qfeatures.txt文件内可查询

    -qconfiglocal ...... Use src/corelib/global/qconfig-local.h rather than the

                          default (full).

    在不指定此配置的情况下系统使用

    -qreal[double|float] typedef qreal to the specified type. The default is double.

                          Note that changingthis flag affects binary compatibility.

 

    -no-opengl.......... Do not support OpenGL.

    -opengl<api> ....... Enable OpenGL support

                          With no parameter,this will attempt to auto-detect

                          OpenGL ES 2.0 andhigher, or regular desktop OpenGL.

                          Use es2 for <api>to override auto-detection.

    禁用/开启对opengl 的支持

    -no-libinput........ Do not support libinput.

 *  -libinput ........... Enable libinputsupport.

 

   -no-gstreamer ....... Do not support GStreamer.

 +  -gstreamer <version>  Enable GStreamer support

                          With no parameter,this will attempt to auto-detect GStreamer 0.10 and

                          1.0. GStreamer 0.10is used by default when available.

                          Use 0.10 or 1.0 for<version> to override auto-detection.

 

 *  -no-system-proxies .. Do not use systemnetwork proxies by default.

   -system-proxies ..... Use system network proxies by default.

 

   -no-warnings-are-errors Make warnings be treated normally

   -warnings-are-errors  Makewarnings be treated as errors

                          (enabled if-developer-build is active)

 

QNX/Blackberry options:

 

    -no-slog2.......... Do not compile with slog2 support.

    -slog2 .............Compile with slog2 support.

 

    -no-pps............ Do not compile with pps support.

    -pps............... Compile with pps support.

 

    -no-imf............ Do not compile with imf support.

    -imf............... Compile with imf support.

 

    -no-lgmon.......... Do not compile with lgmon support.

    -lgmon............. Compile with lgmon support.

 

MacOS/iOS options:

 

    -Fstring........... Add an explicit framework path.

    -fw string......... Add an explicit framework.

 

 *  -framework ......... Build Qt as a series offrameworks and

                         link tools againstthose frameworks.

   -no-framework ...... Do not build Qt as a series of frameworks.

 

   -securetransport ... Use SecureTransport instead of OpenSSL (requires-no-openssl)

 

    -sdk<sdk> ......... Build Qt using Apple provided SDK <sdk>. Theargument should be

                         one of the availableSDKs as listed by 'xcodebuild -showsdks'.

                         Note that the argumentapplies only to Qt libraries and applications built

                         using the targetmkspec - not host tools such as qmake, moc, rcc, etc.

 

Android options:

 

    -android-sdkpath .............. The Android SDK root path.

                                     (default$ANDROID_SDK_ROOT)

 

    -android-ndkpath .............. The Android NDK root path.

                                     (default$ANDROID_NDK_ROOT)

 

   -android-ndk-platform .......... Sets the android platform

                                     (defaultandroid-9)

 

   -android-ndk-host .............. Sets the android NDK host (linux-x86,linux-x86_64, etc.)

                                     (default$ANDROID_NDK_HOST)

 

   -android-arch .................. Sets the android architecture (armeabi,armeabi-v7a, x86, mips,

                                     arm64-v8a,x86_64, mips64)

                                     (defaultarmeabi-v7a)

 

   -android-toolchain-version ..... Sets the android toolchain version

                                     (default4.9)

 

   -no-android-style-assets ....... Do not compile in the code whichautomatically extracts

                                     styleassets from the run-time device. Setting this will

                                     make theAndroid style behave incorrectly, but will enable

                                    compatibility with the LGPL2.1 license.

 *  -android-style-assets .......... Compile thecode which automatically extracts style assets

                                     from therun-time device. This option will make the

                                     Androidplatform plugin incompatible with the LGPL2.1.

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1865次
    • 积分:56
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章存档