{"id":133,"date":"2013-08-02T09:41:59","date_gmt":"2013-08-02T01:41:59","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=133"},"modified":"2013-08-02T09:41:59","modified_gmt":"2013-08-02T01:41:59","slug":"qt%20configure%20%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/133.html","title":{"rendered":"Qt configure \u53c2\u6570\u8bf4\u660e"},"content":{"rendered":"<p>\n\tQt configure\n<\/p>\n<p>\n\t\u5728\u7f16\u8bd1QT\u524d\uff0c\u53ef\u52a0\u5404\u79cd\u53c2\u6570\u6765\u5b9a\u5236\u81ea\u5df1\u60f3\u8981\u7684QT\u5e93\u3002\u8fd9\u5bf9\u9700\u8981\u88c1\u51cfQT\u5e93\u7684\u670b\u53cb\u6765\u8bf4\u975e\u5e38\u91cd\u8981\u3002\u5bf9\u4e8e\u5982\u4f55\u7f16\u8bd1QT\uff0c\u53ef\u4ee5\u53c2\u8003:http:\/\/hi.baidu.com\/agassi%5Fp\/blog\/item\/455833601e4eb14ceaf8f866.html\n<\/p>\n<p>\n\t\u914d\u7f6e\u53c2\u6570\u9009\u9879:\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u524d\u9762\u662f*\u53f7\u7684\u8868\u793a\u9ed8\u8ba4\u53c2\u6570. +\u53f7\u8868\u793a\u8be5\u529f\u80fd\u8981\u6c42\u88ab\u8bc4\u4f30\uff0c\u8bc4\u4f30\u6210\u529f\u540e\u624d\u80fd\u88ab\u63a5\u53d7.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-release ........... \u8c03\u8bd5\u5173\u95ed.\u6ca1\u6709\u8c03\u8bd5\u5e93\uff0c\u81ea\u5df1\u7684\u9879\u76ee\u53ea\u80fd\u53d1\u5e03\uff0c\u4e0d\u80fd\u8c03\u8bd5\uff08\u6ca1\u6709\u8c03\u8bd5\u5e93\u7684\u7f18\u6545\uff09\uff0c\u5982\u679c\u4f60\u786c\u8981\u7f16\u8bd1debug\u7248\u672c\u7684\u8bdd\uff0c\u4f1a\u63d0\u793a\u627e\u4e0d\u5230xxxxxd.dll\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -debug ............. \u53ea\u6709\u8c03\u8bd5\u5e93\uff0c\u6ca1\u6709\u91ca\u653e\u5e93\uff0c\u4e5f\u5c31\u662f\u8bf4\u4ee5\u540e\u81ea\u5df1\u7684\u9879\u76ee\u53ea\u80fd\u8c03\u8bd5,\u5982\u679c\u4f60\u786c\u8981\u7f16\u8bd1debug\u7248\u672c\u7684\u8bdd\uff0c\u4f1a\u63d0\u793a\u627e\u4e0d\u5230xxxxx.dll\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -debug-and-release . \u7f16\u8bd1\u540e\u5305\u542b\u4e24\u79cd\u5e93\u3002\u6700\u597d\u7f16\u8bd1\u4e24\u79cd\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-opensource ........ \u7f16\u8bd1\u5f00\u6e90\u7248.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-commercial ........ \u7f16\u8bd1\u5546\u4e1a\u7248. \u8fd9\u4e24\u4e2a\u53c2\u6570\u4e00\u822c\u4e0d\u9700\u6307\u5b9a\uff0cconfigure\u5f00\u59cb\u9700\u8981\u4f60\u9009\u62e9\u7248\u672c\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-developer-build ... \u7f16\u8bd1\u5f00\u53d1\u8005\u9009\u9879\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -shared ............\u52a8\u6001\u7f16\u8bd1.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-static ............ \u9759\u6001\u94fe\u63a5\u5e93.\u8c8c\u4f3c\u6709\u63d2\u4ef6\u4e0d\u80fd\u7528\u9759\u6001\u7f16\u8bd1\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -no-fast ........... configure\u751f\u6210\u6240\u6709\u9879\u76eemakefiles\u6587\u4ef6\uff0c\u5e76\u7f16\u8bd1\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-fast .............. \u53ea\u751f\u6210\u5e93\u76ee\u5f55\u53ca\u5b50\u76ee\u5f55\u4e0b\u7684\u9879\u76ee\u7684makefiles\u6587\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-exceptions ..... \u5173\u95ed\u5f02\u5e38\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -exceptions ........ \u5f00\u542f\u5f02\u5e38\u652f\u6301.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-accessibility .. \u5173\u95ed\u5bf9windows active\u63a7\u4ef6\u652f\u6301.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -accessibility .....\u5bf9windows active\u63a7\u4ef6\u652f\u6301.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-stl ............ \u65e0c++\u6807\u51c6\u5e93\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -stl ............... \u6709\u6807\u51c6\u5e93\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u5c16\u62ec\u53f7\u5728blogger\u51fa\u95ee\u9898\u4e86\u3002\u3002\u3002\u3002\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-sql- ... Disable SQL entirely, by default none are turned on.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-sql- ... Enable a SQL in the Qt Library.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-plugin-sql- Enable SQL as a plugin to be linked to at runtime.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tAvailable values for :\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tmysql\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tpsql\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\toci\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\todbc\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\ttds\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tdb2\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ sqlite\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tsqlite2\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tibase\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t(drivers marked with a '+' have been detected as available on this system)\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-system-sqlite ..... Use sqlite from the operating system.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-qt3support ..... \u4e0d\u63d0\u4f9b\u5bf9qt3\u51fd\u6570\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-opengl ......... \u4e0d\u63d0\u4f9bOpenGL\u51fd\u6570\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-platform ... The operating system and compiler you are building on.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t(default %QMAKESPEC%)\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-xplatform .. The operating system and compiler you are cross compiling to.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tSee the README file for a list of supported operating systems and compilers.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qtnamespace Wraps all Qt library code in 'namespace name {...}\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-D ........ Add an explicit define to the preprocessor.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-I ... Add an explicit include path.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-L ... Add an explicit library path.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-l ... Add an explicit library name, residing in a librarypath.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-graphicssystem Specify which graphicssystem should be used.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tAvailable values for :\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* raster - Software rasterizer\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\topengl - Using OpenGL accelleration, experimental!\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-help, -h, -? ...... Display this information.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7b2c\u4e09\u65b9\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-zlib ........... \u4f7f\u7528zlib\u7ed1\u5b9a\u5230qt.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -system-zlib ....... \u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684zlib\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u89c1 http:\/\/www.gzip.org\/zlib\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-gif ............ \u4e0d\u7f16\u8bd1gif\u6587\u4ef6\u8bfb\u53d6\u652f\u6301\u63d2\u4ef6\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -qt-gif ............ \u7f16\u8bd1gif\u6587\u4ef6\u8bfb\u53d6\u652f\u6301\u63d2\u4ef6\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u53c2\u89c1 src\/plugins\/imageformats\/gif\/qgifhandler.h\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-libpng ......... \u4e0d\u7f16\u8bd1PNG\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-libpng ......... \u7f16\u8bd1PNG\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -system-libpng ..... \u4f7f\u7528\u7cfb\u7edflibpng\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u89c1 http:\/\/www.libpng.org\/pub\/png\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-libmng ......... \u4e0d\u7f16\u8bd1MNG\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-libmng ......... \u7f16\u8bd1MNG\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -system-libmng ..... \u4f7f\u7528\u7cfb\u7edf\u7684mng\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u53c2\u89c1 http:\/\/www.libmng.com\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-libtiff ........ \u4e0d\u7f16\u8bd1tiff\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-libtiff ........ \u7f16\u8bd1tiff\u652f\u6301\u63d2\u4ef6.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -system-libtiff .... \u4f7f\u7528\u7cfb\u7edf\u7684libtiff\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u89c1 http:\/\/www.libtiff.org\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-libjpeg ........ \u4e0d\u7f16\u8bd1jpeg\u652f\u6301\u63d2\u4ef6\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-qt-libjpeg ........ \u7f16\u8bd1jpeg\u652f\u6301\u63d2\u4ef6\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -system-libjpeg .... \u4f7f\u7528\u7cfb\u7edf\u7684jpeg\u652f\u6301\u5e93\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u89c1 http:\/\/www.ijg.org\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u4ee5\u4e0b\u53c2\u6570\u4ec5\u5bf9qt for windows\u6709\u6548\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-dsp ............ \u4e0d\u751f\u6210 VC++ .dsp \u6587\u6863.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -dsp ...............\u751f\u6210 VC++ .dsp\u6587\u6863, \u9700\u8981\u6709\u5e73\u53f0\u6807\u8bc6\u7b26\"win32-msvc\".\u6ce8\u610f qt4\u5f00\u59cb\u5c31\u4e0d\u652f\u6301vc6.0\u4e86\u6240\u4ee5\u8fd9\u4e24\u4e2a\u53c2\u6570\u65e0\u6548\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-vcproj ......... \u4e0d\u751f\u6210 VC++ .vcproj \u6587\u6863\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -vcproj ............ \u751f\u6210 VC++ .vcproj \u6587\u6863, \u9700\u8981\u5e73\u53f0\u6807\u8bc6\u7b26\"win32-msvc.net\".\u4e5f\u5c31\u662fvs2003\u4ee5\u4e0a\u7684\u7f16\u8bd1\u73af\u5883\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to custom build steps.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -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.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t(The IncrediBuild distribution commands are only added to Visual Studio projects)\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-plugin-manifests \u63d2\u4ef6\u4e0d\u5d4c\u5165manifests.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -plugin-manifests .. \u63d2\u4ef6\u5d4c\u5165manifests.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-qmake .......... \u4e0d\u7f16\u8bd1qmake\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -qmake ............. \u7f16\u8bd1 qmake. \u4e0d\u5efa\u8bae \u4e0d\u7f16\u8bd1qmake\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-dont-process ...... \u4e0d\u751f\u6210makefiles\u548cproject\u6587\u6863. \u6bd4 -no-fast \u53c2\u6570\u4f18\u5148\u7ea7\u66f4\u9ad8\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -process ........... \u751f\u6210makefiles\u548cproject\u6587\u6863.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-rtti ........... \u4e0d\u7f16\u8bd1\u8fd0\u884c\u65f6\u7c7b\u578b\u4fe1\u606f\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -rtti .............. \u7f16\u8bd1\u8fd0\u884c\u65f6\u7c7b\u578b\u4fe1\u606f\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\/\/\u4e0b\u9762\u662f\u5bf9\u6307\u4ee4\u7684\u652f\u6301\uff0c\u4e0d\u89e3\u91ca\u4e86\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-mmx ............ Do not compile with use of MMX instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -mmx ............... Compile with use of MMX instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-3dnow .......... Do not compile\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\twith use of 3DNOW instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -3dnow ............. Compile with use of 3DNOW instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-sse ............ Do not compile with use of SSE instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -sse ............... Compile with use of SSE instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-sse2 ........... Do not compile with use of SSE2 instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -sse2 .............. Compile with use of SSE2 instructions\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -direct3d .......... \u5c06Direct3D\u652f\u6301\u7f16\u8bd1\u8fdb\u6765\u3002\u68c0\u6d4b\u4e0d\u5230direct3d sdk \u5c31\u4e0d\u652f\u6301\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-openssl ........ Do not compile in OpenSSL support\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -openssl ........... Compile in run-time OpenSSL support\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-openssl-linked .... Compile in linked OpenSSL support\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-dbus ........... Do not compile in D-Bus support\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -dbus .............. Compile in D-Bus support and load libdbus-1 dynamically\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-dbus-linked ....... Compile in D-Bus support and link to libdbus-1\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-phonon ......... \u4e0d\u5c06 Phonon \u6a21\u5757 \u7f16\u8bd1\u8fdb\u6765\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -phonon ............ \u5c06 Phonon \u6a21\u5757\u7f16\u8bd1\u8fdb\u6765 (\u82e5\u4f7f\u7528\u7684\u89c4\u8303\u7684c++\u7f16\u8bd1\u5668\u5219\u4f1a\u81ea\u52a8\u7f16\u8bd1Phonon\u6a21\u5757)\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-phonon-backend . Do not compile the platform-specific Phonon backend-plu\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tgin\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -phonon-backend .... Compile in the platform-specific Phonon backend-plugin\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-webkit ......... \u4e0d\u5c06webkit\u6a21\u5757\u7f16\u8bd1\u8fdb\u6765\uff0c\u7f16\u8bd1webkit\u975e\u5e38\u8017\u65f6\u95f4\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t+ -webkit ............ \u5c06webkit\u6a21\u5757\u7f16\u8bd1\u8fdb\u6765 (\u82e5\u4f7f\u7528\u7684\u89c4\u8303\u7684c++\u7f16\u8bd1\u5668\u5219\u4f1a\u81ea\u52a8\u7f16\u8bd1WebKit\u6a21\u5757)\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-scripttools .... Do not build the QtScriptTools module.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* -scripttools ....... Build the QtScriptTools module.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-arch ....... \u5916\u89c2\u6837\u5f0f.\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u6709\u4ee5\u4e0b\u51e0\u79cd :\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t* windows\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\twindowsce\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tboundschecker\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\tgeneric\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t-no-style-\u5c16\u62ec\u53f7\u91cc\u5305\u542b\u4e0a\u9762\u7684\u6837\u5f0f\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7f16\u8bd1\u4e00\u6b21Qt\u8981\u8017\u8d39\u592a\u591a\u7684\u65f6\u95f4\uff0c\u5e38\u5e38\u662f\u8d8a\u7740\u6025\u7528\u5b83\uff0c\u7f16\u8d77\u6765\u8d8a\u6162\u3002\u5176\u5b9e\u901a\u8fc7\u5f88\u7b80\u5355\u7684\u51e0\u62db\u53ef\u4ee5\u5e2e\u4f60\u8282\u7701\u7f16\u8bd1\u7684\u65f6\u95f4\u3002\u4e0b\u9762\u5c31\u4e00\u4e00\u9053\u6765\uff1a\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7b2c\u4e00\u62db\uff0c\u7f16\u8bd1\u4e4b\u524d\u786e\u5b9a\u54ea\u4e9b\u529f\u80fd\u662f\u4e0d\u5fc5\u8981\u7684\uff0c\u5bf9\u7f16\u8bd1\u6811\u8fdb\u884c\u7b80\u5355\u88c1\u526a\u3002\n<\/p>\n<p>\n\t\u6bd4\u5982\u6700\u5e38\u89c1\u7684\uff0c\u50cfdemos\uff0c examples\uff0c\u867d\u7136\u5f88\u6709\u53c2\u8003\u4ef7\u503c\uff0c\u4f46\u5b8c\u5168\u53ef\u4ee5\u653e\u5728\u540e\u9762\u7528\u5230\u7684\u65f6\u5019\u518d\u5355\u72ec\u7f16\u8bd1\u5c0f\u5de5\u7a0b\uff0c\u8fd9\u6837\u53ef\u4ee5\u8282\u7701\u4e0d\u5c11\u65f6\u95f4\u3002\u7ecf\u8fc7\u5b9e\u8df5\uff0c\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4fee\u6539configure\u6587\u4ef6\uff0c\u5728\u8be5\u6587\u4ef6\u4e2d\u6709\u4e2a\u6307\u5b9a\u7f16\u8bd1\u76ee\u5f55\u7684\u5b57\u6bb5\uff1a\n<\/p>\n<p>\n\tQT_DEFAULT_BUILD_PARTS=\u201dlibs tools examples demos docs translations\u201d\n<\/p>\n<p>\n\t\u53ef\u4ee5\u628aexamples\u3001demos\u548cdocs\u4ece\u8fd9\u91cc\u53bb\u6389\uff0c\u4f46\u8981\u6ce8\u610f\uff0c\u522b\u7684\u53ef\u4e0d\u80fd\u968f\u4fbf\u53bb\u6389\u3002\n<\/p>\n<p>\n\t\u5982\u679c\u5728\u540e\u9762\u7684\u4f7f\u7528\u4e2d\u53d1\u73b0\u6709\u4e9b\u5c0f\u5de5\u7a0b\u9700\u8981\u7f16\u8bd1\u4e86\uff0c\u53ef\u4ee5\u91c7\u7528\u4e00\u822c\u7f16\u8bd1Qt\u7a0b\u5e8f\u7684\u65b9\u6cd5\uff0c\u5373\u7528Qt\u5b89\u88c5\u76ee\u5f55bin\u4e0b\u7684qmake\u6765\u751f\u6210Makefile\uff0c\u540c\u6837\u53ef\u4ee5\u7f16\u8bd1\u548c\u6d4b\u8bd5\u4f8b\u5b50\u4ee3\u7801\uff0c\u4e00\u70b9\u4e5f\u4e0d\u5f71\u54cd\u4f7f\u7528\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7b2c\u4e8c\u62db\uff0c\u88c1\u526aQt\u6a21\u5757\u3002\n<\/p>\n<p>\n\tQt\u4ece4\u7248\u672c\u5f00\u59cb\u91c7\u7528\u4e86\u6a21\u5757\u5316\u7684\u5f62\u5f0f\uff0c\u5c06\u72ec\u7acb\u7684\u529f\u80fd\u5c01\u88c5\u5728\u72ec\u7acb\u7684\u5e93\u91cc\uff0c\u6240\u4ee5\u53ef\u4ee5\u5f88\u7b80\u5355\u7684\u53bb\u6389\u4e00\u4e9b\u4e0d\u9700\u8981\u7684\u5e93\uff0c\u8fd9\u6837\u4e5f\u80fd\u8282\u7701\u7f16\u8bd1\u65f6\u95f4\u548c\u5bf9\u786c\u76d8\u7a7a\u95f4\u7684\u5360\u7528\u3002 Qt\u7684configure\u914d\u7f6e\u63d0\u4f9b\u4e86\u4e00\u4e9b\u8bbe\u7f6e\u6a21\u5757\u7684\u65b9\u6cd5\uff0c\u5982\u5b83\u652f\u6301-no-svg\u548c-no-webkit\uff0c\u901a\u8fc7configure\u7684\u65f6\u5019\u52a0\u8fd9\u4e9b\u9009\u9879\u5c31\u53ef\u4ee5\u53bb\u6389\u8fd9\u90e8\u5206\u652f\u6301\u3002\u76f8\u5e94\u7684\u8fd8\u6709\u5f88\u591a\u5c0f\u7684\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7configure\u53c2\u6570\u7684\u5f62\u5f0f\u914d\u7f6e\uff0c\u5177\u4f53\u7684\u53c2\u8003configure \u2013help\u7684\u8f93\u51fa\u3002\u5728\u67e5\u770bconfigure\u5e2e\u52a9\u7684\u65f6\u5019\u7279\u522b\u8981\u6ce8\u610f\u52a0*\u53f7\u7684\u5185\u5bb9\uff0c\u4e5f\u5c31\u662fQt\u9ed8\u8ba4\u7684configure\u9009\u9879\uff0c\u6709\u7684\u65f6\u5019\u9ed8\u8ba4\u9009\u9879\u53ef\u4e0d\u4e00\u5b9a\u662f\u8ba8\u4eba\u559c\u6b22\u7684\u54e6\u3002\n<\/p>\n<p>\n\tQt\u684c\u9762\u7248\u672c\u9ed8\u8ba4\u4f1a\u5c3d\u91cf\u591a\u7684\u7f16\u8bd1feature\u8fdb\u53bb\uff0c\u8fd9\u6837\u6709\u4e00\u5b9a\u7684\u597d\u5904\uff0c\u5c31\u662f\u7528\u6237\u53ef\u4ee5\u7528\u5230\u6240\u6709\u7684Qt\u529f\u80fd\uff0c\u4f46\u574f\u5904\u4e5f\u5f88\u660e\u663e\uff0c\u90a3\u5c31\u662f\u7f16\u8bd1\u51fa\u6765\u7684Qt\u8d85\u7ea7\u5927\uff0c\u7279\u522b\u662f\u7f16\u8bd1debug\u7248\u672c\uff0c\u57fa\u672c\u4e0a\u8981\u53601\u52302G\u7684\u7a7a\u95f4\uff0c\u6240\u4ee5\u4e2a\u4eba\u611f\u89c9\u7814\u7a76\u4e00\u4e0bconfigure\u7684\u9009\u9879\u8fd8\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002\u53e6\u5916\uff0c \u9ed8\u8ba4\u72b6\u51b5\u4e0b\u6709\u4e9b\u63d2\u4ef6\u662f\u4e0d\u4f1a\u7f16\u8bd1\u7684\uff0c\u6bd4\u5982\u6570\u636e\u5e93\u63d2\u4ef6\uff0c\u5f80\u5f80\u9700\u8981\u7528\u6237\u81ea\u5df1\u6839\u636e\u9700\u8981\u7f16\u8bd1\uff0c\u8fd9\u4e00\u70b9\u4e5f\u8981\u6ce8\u610f\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u7b2c\u4e09\u62db\uff0c\u9488\u5bf9\u5d4c\u5165\u5f0f\u7248\u672c\u7684\u914d\u7f6e\u3002\n<\/p>\n<p>\n\tQt\u7684\u5d4c\u5165\u5f0f\u7248\u672c\u672c\u8eab\u5c31\u652f\u6301feature\u88c1\u526a\uff0c\u6211\u4eec\u53ef\u4ee5\u5145\u5206\u5229\u7528\u8fd9\u4e00\u7279\u6027\u8ba9Qt\u5e93\u5c3d\u91cf\u53d8\u5c0f\u3002\u5177\u4f53\u7684\u505a\u6cd5\u662f\u8981\u505a\u4e00\u4e2a\u81ea\u5df1\u7684qconfig-[myconfig].h\u7279\u6027\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4f60\u8981\u53bb\u6389Qt\u4e2d\u7684\u54ea\u4e9bfeature\u3002\u5728configure\u7684\u65f6\u5019\u52a0\u201c-qconfig myconfig\u201d \u9009\u9879\uff0c Qt\u5c31\u4f1a\u6839\u636e\u4f60\u7ed9\u51fa\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u7f16\u8bd1\uff0c\u4ee5\u8fbe\u5230\u88c1\u526a\u7684\u76ee\u7684\u3002\u8fd9\u91cc\u8981\u5f3a\u8c03\u4e00\u4e0b\uff0c\u8fd9\u79cd\u88c1\u526a\u65b9\u5f0f\u53ea\u9002\u7528\u4e8e\u5d4c\u5165\u5f0f\u7248\u672c\u3002\u8fd9\u91cc\u7684myconfig\u53ef\u4ee5\u7528\u4efb\u4f55\u4f60\u559c\u6b22\u7684\u540d\u5b57\u6765\u4ee3\u66ff\u3002\n<\/p>\n<p>\n\t\u5728qt\u7684\u4ee3\u7801\u4e2d\u5df2\u7ecf\u7ed9\u51fa\u4e86\u4e00\u4e9bqconfig\u5934\u6587\u4ef6\u7684\u4f8b\u5b50\uff0c\u9ed8\u8ba4\u7f16\u8bd1\u91c7\u7528full config\u4e5f\u5c31\u662f\n<\/p>\n<p>\n\t\u4e0d\u88c1\u526a\u4efb\u4f55feature\u3002\u6240\u6709Qt\u9884\u5b9a\u4e49\u597d\u7684qconfig\u6587\u4ef6\uff0c\u53ef\u4ee5\u5728src\/corelib\/global\/\u4e0b\u627e\u5230\uff0c\u5305\u62ecqconfig-minimal.h, qconfig-small.h, qconfig.medium.h,qconfig-large.h\u548cqconfig-dist.h\uff0c\u4e5f\u5c31\u662f\u4ece\u88c1\u526a\u91cf\u7531\u591a\u5230\u5c11\u90fd\u6709\u636e\u53ef\u4f9d\u3002\u5982\u679c\u8981\u6dfb\u52a0\u4f60\u81ea\u5df1\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8981\u5728src\/corelib\/global\u4e0b\u5efa\u7acb\u4e00\u4e2a\u5f62\u5982qconfig-xxx.h\u7684\u6587\u4ef6\uff0c\u8fd9\u4e2axxx\u4e5f\u5c31\u662f\u4f60\u8981\u5728configure\u7684\u65f6\u5019\u4f20\u5165\u7684qconfig\u53c2\u6570\u3002\u7b14\u8005\u6d4b\u8bd5\u4f7f\u7528\u7684Qt\u7248\u672c\u662f4.4.1\uff0c\u8fd9\u4e2a\u7248\u672c\u7684build system\u6709\u4e2a\u5c0f\u6bdb\u75c5\uff0c\u5c31\u662f\u5982\u679c\u4f60\u6307\u5b9a\u7684qconfig\u53c2\u6570\u5b9e\u9645\u4e0a\u6ca1\u6709qconfig-xxx.h\u6587\u4ef6\u5bf9\u5e94\uff0c build\u4e0d\u4f1a\u505c\u6b62\uff0c\u5b83\u53ea\u4f1a\u7ed9\u51fa\u4e00\u4e2a\u4e0d\u8d77\u773c\u7684\u63d0\u793a\uff0c\u7f16\u8bd1\u8fc7\u7a0b\u4f1a\u7ee7\u7eed\uff0c \u8fd9\u4e00\u70b9\u633a\u8ba9\u4eba\u8d39\u89e3\u7684\u3002\u800c\u4e14\u8fd9\u79cd\u60c5\u51b5\u4e0bQt\u7f16\u8bd1\u4f7f\u7528\u7684\u914d\u7f6e\u57fa\u672c\u4e0a\u548cfullconfig\u76f8\u540c\uff0c\u9274\u4e8e\u5b83\u7684\u8ba9\u4eba\u8ff7\u60d1\u7684\u4e3e\u52a8\uff0c\u4e2a\u4eba\u89c9\u5f97\u6709\u5fc5\u8981\u63d0\u9192\u5927\u5bb6\u4e00\u4e0b\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49qconfig\u7684\u65f6\u5019\u4e00\u5b9a\u8981\u786e\u5b9a\u914d\u7f6e\u6587\u4ef6\u653e\u5bf9\u4e86\u4f4d\u7f6e\uff0c\u800c\u4e14qconfig\u53c2\u6570\u7ed9\u7684\u6b63\u786e\u3002\n<\/p>\n<p>\n\t\u4e00\u822c\u6211\u4eec\u7684\u5efa\u8bae\u662f\u5728\u684c\u9762\u4e0a\u6d4b\u8bd5\u9636\u6bb5\u7f16\u8bd1\u4e00\u4e2afull\u7684\u7248\u672c\uff0c\u518d\u6839\u636e\u4f60\u7684\u9879\u76ee\u4f7f\u7528Qt feature\u7684\u60c5\u51b5\u603b\u7ed3\u54ea\u4e9b\u53ef\u53bb\u6389\u7684feature\u3002 feature\u4e4b\u95f4\u6709\u5343\u4e1d\u4e07\u7f15\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u8fd9\u4e2a\u95ee\u9898\u4e5f\u662f\u56f0\u6270\u5f88\u591a\u4eba\u7684\u96be\u70b9\u6240\u5728\u3002\u5177\u4f53\u7684\u4f9d\u8d56\u53ef\u4ee5\u67e5\u9605src\/corelib\/global\/qfeatures.h\u548csrc\/corelib\/global\/qfeatures.txt\uff08\u63cf\u8ff0\u4f9d\u8d56\u5173\u7cfb\u7684\u6587\u6863\uff09\u3002\u53e6\u5916\uff0cQt\u91cc\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u914d\u7f6e\u4f9d\u8d56\u7684\u5de5\u5177\uff0c\u53eb\u505aqconfig\uff0c\u5728QTDIR\/tools\/qconfig\u76ee\u5f55\u3002\u8be5\u5de5\u5177\u9700\u8981\u57fa\u4e8eQt\u684c\u9762\u7248\u672c\u7f16\u8bd1\u3002\u5982\u5728\u6211\u7684linux\u7cfb\u7edf\u4e0b\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u7f16\u8bd1\uff1a\n<\/p>\n<p>\n\t$ cd qt-embedded-linux-commercial-4.4.1\/tools\/qconfig\n<\/p>\n<p>\n\t$ \/usr\/local\/Trolltech\/Qt-4.4.3\/bin\/qmake\n<\/p>\n<p>\n\t$ make\n<\/p>\n<p>\n\t\u7f16\u8bd1\u6210\u529f\u540e\u8fd0\u884c.\/qconfig\uff0c\u521d\u59cb\u8981\u6253\u5f00qfeatures.txt. Qconfig\u8bfb\u53d6\u8be5\u6587\u4ef6\u751f\u6210\u4e00\u4e2a\u6811\u72b6\u56fe\uff0c\u8be5\u56fe\u5f88\u6e05\u695a\u7684\u663e\u793a\u51fafeature\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u4f60\u53bb\u6389\u4e86LINEEDIT\u8fd9\u4e2afeature\uff0c\u7528\u5230\u8be5\u63a7\u4ef6\u7684combobox\u4e5f\u5c31\u4e0d\u80fd\u7ee7\u7eed\u4f7f\u7528\u4e86\u3002\u6709\u4e86\u8fd9\u4e2a\u5de5\u5177\u88c1\u526aQt\u53d8\u5f97\u7b80\u6d01\u76f4\u89c2\uff0c\u65b9\u4fbf\u4e86\u5f88\u591a\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u9009\u5b9a\u4e86\u4f60\u8981\u53bb\u6389\u7684feature\u540e\u70b9\u51fb\u83dc\u5355File-&gt;Save As..\u4f1a\u5f39\u51fa\u4fdd\u5b58\u6587\u4ef6\u7684\u9875\u9762\uff0c\u6587\u4ef6\u540d\u5b57\u5e94\u8be5\u5b9a\u4e49\u6210qconfig-xxx.h\u7684\u5f62\u5f0f\uff0c\u8fd9\u6837\u4f60\u5728configure\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u4f20\u5165\u76f8\u5e94\u7684qconfig\u53c2\u6570\u4e86\u3002\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9File-&gt;Open\u6253\u5f00\u73b0\u6709\u7684qconfig-xxx.h\u6587\u4ef6\uff0c\u901a\u8fc7\u4fee\u6539\u5df2\u7ecf\u6709\u7684\u6587\u4ef6\u66f4\u5feb\u7684\u7f16\u8f91\u914d\u7f6e\u3002\n<\/p>\n<p>\n\t\u6839\u636e\u7b14\u8005\u6d4b\u8bd5\uff0c\u672a\u7ecf\u88c1\u526a\u7684qte4.4.1\u7f16\u8bd1\u51fa\u6765\u4e3a\uff1a\n<\/p>\n<p>\n\tlibQtCore.so\u662f2.6M\n<\/p>\n<p>\n\tlibQtGui.so\u662f9.5M\n<\/p>\n<p>\n\t\u5982\u679c\u7528small\u6765\u7f16\u8bd1\uff0c\u5c31\u80fd\u7f29\u5c0f\u4e3a\uff1a\n<\/p>\n<p>\n\tlibQtCore.so\u662f2.0M\n<\/p>\n<p>\n\tlibQtGui.so\u662f5.7M\n<\/p>\n<p>\n\t\u5dee\u5f02\u8fd8\u662f\u6bd4\u8f83\u660e\u663e\u7684\u3002\n<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qt configure \u5728\u7f16\u8bd1QT\u524d\uff0c\u53ef\u52a0\u5404\u79cd\u53c2\u6570\u6765\u5b9a\u5236\u81ea\u5df1\u60f3\u8981\u7684QT\u5e93\u3002\u8fd9\u5bf9\u9700\u8981\u88c1\u51cfQT\u5e93\u7684\u670b\u53cb\u6765\u8bf4\u975e\u5e38\u91cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[152],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-qt"],"views":1477,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}