詳解 Qt Configure 參數不完全說明介紹
Qt Configure 參數不完全說明介紹是本文要介紹的內容,不多說,先來看內容。在編譯QT前,可加各種參數來定制自己想要的QT庫。這對需要裁減QT庫的朋友來說非常重要。對于如何編譯QT,詳解 LINUX下QT FOR ARM開發(fā)環(huán)境搭建過程 這篇文章。
配置參數選項:
前面是*號的表示默認參數. +號表示該功能要求被評估,評估成功后才能被接受.
- -release ........... 調試關閉.沒有調試庫,自己的項目只能發(fā)布,不能調試(沒有調試庫的緣故),如果你硬要編譯debug版本的話,會提示找不到xxxxxd.dll
- * -debug ............. 只有調試庫,沒有釋放庫,也就是說以后自己的項目只能調試,如果你硬要編譯debug版本的話,會提示找不到xxxxx.dll
- + -debug-and-release . 編譯后包含兩種庫。最好編譯兩種庫
- -opensource ........ 編譯開源版.
- -commercial ........ 編譯商業(yè)版. 這兩個參數一般不需指定,configure開始需要你選擇版本。
- -developer-build ... 編譯開發(fā)者選項。
- * -shared ............動態(tài)編譯.
- -static ............ 靜態(tài)鏈接庫.貌似有插件不能用靜態(tài)編譯。
- * -no-fast ........... configure生成所有項目makefiles文件,并編譯
- -fast .............. 只生成庫目錄及子目錄下的項目的makefiles文件.
- -no-exceptions ..... 關閉異常支持
- * -exceptions ........ 開啟異常支持.
- -no-accessibility .. 關閉對windows active控件支持.
- * -accessibility .....對windows active控件支持.
- -no-stl ............ 無c++標準庫支持
- * -stl ............... 有標準庫支持
尖括號在blogger出問題了。。。。。
- -no-sql- ... Disable SQL entirely, by default none are turned on.
- -qt-sql- ... Enable a SQL in the Qt Library.
- -plugin-sql- Enable SQL as a plugin to be linked to at runtime.
- Available values for :
- mysql
- psql
- oci
- odbc
- tds
- db2
- + sqlite
- sqlite2
- ibase
- (drivers marked with a '+' have been detected as available on this system)
- -system-sqlite ..... Use sqlite from the operating system.
- -no-qt3support ..... 不提供對qt3函數支持
- -no-opengl ......... 不提供OpenGL函數支持
- -platform ... The operating system and compiler you are building on.
- (default %QMAKESPEC%)
- -xplatform .. The operating system and compiler you are cross compiling to.
- See the README file for a list of supported operating systems and compilers.
- -qtnamespace Wraps all Qt library code in 'namespace name {...}
- -D ........ Add an explicit define to the preprocessor.
- -I ... Add an explicit include path.
- -L ... Add an explicit library path.
- -l ... Add an explicit library name, residing in a librarypath.
- -graphicssystem Specify which graphicssystem should be used.
- Available values for :
- * raster - Software rasterizer
- opengl - Using OpenGL accelleration, experimental!
- -help, -h, -? ...... Display this information.
第三方庫
- -qt-zlib ........... 使用zlib綁定到qt.
+ -system-zlib ....... 使用操作系統(tǒng)的zlib
見 http://www.gzip.org/zlib
- -no-gif ............ 不編譯gif文件讀取支持插件
+ -qt-gif ............ 編譯gif文件讀取支持插件
參見 src/plugins/imageformats/gif/qgifhandler.h
- -no-libpng ......... 不編譯PNG支持插件.
- -qt-libpng ......... 編譯PNG支持插件.
+ -system-libpng ..... 使用系統(tǒng)libpng庫
見 http://www.libpng.org/pub/png
- -no-libmng ......... 不編譯MNG支持插件.
- -qt-libmng ......... 編譯MNG支持插件.
+ -system-libmng ..... 使用系統(tǒng)的mng庫
參見 http://www.libmng.com
- -no-libtiff ........ 不編譯tiff支持插件.
- -qt-libtiff ........ 編譯tiff支持插件.
+ -system-libtiff .... 使用系統(tǒng)的libtiff庫
見 http://www.libtiff.org
- -no-libjpeg ........ 不編譯jpeg支持插件庫
- -qt-libjpeg ........ 編譯jpeg支持插件庫
+ -system-libjpeg .... 使用系統(tǒng)的jpeg支持庫
見 http://www.ijg.org
以下參數僅對qt for windows有效
- -no-dsp ............ 不生成 VC++ .dsp 文檔.
- -dsp ...............生成 VC++ .dsp文檔, 需要有平臺標識符"win32-msvc".注意 qt4開始就不支持vc6.0了所以這兩個參數無效。
- -no-vcproj ......... 不生成 VC++ .vcproj 文檔
- -vcproj ............ 生成 VC++ .vcproj 文檔, 需要平臺標識符"win32-msvc.net".也就是vs2003以上的編譯環(huán)境
- -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to custom build steps.
- -incredibuild-xge .. Add 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)
-no-plugin-manifests 插件不嵌入manifests.
- * -plugin-manifests .. 插件嵌入manifests.
- -no-qmake .......... 不編譯qmake
- * -qmake ............. 編譯 qmake. 不建議 不編譯qmake
- -dont-process ...... 不生成makefiles和project文檔. 比 -no-fast 參數優(yōu)先級更高
- * -process ........... 生成makefiles和project文檔.
- -no-rtti ........... 不編譯運行時類型信息。
- * -rtti .............. 編譯運行時類型信息。
- /下面是對指令的支持,不解釋了
- -no-mmx ............ Do not compile with use of MMX instructions
- + -mmx ............... Compile with use of MMX instructions
- -no-3dnow .......... Do not compile
with use of 3DNOW instructions
- + -3dnow ............. Compile with use of 3DNOW instructions
- -no-sse ............ Do not compile with use of SSE instructions
- + -sse ............... Compile with use of SSE instructions
- -no-sse2 ........... Do not compile with use of SSE2 instructions
- + -sse2 .............. Compile with use of SSE2 instructions
- + -direct3d .......... 將Direct3D支持編譯進來。檢測不到direct3d sdk 就不支持
- -no-openssl ........ Do not compile in OpenSSL support
- + -openssl ........... Compile in run-time OpenSSL support
- -openssl-linked .... Compile in linked OpenSSL support
- -no-dbus ........... Do not compile in D-Bus support
- + -dbus .............. Compile in D-Bus support and load libdbus-1 dynamically
- -dbus-linked ....... Compile in D-Bus support and link to libdbus-1
- -no-phonon ......... 不將 Phonon 模塊 編譯進來
- + -phonon ............ 將 Phonon 模塊編譯進來 (若使用的規(guī)范的c++編譯器則會自動編譯Phonon模塊)
- -no-phonon-backend . Do not compile the platform-specific Phonon backend-plu
gin
- * -phonon-backend .... Compile in the platform-specific Phonon backend-plugin
- -no-webkit ......... 不將webkit模塊編譯進來,編譯webkit非常耗時間。
- + -webkit ............ 將webkit模塊編譯進來 (若使用的規(guī)范的c++編譯器則會自動編譯WebKit模塊)
- -no-scripttools .... Do not build the QtScriptTools module.
- * -scripttools ....... Build the QtScriptTools module.
- -arch ....... 外觀樣式.
有以下幾種 :
- windows
- windowsce
- boundschecker
- generic
-no-style-尖括號里包含上面的樣式。
小結:關于Qt Configure 參數不完全說明介紹的內容介紹完了,希望本文對你有所幫助!