Qt-configure配置选项

这个页面给出了一个简短的,当使用configure脚本或configure.exe二进制构建Qt时的各种不同的可用选项。当使用默认选项构建Qt,只需如下所示的从命令行调用configure。

在Linux、Mac OS X和Unix平台下构建Qt:

. / configure

在Windows上,运行相应的可执行:

./configure.exe

如果你想定制的构建Qt,请使用下面的表中列出的选项。如要查看完整的选项列表,可调用./configure的- help命令行选项。


跨平台的选项:


编译和链接两个Qt库,调试的打开情况
OptionDescriptionNote
-buildkey <key>用指定的库和插件来构建Qt 
<key>当库加载插件,它只会加载那些有一个匹配的<key>。 
-release在调试关掉的情况下编译和链接Qt 
-debug在调试打开的情况下编译和链接Qt默认打开
-debug-and-release这个选项代表一个默认值,需要评估。如果评价成功,特点是包括。
-opensource编译和链接开源版的Qt. 
-commercial编译和链接的商业版的Qt。 
-developer-build编译和链接Qt 与 Qt 开发选项Qt(包括自动测试出口) 
-shared创建和使用共享Qt库。默认打开
-static创建和使用静态Qt库。 
-ltcg生成链接时间代码。只适用于发布版本。
-no-ltcg不生成链接时间代码。默认打开
-no-fast通过生成makefile 为Qt所配置有项目文件。默认打开
-fast快速的生成makefile为Qt只配置库和子目录。所有其他的makefile通过运行qmake来创建。
-no-exceptions不支持交叉编译平台上 
-exceptions支持交叉编译默认打开
-no-accessibility不支持访问编译窗口 
-accessibility支持访问编译窗口默认打开
-no-stl不支持STL编译 
-stl支持STL编译默认打开
-no-sql-<driver>完全禁用SQL <驱动>,默认情况下没有打开。 
-qt-sql-<driver>在Qt库中启用SQL <驱动>. 
-plugin-sql-<driver>Enable SQL <driver> as a plugin to be linked to at run time.Available values for <driver>: mysql, psql, oci, odbc, tds, db2, sqlite, sqlite2, ibase. Drivers marked with a '+' during configure have been detected as available on this system.
-system-sqliteUse sqlite from the operating system. 
-no-qt3supportDisables the Qt 3 support functionality. 
-no-openglDisables OpenGL functionality 
-opengl <api>Enable OpenGL support with specified API version.Available values for <api>: desktop - Enable support for Desktop OpenGL (Default), es1 - Enable support for OpenGL ES Common Profile, es2 - Enable support for OpenGL ES 2.0.
-no-openvgDisables OpenVG functionalityDefault value.
-openvgEnables OpenVG functionalityRequires EGL support, typically supplied by an OpenGL or other graphics implementation.
-platform <spec>The operating system and compiler you are building on.The default value is %QMAKESPEC%.
-xplatform <spec>The operating system and compiler you are cross compiling for.See the README file for a list of supported operating systems and compilers.
-system-proxiesUse system network proxies by default. 
-no-system-proxiesDo not use system network proxies by default. 
-qtnamespace <namespace>Wraps all Qt library code in 'namespace name {..} 
-qtlibinfix <infix>Renames all Qt* libs to Qt*<infix> 
-D <define>Add an explicit define to the preprocessor. 
-I <includepath>Add an explicit include path. 
-L <librarypath>Add an explicit library path. 
-l <libraryname>Add an explicit library name, residing in a librarypath. 
-graphicssystem <sys>Specify which graphics system should be used.Available values for <sys>: * raster - Software rasterizer, opengl - Using OpenGL acceleration, experimental!, openvg - Using OpenVG acceleration, experimental!
-help, -h, -?Display this information. 


Third Party Libraries

OptionDescriptionNote
-qt-zlibUse the zlib bundled with Qt. 
-system-zlibUse zlib from the operating system.See http://www.gzip.org/zlib
-no-gifDo not compile GIF reading support.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-libpngDo not compile PNG support. 
-qt-libpngUse the libpng bundled with Qt.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-system-libpngUse libpng from the operating system.See http://www.libpng.org/pub/png
-no-libmngDo not compile MNG support.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-qt-libmngUse the libmng bundled with Qt. 
-system-libmngUse libmng from the operating system.See http://www.libmng.com
-no-libtiffDo not compile TIFF support.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-qt-libtiffUse the libtiff bundled with Qt. 
-system-libtiffUse libtiff from the operating system.See http://www.libtiff.org
-no-libjpegDo not compile JPEG support.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-qt-libjpegUse the libjpeg bundled with Qt. 
-system-libjpegUse libjpeg from the operating system.See http://www.ijg.org. This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.

Qt for Windows only:

OptionDescriptionNote
-no-dspDo not generate VC++ .dsp files. 
-dspGenerate VC++ .dsp files, only if spec "win32-msvc".Default value.
-no-vcprojDo not generate VC++ .vcproj files. 
-vcprojGenerate VC++ .vcproj files, only if platform "win32-msvc.net".Default value.
-no-incredibuild-xgeDo not add IncrediBuild XGE distribution commands to custom build steps. 
-incredibuild-xgeAdd IncrediBuild XGE distribution commands to custom build steps. This will distribute MOC and UIC steps, and other custom buildsteps which are added to the INCREDIBUILD_XGE variable.The IncrediBuild distribution commands are only added to Visual Studio projects. This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-plugin-manifestsDo not embed manifests in plugins. 
-plugin-manifestsEmbed manifests in plugins.Default value.
-no-qmakeDo not compile qmake. 
-qmakeCompile qmake.Default value
-dont-processDo not generate Makefiles/Project files. This will override -no-fast if specified. 
-processGenerate Makefiles/Project files.Default value.
-no-rttiDo not compile runtime type information. 
-rttiCompile runtime type information.Default value.
-no-mmxDo not compile with use of MMX instructions 
-mmxCompile with use of MMX instructionsThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-3dnowDo not compile with use of 3DNOW instructions 
-3dnowCompile with use of 3DNOW instructionsThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-sseDo not compile with use of SSE instructions 
-sseCompile with use of SSE instructionsThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-sse2Do not compile with use of SSE2 instructions 
-sse2Compile with use of SSE2 instructionsThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-opensslDo not compile in OpenSSL support 
-opensslCompile in run-time OpenSSL supportThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-openssl-linkedCompile in linked OpenSSL support 
-no-dbusDo not compile in D-Bus support 
-dbusCompile in D-Bus support and load libdbus-1 dynamically.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-dbus-linkedCompile in D-Bus support and link to libdbus-1 
-no-phononDo not compile in the Phonon module 
-phononCompile the Phonon module.Phonon is built if a decent C++ compiler is used. This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-phonon-backendDo not compile the platform-specific Phonon backend-plugin 
-phonon-backendCompile in the platform-specific Phonon backend-pluginDefault value.
-no-multimediaDo not compile the multimedia module 
-multimediaCompile in multimedia moduleDefault value.
-no-audio-backendDo not compile in the platform audio backend into QtMultimedia 
-audio-backendCompile in the platform audio backend into QtMultimediaThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-webkitDo not compile in the WebKit module 
-webkitCompile in the WebKit moduleWebKit is built if a decent C++ compiler is used. This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-webkit-debugCompile in the WebKit module with debug symbols. 
-no-scriptDo not build the QtScript module. 
-scriptBuild the QtScript module.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-scripttoolsDo not build the QtScriptTools module. 
-scripttoolsBuild the QtScriptTools module.This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-declarativeDo not build the declarative module 
-declarativeBuild the declarative moduleThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-declarative-debugDo not build the declarative debugging support 
-declarative-debugBuild the declarative debugging supportDefault value.
-arch <arch>Specify an architecture.Available values for <arch>: * windows, windowsce, symbian, boundschecker, generic.
-no-style-<style>Disable <style> entirely. 
-qt-style-<style>Enable <style> in the Qt Library.Available styles: * windows, + windowsxp, + windowsvista, * plastique, * cleanlooks, * motif, * cde, windowsce, windowsmobile, s60
-no-native-gesturesDo not use native gestures on Windows 7. 
-native-gesturesUse native gestures on Windows 7.Default value.
-no-mpDo not use multiple processors for compiling with MSVCDefault value.
-mpUse multiple processors for compiling with MSVC (-MP) 
-loadconfig <config>Run configure with the parameters from file configure_<config>.cache. 
-saveconfig <config>Run configure and save the parameters in file configure_<config>.cache. 
-redoRun configure with the same parameters as last time. 

Qt for Windows CE only:

OptionDescriptionNote
-no-iwmmxtDo not compile with use of IWMMXT instructions 
-iwmmxtDo compile with use of IWMMXT instructions.This is for Qt for Windows CE on Arm only. This option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-no-crtDo not add the C runtime to default deployment rules.Default value.
-qt-crtQt identifies C runtime during project generation 
-crt <path>Specify path to C runtime used for project generation. 
-no-cetestDo not compile Windows CE remote test application 
-cetestCompile Windows CE remote test applicationThis option denotes a default value and needs to be evaluated. If the evaluation succeeds, the feature is included.
-signature <file>Use file for signing the target project 
-phonon-wince-ds9Enable Phonon Direct Show 9 backend for Windows CEDefault value

Qt for Symbian OS only:

OptionDescriptionNote
-no-freetypeDo not compile in Freetype2 support.Default value.
-qt-freetypeUse the libfreetype bundled with Qt. 
-fpu <flags>VFP type on ARM, supported options: softvfp(default) |vfpv2 | softvfp+vfpv2 
-no-s60Do not compile in S60 support. 
-s60Compile with support for the S60 UI FrameworkDefault value.
-no-usedeffilesDisable the usage of DEF files. 
-usedeffilesEnable the usage of DEF files. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值