QT编译configure的参数含义定义,从帮助文档中复制然后谷歌翻译过来的。
用法:configure [options]
安装选项:
这些是可选的,但您可以指定安装目录。
-prefix <dir> ......部署目录,如目标设备上所示。
(如果-developer-build处于活动状态,则默认为/usr/local/Qt-5.6.2,$ PWD)
-extprefix <dir> ...安装目录,如主机上所示。
(默认SYSROOT / PREFIX)
-hostprefix [dir] ..在安装目录上运行的构建工具
主机。如果没有给出[dir],则表示当前构建
目录将被使用。 (默认EXTPREFIX)
您可以使用这些来更改安装的布局。请注意,所有的目录
除了-sysconfdir应位于-prefix / -hostprefix之下:
-bindir <dir> .........用户可执行文件将被安装到<dir>
(默认PREFIX / bin)
-headerdir <dir> ......标题将被安装到<dir>
(默认PREFIX / include)
-libdir <dir> .........库将被安装到<dir>
(默认PREFIX / lib)
-archdatadir <dir> .... Qt使用的依赖于数据的数据将被安装到<dir>
(默认PREFIX)
-plugindir <dir> ......插件将被安装到<dir>
(默认ARCHDATADIR /插件)
-libexecdir <dir> .....程序可执行文件将被安装到<dir>
(对于MinGW,默认ARCHDATADIR / libexec,ARCHDATADIR / bin)
-importdir <dir> ...... QML1的导入将安装到<dir>
(默认ARCHDATADIR /进口)
-qmldir <dir> ......... QML2的导入将安装到<dir>
(默认ARCHDATADIR / qml)
-datadir <dir> ........ Qt使用的独立于Arch的数据将被安装到<dir>中
(默认PREFIX)
-docdir <dir> .........文档将被安装到<dir>
(默认DATADIR / doc)
-translationdir <dir>。 Qt程序的翻译将安装到<dir>
(默认DATADIR /翻译)
-sysconfdir <dir> .....在<dir>中查找Qt程序使用的设置
(默认PREFIX / etc / xdg)
-examplesdir <dir> ....示例将安装到<dir>
(默认PREFIX /例子)
-testsdir <dir> .......测试将被安装到<dir>
(默认PREFIX /测试)
-hostbindir <dir> ..主机可执行文件将被安装到<dir>
(默认HOSTPREFIX / bin)
-hostlibdir <dir>。主机库将安装到<dir>
(默认HOSTPREFIX / lib)
-hostdatadir <dir>。 qmake使用的数据将被安装到<dir>
(默认HOSTPREFIX)
配置选项:
默认值(*)通常是可以接受的。加号(+)表示默认值
需要进行评估。如果评估成功,该功能就是
包括在内。以下是每个选项的简要说明:
* - release...........编译Qt并关闭调试链接。
-debug .............编译Qt并打开调试链接。
-debug-and-release。编译和链接两个版本的Qt,有和没有
调试打开(仅限Mac)。
-force-debug-info ..为发布版本创建符号文件。
-developer-build ...编译和链接Qt与Qt开发人员选项(包括自动测试导出)
* -no-optimized-tools ...不要在调试版本中构建优化的主机工具。
优化工具......即使在调试版本中也可以构建优化的主机工具。
-opensource ........编译并链接Qt的开源版本。
-commercial ........编译并链接Qt的商业版。
-confirm-license ...自动确认许可证(与...一起使用
无论是资源还是商业)
-c ++ std <edition> ..用C ++标准版编译Qt(c ++ 98,c ++ 11,c ++ 14,c ++ 1z)
默认值:最高支持
*共享............创建和使用共享的Qt库。
-static ............创建和使用静态Qt库。
-no-largefile ......禁用大文件支持。
+ -largefile .........使Qt能够访问大于4 GB的文件。
-no-accessibility ..不要编译辅助功能支持。
不建议禁用可访问性,因为它会打破QStyle
并可能打破Qt的其他内部部分。
通过此开关,您可以创建Qt的源不兼容版本,
这是不受支持的。
+ -accessibility .....编译辅助功能支持。
-no-sql- <driver> ...完全禁用SQL <驱动程序>。
-qt-sql- <driver> ...默认情况下,在Qt SQL模块中启用SQL <驱动程序>
没有打开。
-plugin-sql- <驱动程序>启用SQL <驱动程序>作为要链接的插件
在运行时。
<driver>的可能值:
[db2 ibase mysql oci odbc psql sqlite sqlite2 tds]
-system-sqlite .....从操作系统使用sqlite。
-no-qml-debug ......不要构建进程内QML调试支持。
+ -qml-debug .........构建QML调试支持。
-platform target ...您正在构建的操作系统和编译器
开启(默认从主机系统检测到)。
请参阅自述文件以获取支持的列表
操作系统和编译器。
-no-sse2 ...........不要使用SSE2指令进行编译。
-no-sse3 ...........不要使用SSE3指令进行编译。
-no-ssse3 ..........不要使用SSSE3指令进行编译。
-no-sse4.1 .........不要使用SSE4.1指令进行编译。
-no-sse4.2 .........不要使用SSE4.2指令进行编译。
-no-avx ............不要使用AVX指令进行编译。
-no-avx2 ...........不要使用AVX2指令进行编译。
-no-mips_dsp .......不要使用MIPS DSP指令进行编译。
-no-mips_dspr2 .....不要使用MIPS DSP rev2指令进行编译。
-qtnamespace <name>包装'namespace <name> {...}'中的所有Qt库代码。
-qtlibinfix <infix>将所有libQt * .so重命名为libQt * <infix> .so。
-testcocoon ........使用TestCocoon代码覆盖工具来测试Qt。
-gcov ..............使用GCov代码覆盖工具的仪器Qt。
-D <string> ........为预处理器添加一个显式定义。
-I <string> ........添加一个显式包含路径。
-L <string> ........添加一个明确的库路径。
+ -pkg-config ........使用pkg-config来检测include和库路径。默认,
配置决定是否使用pkg-config或不使用
一些启发式方法,例如检查环境变量。
-no-pkg-config .....禁止使用pkg-config。
-force-pkg-config ..强制使用pkg-config(跳过pkg-config的可用性
检测启发式)。
-help,-h ..........显示此信息。
第三方图书馆:
-qt-zlib ............使用与Qt捆绑在一起的zlib。
+ -system-zlib ........使用操作系统中的zlib。
请参阅http://www.gzip.org/zlib
-no-mtdev ...........不要编译mtdev支持。
+ -mtdev ..............启用mtdev支持。
+ -no-journald ........不要将日志记录输出发送到journald。
-Journald ...........将日志输出发送到journald。
+ -no-syslog ..........不要将日志输出发送到syslog。
-syslog .............将日志输出发送到syslog。
-no-gif .............不要编译GIF阅读支持。
-no-libpng ..........不要编译PNG支持。
-qt-libpng ..........使用与Qt捆绑在一起的libpng。
+ -system-libpng ......使用操作系统中的libpng。
见http://www.libpng.org/pub/png
-no-libjpeg .........不要编译JPEG支持。
-qt-libjpeg .........使用与Qt捆绑在一起的libjpeg。
+ -system-libjpeg .....从操作系统中使用libjpeg。
见http://www.ijg.org
-no-freetype ........不要在Freetype2支持中编译。
-qt-freetype ........使用与Qt捆绑在一起的libfreetype。
+ -system-freetype .....使用系统提供的libfreetype(如果-fontconfig处于活动状态,则启用)。
见http://www.freetype.org
-no-harfbuzz ........不要编译HarfBuzz-NG支持。
* -qt-harfbuzz ........使用与Qt捆绑在一起的HarfBuzz-NG进行文本整形。
它仍然可以通过设置禁用
将QT_HARFBUZZ环境变量设置为“旧”。
-system-harfbuzz ....使用操作系统中的HarfBuzz-NG
做文字整形。它仍然可以被禁用
通过设置QT_HARFBUZZ环境变量为“旧”。
见http://www.harfbuzz.org
-no-openssl .........不要编译对OpenSSL的支持。
+ -openssl ............启用运行时OpenSSL支持。
-openssl-linked .....启用链接的OpenSSL支持。
-no-libproxy .......不要编译对libproxy的支持
+ -libproxy ..........使用操作系统中的libproxy。
-qt-pcre ............使用与Qt捆绑在一起的PCRE库。
+ -system-pcre ........使用操作系统中的PCRE库。
-qt-xcb .............使用与Qt捆绑在一起的xcb库。
(libxcb.so仍将在操作系统中使用)。
+ -system-xcb .........使用操作系统中的xcb库。
-xkb-config-root ....设置默认的XKB配置根目录。此选项仅与-qt-xkbcommon-x11一起使用。
-qt-xkbcommon-x11 ...将与Qt捆绑在一起的xkbcommon库与xcb结合使用。
+ -system-xkbcommon-x11将操作系统中的xkbcommon库与xcb结合使用。
-no-xkbcommon-evdev。编译libinput支持时,请勿使用X-less xkbcommon。
* -xkbcommon-evdev ....在编译libinput支持时使用X-less xkbcommon。
-no-xinput2 .........不要编译XInput2支持。
* -xinput2 ............编译XInput2支持。
-no-xcb-xlib .........不要编译Xcb-Xlib支持。
* -xcb-xlib ............编译Xcb-Xlib支持。
-no-glib ............不要编译Glib支持。
+ -glib ...............编译Glib支持。
-no-pulseaudio ......不要编译PulseAudio支持。
+ -pulseaudio .........编译PulseAudio支持。
-no-alsa ............不要编译ALSA支持。
+ -alsa ...............编译ALSA支持。
-no-gtkstyle ........不要编译GTK主题支持。
+ -gtkstyle ...........编译GTK主题支持。
其他选项:
-make <part> .......在制作时将零件添加到要构建的零件列表中。
(默认为:libs工具示例)
-nomake <part> .....从部件列表中排除部分。
-skip <模块> .....从构建中排除整个模块。
-no-compile-examples ...仅安装示例的源代码。
-no-gui ............不要构建Qt GUI模块和依赖项。
+ -gui ...............构建Qt GUI模块和依赖关系。
-no-widgets ........不要构建Qt Widgets模块和依赖项。
+ -widgets ...........构建Qt Widgets模块和依赖关系。
-R <string> ........为Qt添加一个显式的运行时库路径
库。
-l <string> ........添加一个显式库。
-no-rpath ..........不要将库安装路径用作运行时
图书馆路径。在Apple平台上,这意味着使用
用于动态的绝对安装名称(基于-libdir)
图书馆和框架。
+ -rpath .............使用该库链接Qt库和可执行文件
将路径安装为运行时库路径。当量
到-R install_libpath
- 继续..........如果发生错误,尽可能继续。
-verbose,-v .......打印有关每个步骤的详细信息
配置过程。
-silent ............减少构建输出以便发出警告和错误
可以更容易地看到。
没有杯子...........不要编译CUPS支持。
* -cups ..............编译CUPS支持。
需要cups / cups.h和libcups.so.2。
-no-iconv ..........不要编译对iconv(3)的支持。
* -iconv .............编译支持iconv(3)。
-no-evdev ..........不要编译对evdev的支持。
* -evdev .............编译evdev的支持。
-no-tslib ..........不要编译对tslib的支持。
* -tslib .............编译对tslib的支持。
-no-icu ............不要编译对ICU库的支持。
+ -icu ...............编译对ICU库的支持。
-no-fontconfig .....不要编译FontConfig支持。
+ -fontconfig ........编译FontConfig支持。
-no-strip ..........不要剥夺不需要的符号的二进制文件和库。
* -strip .............在安装时去除不需要的符号的二进制文件和库。
* -no-pch ............不要使用预编译头支持。
-pch ...............使用预编译头支持。
* -no-ltcg不要使用链接时间码生成
-ltcg使用链接时间码生成。
-no-dbus ...........不要编译Qt D-Bus模块。
+ -dbus-linked .......编译Qt D-Bus模块并链接到libdbus-1。
-dbus-runtime ......编译Qt D-Bus模块并动态加载libdbus-1。
- 减少重定位.....通过额外减少库中的重定位
链接器优化(仅适用于嵌入式Linux的Qt / X11和Qt;
实验;需要GNU ld> = 2.18)。
-no-use-gold-linker .....不要使用GNU gold链接器链接。
+ -use-gold-linker ........使用GNU gold链接程序进行链接(如果可用)。
-force-asserts ........强制Q_ASSERT即使在发布版本中也能启用。
-sanitize [address | thread | memory | undefined]启用指定的编译器清除程序。
-device <name> ...............交叉编译设备<name>(实验)
-device-option <key = value> ...为设备mkspec添加设备特定的选项
(实验)
* -no-separate-debug-info。不要将调试信息存储在单独的文件中。
-separate-debug-info ....将调试信息放到单独的文件中。
-no-xcb ............不要编译Xcb(X协议C语言绑定)支持。
* -xcb ...............编译Xcb支持。
-no-eglfs ..........不要编译EGLFS(EGL全屏/单曲面)支持。
* -eglfs .............编译EGLFS支持。
-no-kms ............不要为KMS编译后端。
* -kms ...............为KMS编译后端。
-no-gbm ............不要为GBM编译后端。
* -gbm ...............为GBM编译后端。
* -no-directfb .......不要编译DirectFB支持。
-directfb ..........编译DirectFB支持。
-no-linuxfb ........不要编译Linux Framebuffer支持。
* -linuxfb ...........编译Linux Framebuffer支持。
* -no-mirclient .......不要编译Mir客户端支持。
-mirclient ..........编译Mir客户端支持。
-qpa <name> .........设置默认的QPA平台(例如xcb,cocoa,windows)。
-x平台目标...交叉编译时的目标平台。
-sysroot <dir> ......将<dir>设置为目标编译器和qmake的sysroot,并设置pkg-config路径。
-no-gcc-sysroot .....当使用-sysroot时,它会禁止将--sysroot传递给编译器
-no-feature- <feature>不要在<feature>中编译。
-feature- <feature> ..编译进<feature>。可用的功能
在src / corelib / global / qfeatures.txt中描述
-qconfig local ......使用src / corelib / global / qconfig-local.h而不是
默认(完整)。
-qreal [double | float] typedef qreal到指定的类型。默认值是double。
请注意,更改此标志影响二进制兼容性。
-no-opengl ..........不支持OpenGL。
-opengl <api> .......启用OpenGL支持
没有参数时,这将尝试自动检测
OpenGL ES 2.0及更高版本,或常规桌面OpenGL。
将<espi>用于<api>以覆盖自动检测。
-no-libinput ........不支持libinput。
* -libinput ...........启用libinput支持。
-no-gstreamer .......不支持GStreamer。
+ -gstreamer <version>启用GStreamer支持
没有参数,这将尝试自动检测GStreamer 0.10和
1.0。 GStreamer 1.0在默认情况下可用。
对<版本>使用0.10或1.0来覆盖自动检测。
* -no-system-proxies ..默认情况下不使用系统网络代理。
-system-proxies .....默认使用系统网络代理。
-no-warnings-are-errors使警告正常处理
-warnings-are-errors使警告被视为错误
(如果-developer-build处于活动状态,则启用)
QNX /黑莓选项:
-no-slog2 ..........不要用slog2支持进行编译。
-slog2 .............编译slog2支持。
-no-pps ............不要使用pps支持进行编译。
-pps ...............编译支持pps。
-no-imf ............不要使用imf支持进行编译。
-imf ...............编译imf支持。
-no-lgmon ..........不要使用lgmon支持进行编译。
-lgmon .............编译lgmon支持。
MacOS / iOS选项:
-Fstring ...........添加一个显式的框架路径。
-fw字符串.........添加一个明确的框架。
* -framework .........将Qt构建为一系列框架和
链接这些框架的工具。
没有框架......不要将Qt构建为一系列框架。
* -securetransport ...使用SecureTransport而不是OpenSSL
-no-securetransport不要使用SecureTransport,要么使用OpenSSL,要么不使用任何SSL后端
根本(如果与-no-openssl结合)。
-sdk <sdk> .........使用Apple提供的SDK <sdk>构建Qt。争论应该是
'xcodebuild -showsdks'列出的可用SDK之一。
请注意,该参数仅适用于构建的Qt库和应用程序
使用目标mkspec - 不是主机工具,如qmake,moc,rcc等。
Android选项:
-android-sdk path .............. Android SDK根路径。
(默认$ ANDROID_SDK_ROOT)
-android-ndk path .............. Android NDK根路径。
(默认$ ANDROID_NDK_ROOT)
-android-ndk-platform ..........设置android平台
(默认android-9)
-android-ndk-host ..............设置android NDK主机(linux-x86,linux-x86_64等)
(默认$ ANDROID_NDK_HOST)
-android-arch ..................设置android体系结构(armeabi,armeabi-v7a,x86,mips,
arm64-v8a,x86_64,mips64)
(默认armeabi-v7a)
-android-toolchain-version .....设置android工具链版本
(默认4.9)
-no-android-style-assets .......不要在自动提取的代码中编译
样式资源来自运行时设备。设置这个会
使Android风格行为不正确,但将启用
与LGPL2.1许可证兼容。
* -android-style-assets ..........编译自动提取样式资源的代码
来自运行时设备。这个选项会使得
Android平台插件与LGPL2.1不兼容。
原版英文帮助文档:
qgm@ubuntu:~/Downloads/qt-everywhere-opensource-src-5.6.2$ ./configure --help
+ cd qtbase
+ /home/qgm/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase/configure -top-level --help
Usage: configure [options]
Installation options:
These are optional, but you may specify install directories.
-prefix <dir> ...... The deployment directory, as seen on the target device.
(default /usr/local/Qt-5.6.2, $PWD if -developer-build is active)
-extprefix <dir> ... The installation directory, as seen on the host machine.
(default 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 be used. (default EXTPREFIX)
You may use these 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>
(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>
(default PREFIX)
-plugindir <dir> ...... Plugins will be installed to <dir>
(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>
(default ARCHDATADIR/imports)
-qmldir <dir> ......... Imports for QML2 will be installed to <dir>
(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>
(default DATADIR/translations)
-sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>
(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>
(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.
-debug ............. Compile and link Qt with debugging turned on.
-debug-and-release . Compile and link two versions of Qt, with and without
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-tests exporting)
* -no-optimized-tools ... Do not build optimized host tools even in debug build.
-optimized-tools ...... Build optimized host tools even in debug build.
-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)
-c++std <edition> .. Compile Qt with C++ standard edition (c++98, c++11, c++14, c++1z)
Default: highest supported
* -shared ............ Create and use shared Qt libraries.
-static ............ Create and use static Qt libraries.
-no-largefile ...... Disables large file support.
+ -largefile ......... Enables Qt to access files larger than 4 GB.
-no-accessibility .. Do not compile Accessibility support.
Disabling accessibility is not recommended, as it will break QStyle
and may break other internal parts of Qt.
With this switch you create a source incompatible version of Qt,
which is unsupported.
+ -accessibility ..... Compile Accessibility support.
-no-sql-<driver> ... Disable SQL <driver> entirely.
-qt-sql-<driver> ... Enable a SQL <driver> in the Qt SQL module, by default
none are turned on.
-plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to
at run time.
Possible values for <driver>:
[ db2 ibase mysql oci odbc psql sqlite sqlite2 tds ]
-system-sqlite ..... Use sqlite from the operating system.
-no-qml-debug ...... Do not build the in-process QML debugging support.
+ -qml-debug ......... Build the QML debugging support.
-platform target ... The operating system and compiler you are building
on (default detected from host system).
See the README file for a list of supported
operating systems and compilers.
-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 rev2 instructions.
-qtnamespace <name> Wraps all Qt library code in 'namespace <name> {...}'.
-qtlibinfix <infix> Renames all libQt*.so to libQt*<infix>.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 detect include and library paths. By default,
configure determines whether to use pkg-config or not with
some heuristics such as checking the environment variables.
-no-pkg-config ..... Disable use of pkg-config.
-force-pkg-config .. Force usage of pkg-config (skips pkg-config usability
detection heuristic).
-help, -h .......... Display this information.
Third Party Libraries:
-qt-zlib ............ Use the zlib bundled with Qt.
+ -system-zlib ........ Use zlib from the operating system.
See http://www.gzip.org/zlib
-no-mtdev ........... Do not compile mtdev support.
+ -mtdev .............. Enable mtdev support.
+ -no-journald ........ Do not send logging output to journald.
-journald ........... Send logging output to journald.
+ -no-syslog .......... Do not send logging output to syslog.
-syslog ............. Send logging output to syslog.
-no-gif ............. Do not compile GIF reading support.
-no-libpng .......... Do not compile PNG support.
-qt-libpng .......... Use the libpng bundled with Qt.
+ -system-libpng ...... Use libpng from the operating system.
See http://www.libpng.org/pub/png
-no-libjpeg ......... Do not compile JPEG support.
-qt-libjpeg ......... Use the libjpeg bundled with Qt.
+ -system-libjpeg ..... Use libjpeg from the operating system.
See http://www.ijg.org
-no-freetype ........ Do not compile in Freetype2 support.
-qt-freetype ........ Use the libfreetype bundled with Qt.
+ -system-freetype..... Use the libfreetype provided by the system (enabled if -fontconfig is active).
See http://www.freetype.org
-no-harfbuzz ........ Do not compile HarfBuzz-NG support.
* -qt-harfbuzz ........ Use HarfBuzz-NG bundled with Qt to do text shaping.
It can still be disabled by setting
the QT_HARFBUZZ environment variable to "old".
-system-harfbuzz .... Use HarfBuzz-NG from the operating system
to do text shaping. It can still be disabled
by setting the QT_HARFBUZZ environment variable to "old".
See http://www.harfbuzz.org
-no-openssl ......... Do not compile support for OpenSSL.
+ -openssl ............ Enable run-time OpenSSL support.
-openssl-linked ..... Enabled linked OpenSSL support.
-no-libproxy ....... Do not compile support for libproxy
+ -libproxy .......... Use libproxy from the operating system.
-qt-pcre ............ Use the PCRE library bundled with Qt.
+ -system-pcre ........ Use the PCRE library from the operating system.
-qt-xcb ............. Use xcb- libraries bundled with Qt.
(libxcb.so will still be used from operating system).
+ -system-xcb ......... Use xcb- libraries from the operating system.
-xkb-config-root .... Set default XKB config root. This option is used only together with -qt-xkbcommon-x11.
-qt-xkbcommon-x11 ... Use the xkbcommon library bundled with Qt in combination with xcb.
+ -system-xkbcommon-x11 Use the xkbcommon library from the operating system in combination with xcb.
-no-xkbcommon-evdev . Do not use X-less xkbcommon when compiling libinput support.
* -xkbcommon-evdev .... Use X-less xkbcommon when compiling libinput support.
-no-xinput2 ......... Do not compile XInput2 support.
* -xinput2 ............ Compile XInput2 support.
-no-xcb-xlib......... Do not compile Xcb-Xlib support.
* -xcb-xlib............ Compile Xcb-Xlib support.
-no-glib ............ Do not compile Glib support.
+ -glib ............... Compile Glib support.
-no-pulseaudio ...... Do not compile PulseAudio support.
+ -pulseaudio ......... Compile PulseAudio support.
-no-alsa ............ Do not compile ALSA support.
+ -alsa ............... Compile ALSA support.
-no-gtkstyle ........ Do not compile GTK theme support.
+ -gtkstyle ........... Compile GTK theme support.
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.
-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 module and dependencies.
-no-widgets ........ Don't build the Qt Widgets module and dependencies.
+ -widgets ........... Build the Qt Widgets module and dependencies.
-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. On Apple platforms, this implies using
absolute install names (based in -libdir) for dynamic
libraries and frameworks.
+ -rpath ............. Link Qt libraries and executables using the library
install path as a runtime 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 more easily.
-no-cups ........... Do not compile CUPS support.
* -cups .............. Compile CUPS support.
Requires cups/cups.h and libcups.so.2.
-no-iconv .......... Do not compile support for iconv(3).
* -iconv ............. Compile support for iconv(3).
-no-evdev .......... Do not compile support for evdev.
* -evdev ............. Compile support for evdev.
-no-tslib .......... Do not compile support for tslib.
* -tslib ............. Compile support for tslib.
-no-icu ............ Do not compile support for ICU libraries.
+ -icu ............... Compile support for ICU libraries.
-no-fontconfig ..... Do not compile FontConfig support.
+ -fontconfig ........ Compile FontConfig support.
-no-strip .......... Do not strip binaries and libraries of unneeded symbols.
* -strip ............. Strip binaries and libraries of unneeded symbols when installing.
* -no-pch ............ Do not use precompiled header support.
-pch ............... Use precompiled header support.
* -no-ltcg Do not use Link Time Code Generation
-ltcg Use Link Time Code Generation.
-no-dbus ........... Do not compile the Qt D-Bus module.
+ -dbus-linked ....... Compile the Qt D-Bus module and link to libdbus-1.
-dbus-runtime ...... Compile the Qt D-Bus module and dynamically load libdbus-1.
-reduce-relocations ..... Reduce relocations in the libraries through extra
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 GNU gold linker if available.
-force-asserts ........ Force Q_ASSERT to be enabled even in release builds.
-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 the device mkspec
(experimental)
* -no-separate-debug-info . Do not store debug information 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-kms ............ Do not compile backends for KMS.
* -kms ............... Compile backends for KMS.
-no-gbm ............ Do not compile backends for GBM.
* -gbm ............... Compile backends for GBM.
* -no-directfb ....... Do not compile DirectFB support.
-directfb .......... Compile DirectFB support.
-no-linuxfb ........ Do not compile Linux Framebuffer support.
* -linuxfb ........... Compile Linux Framebuffer support.
* -no-mirclient....... Do not compile Mir client support.
-mirclient.......... Compile Mir client support.
-qpa <name> ......... Sets the default QPA platform (e.g xcb, cocoa, windows).
-xplatform target ... The target platform when cross-compiling.
-sysroot <dir> ...... Sets <dir> as the target compiler's and qmake's sysroot 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> .. Compile in <feature>. The available features
are described in src/corelib/global/qfeatures.txt
-qconfig local ...... 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 changing this 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 and higher, or regular desktop OpenGL.
Use es2 for <api> to override auto-detection.
-no-libinput ........ Do not support libinput.
* -libinput ........... Enable libinput support.
-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 1.0 is used by default when available.
Use 0.10 or 1.0 for <version> to override auto-detection.
* -no-system-proxies .. Do not use system network proxies by default.
-system-proxies ..... Use system network proxies by default.
-no-warnings-are-errors Make warnings be treated normally
-warnings-are-errors Make warnings 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 of frameworks and
link tools against those frameworks.
-no-framework ...... Do not build Qt as a series of frameworks.
* -securetransport ... Use SecureTransport instead of OpenSSL
-no-securetransport Do not use SecureTransport, either use OpenSSL or do not use any SSL backend
at all (if combined with -no-openssl).
-sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. The argument should be
one of the available SDKs as listed by 'xcodebuild -showsdks'.
Note that the argument applies only to Qt libraries and applications built
using the target mkspec - not host tools such as qmake, moc, rcc, etc.
Android options:
-android-sdk path .............. The Android SDK root path.
(default $ANDROID_SDK_ROOT)
-android-ndk path .............. The Android NDK root path.
(default $ANDROID_NDK_ROOT)
-android-ndk-platform .......... Sets the android platform
(default android-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)
(default armeabi-v7a)
-android-toolchain-version ..... Sets the android toolchain version
(default 4.9)
-no-android-style-assets ....... Do not compile in the code which automatically extracts
style assets from the run-time device. Setting this will
make the Android style behave incorrectly, but will enable
compatibility with the LGPL2.1 license.
* -android-style-assets .......... Compile the code which automatically extracts style assets
from the run-time device. This option will make the
Android platform plugin incompatible with the LGPL2.1.