{"id":290,"date":"2009-05-12T01:32:28","date_gmt":"2009-05-11T17:32:28","guid":{"rendered":"http:\/\/www.darksun190.cn\/blog\/?p=290"},"modified":"2009-05-12T01:32:28","modified_gmt":"2009-05-11T17:32:28","slug":"windowxpiaqt45","status":"publish","type":"post","link":"http:\/\/darksun190.cn\/blog\/?p=290","title":{"rendered":"WindowXP\u4e0b\u5b89\u88c5QT4.5"},"content":{"rendered":"<p>\u5c11\u6709\u7684\u6280\u672f\u8d34\u70c2\u5c3e\u4e86\u2026\u2026\u53d7\u5230\u7f6e\u7591\u4e86\uff0c\u8fd9\u4e2a\u5f53\u65f6\u6298\u817e\u7684\u5b9e\u5728\u592a\u6076\u5fc3\uff0c\u5b8c\u4e8b\u540e\u5b9e\u5728\u61d2\u5f97\u518d\u5199\u8fc7\u7a0b\u4e86\u3002<\/p>\n<p>\u6211\u6700\u540e\u7684\u89e3\u51b3\u65b9\u6848\u662f\u7f16\u8bd1\u4e86\u4e24\u4e2aQt\uff0c\u4e00\u4e2a\u7528\u6765\u7f16\u8bd1\u9759\u6001\u7684\uff0c\u4e00\u4e2a\u7528\u6765\u7f16\u8bd1\u52a8\u6001\u94fe\u63a5\u7684\u3002\u5176\u5b9e\u5b89\u88c5\u540e\u9ed8\u8ba4\u662f\u52a8\u6001\u94fe\u63a5\uff0c\u6240\u4ee5copy\u7136\u540e\u7f16\u8bd1\u4e00\u6b21\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6211\u76f8\u4fe1\u81f3\u5c114.5\u8fd9\u4e2a\u7248\u672c\u6ca1\u6709\u7ecf\u8fc7\u7f16\u8bd1\u6d4b\u8bd5\uff0c\u4e00\u5927\u5806\u7684\u7f16\u8bd1\u9009\u9879\u6839\u672c\u4e0d\u8d77\u4f5c\u7528\uff0c\u9ed8\u8ba4\u7684\u7f16\u8bd1\u751a\u81f3\u8fdb\u884c\u5230\u4e00\u534a\u4f1a\u62a5\u9519\uff08\u81f3\u5c11\u5728\u6211\u8fd9\u91cc\u662f\u8fd9\u6837\uff09\uff0c\u800c\u4e14\u62a5\u9519\u7684\u662fdemo\u548cexamples\uff0c\u6211\u5f88\u65e0\u8bed\uff0c\u5f53\u65f6\u6211\u624b\u52a8\u4fee\u6539Makefile\u5c06\u6240\u6709\u6709\u5173demo\u548cexamples\u7684\u884c\u5168\u90e8\u5220\u6389\u624d\u6210\u529f\u5b8c\u6210\u7684\u3002<\/p>\n<p>\u4f7f\u7528\u65f6\u901a\u8fc7\u7c7b\u4f3c\u8fd9\u6837\u7684\u65b9\u6cd5 C:\\WINDOWS\\system32\\cmd.exe \/K C:\\Qt\\bin\\qtenv.bat \u901a\u8fc7\u6539\u53d8\u73af\u5883\u53d8\u91cf\u6587\u4ef6\u6765\u8c03\u7528\u4e24\u79cd\u4e0d\u540c\u7684\u73af\u5883\u3002<\/p>\n<p>\u53e6\uff0c\u7f16\u8bd1Qt\u4e4b\u524d\u7535\u8111\u91cc\u53ea\u6709DevCPP\uff0c\u6211\u5176\u5b9e\u662f\u7528\u4e8c\u8fdb\u5236\u7684Qt\u7f16\u8bd1\u7684Qt\u81ea\u5df1\u2026\u2026\u4e0a\u4e00\u4e2a\u7248\u672c\u7528\u7684\u662f4.2\uff0c\u6bd4\u8fd9\u4e2a\u7248\u672c\u7f16\u8bd1\u8d77\u6765\u65b9\u4fbf\u591a\u4e86\u3002<\/p>\n<p>Ok\uff0c\u7b80\u5355\u7684\u60c5\u51b5\u5c31\u8fd9\u4e48\u591a\uff0c\u5982\u679c\u8fd8\u6709\u95ee\u9898\u6b22\u8fce\u7ee7\u7eed\u7f6e\u7591\u3002<\/p>\n<h6><em><\/em><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u534e\u4e3d\u5206\u9694\u7ebf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/h6>\n<p>12\u65e5\u665a\u66f4\u65b0\uff1a<\/p>\n<p>\u4eca\u5929\u4e00\u5929\u90fd\u5728\u641e\u7f16\u8bd1\u73af\u5883\uff0c\u96be\u5f97\u6709\u8fd9\u4e48\u9ad8\u7684\u5174\u81f4\uff0c\u76f8\u5e94\u7684\uff0c\u4e00\u5929\u6ca1\u5e72\u6d3b\uff0c\u5bf9\u4e0d\u8d77\u6211\u7684\u85aa\u6c34\u554a\uff0c\u867d\u7136\u67d0\u79cd\u610f\u4e49\u4e0a\u8fd9\u4e5f\u662f\u4e3a\u6211\u5c06\u6765\u7684\u5de5\u4f5c\u505a\u51c6\u5907\u3002<\/p>\n<p>\u82b1\u8d39\u5927\u91cf\u65f6\u95f4\u7f16\u8bd1\u7684\u540c\u65f6\uff0c\u53d1\u73b0\u4e86\u51e0\u4e2a\u95ee\u9898\u3002<\/p>\n<pre>Qt3\u652f\u6301\u7684\u5e93\u76f8\u5f53\u5360\u7a7a\u95f4\uff0c\u8fd8\u6709\u6211\u5e94\u8be5\u7528\u4e0d\u5230\u7684XML\u7b49\u652f\u6301\uff0c\u4e0d\u8fc7\u591a\u7f16\u8bd1\u4e5f\u4e0d\u662f\u574f\u4e8b\uff0c\u53cd\u6b63\u786c\u76d8\u73b0\u5728\u5927\u4e86\u3002<\/pre>\n<pre>\u4f7f\u7528-static\u5168\u90e8\u91cd\u65b0\u7f16\u8bd1qt\u662f\u4e2a\u5f88\u50bb\u74dc\u4e5f\u5f88\u5360\u7a7a\u95f4\u7684\u4e3e\u52a8\uff0c\u50cfassistant\u8fd9\u79cd\u4e1c\u897f\u7f16\u8bd1\u6210\u9759\u6001\u7684\u6839\u672c\u6ca1\u610f\u4e49\uff0c\u6211\u89c9\u609f\u8fd8\u6ca1\u6709\u9ad8\u5230\u4efb\u610f\u673a\u5668\u90fd\u8981\u968f\u65f6\u770b\u624b\u518c\u5b66\u4e60\u7684\u5730\u6b65\u3002\u53ea\u9759\u6001\u7f16\u8bd1lib\u548cqmake\u5e94\u8be5\u5c31\u53ef\u4ee5\u4e86\u3002<\/pre>\n<pre>\u6240\u8c13\u7684static\u76f8\u5bf9share\u53ea\u662f\u5728\u7f16\u8bd1\u65f6\u591a\u94fe\u63a5\u4e86\u51e0\u4e2a\u5e93\uff0c\u5f53\u7136\u4e0d\u91cd\u65b0\u7f16\u8bd1\u8fd9\u4e9b\u5e93\u4e5f\u6ca1\u6709\uff0c\u4e0d\u8fc7\u8fd9\u610f\u5473\u7740\u7f16\u8bd1\u597dstatic\u7684\u73af\u5883\u53ef\u4ee5\u540c\u65f6\u7f16\u8bd1\u51fashare\u7684\u7a0b\u5e8f\u3002<\/pre>\n<h6><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u534e\u4e3d\u5206\u9694\u7ebf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/h6>\n<h6><em>\u6628\u5929\u665a\u4e0amake\u4e0a\u5c31\u53bb\u7761\u89c9\u4e86\uff0c\u7ed3\u679c\u51fa\u4e86\u95ee\u9898\uff0c\u4fee\u6539\u4e00\u4e0b\u3002<\/em><\/h6>\n<p>\u7b2c\u4e00\u6b65\u5f53\u7136\u662f\u4e0b\u8f7d\uff0cQT\u5f53\u524d\u6700\u65b0release\u7248\u672c\u662f4.5\uff0c\u7b2c\u4e00\u6b21\u63a8\u51fa\u4e86SDK\uff08\u548cJAVA\u5b66\u7684\uff1f\uff09\uff0c\u5c06\u5e93\u548c\u8de8\u5e73\u53f0\u6240\u9700\u5185\u5bb9\u96c6\u6210\u3002<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.qtsoftware.com\/downloads\/sdk-windows-cpp\">http:\/\/www.qtsoftware.com\/downloads\/sdk-windows-cpp<\/a><\/p>\n<p>\u5982\u679c\u6709\u914d\u7f6e\u597d\u53ef\u968f\u65f6\u4f7f\u7528\u7684\u7f16\u8bd1\u73af\u5883\uff0c\u53ef\u8003\u8651\u53ea\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff1a<a href=\"http:\/\/www.qtsoftware.com\/downloads\/qt-creator-1.0-source-package\">http:\/\/www.qtsoftware.com\/downloads\/qt-creator-1.0-source-package<\/a><\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6bd5\u53cc\u51fb\u5b89\u88c5\uff0c\u76f4\u89c9\u4e0a\u6ca1\u4ec0\u4e48\u4e0d\u4e00\u6837\uff0c\u6bd4\u8f83\u7eb3\u95f74.5\u91cc\u628aassistant\u4ece\u5f00\u59cb\u83dc\u5355\u4e2d\u79fb\u8d70\u4e86\uff0c\u611f\u89c9\u83ab\u540d\u5176\u5999\u3002<\/p>\n<p>\u5176\u5b9e\u53ea\u662f\u590d\u5236\u4e00\u5927\u5806\u6587\u4ef6\uff0c\u7136\u540e\u6dfb\u51e0\u4e2a\u73af\u5883\u53d8\u91cf\u800c\u5df2\uff0c4.5\u5b89\u88c5\u5b8c\u5e76\u6ca1\u6709\u81ea\u52a8\u6dfb\u52a0\uff0c\u770b\u6765\u5fc5\u987b\u8981\u81ea\u5df1\u52a8\u624b\u3002<\/p>\n<p>\u5728\u73af\u5883\u53d8\u91cf\u91cc\u6dfb\u52a0QTDIR\u4e3a\u5b89\u88c5\u76ee\u5f55\uff0c\u6211\u5b89\u88c5\u5230\u4e86C:\\Qt\u4e0b\u3002\u7136\u540e\u4fee\u6539PATH\u73af\u5883\u53d8\u91cf\uff0c\u6dfb\u52a0%QTDIR%\\qt\\bin (\u653eqmake\u7684\uff09\u548c%QTDIR%\\mingw\\bin\uff08\u653emake\u7684)\u6211\u56e0\u4e3a\u88c5\u8fc7devcpp\u5c31\u7528dev\u7684make\u8def\u5f84\u4e86\u3002\u56e0\u4e3aQT4.5\u7684make\u8fd8\u8981\u6253mingw32-make\u3002<\/p>\n<p>\u8fd9\u6837\u5176\u5b9e\u5c31\u7b97\u5b89\u88c5\u5b8c\u4e86\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e0b\u9762\u7b80\u53553\u90e8\u66f2\u7f16\u8bd1\u4e86<\/p>\n<p>qmake -project<\/p>\n<p>qmake<\/p>\n<p>make<\/p>\n<p>\u4e0d\u8fc7\u7531\u4e8e\u9ed8\u8ba4\u4e0b\u8f7d\u4e3a\u52a8\u6001\u94fe\u63a5\u7248\uff0c\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\u5fc5\u987b\u5728\u6709QT\u5e93\u7684\u8ba1\u7b97\u673a\u4e0a\u624d\u53ef\u4ee5\u8fd0\u884c\uff0c\u6240\u4ee5\u60f3\u8981\u5c06\u7f16\u8bd1\u51fa\u9759\u6001\u7248\u672c\uff0c\u9700\u8981\u91cd\u65b0\u7f16\u8bd1QT\u3002<\/p>\n<p>\u65b9\u6cd5\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u4e0d\u8fc7\u65f6\u95f4\u5f88\u957f\uff0c\u5728QT\u5f00\u59cb\u83dc\u5355\u70b9\u51fbQt Command Prompt\uff0c\u7136\u540e\u5728\u5f53\u524d\u76ee\u5f55\u4e0b<\/p>\n<p>configure -static -release -fast (\u65f6\u95f4\u5f88\u957f\uff0c\u5927\u4e8e\u4e94\u5206\u949f\uff09<\/p>\n<p>make \uff08\u65f6\u95f4\u90a3\u662f\u76f8\u5f53\u957f\uff0c\u51e0\u4e2a\u5c0f\u65f6\u5427\uff0c\u7761\u7740\u4e86\u4e0d\u77e5\u9053\uff09<\/p>\n<p>make clean<\/p>\n<p><em>\u8fd9\u4e09\u884c\u672c\u6765\u662f\u7167\u7f51\u4e0a\u6284\u7684\uff0c\u7ed3\u679c\u51fa\u4e86\u95ee\u9898\uff0c\u6211\u5f88\u4e0d\u660e\u767d\u4e3a\u4ec0\u4e48\u8fdeexample\u90fd\u8981\u4e00\u8d77\u7f16\u8bd1-_-b\uff0c\u800c\u4e14\u8fd8\u7f16\u8bd1\u4e0d\u8fc7\uff01\u91cd\u65b0\u624b\u52a8\u6267\u884cconfigure.exe\u4e5f\u6ca1\u6709\u627e\u5230\u7c7b\u4f3cno-example\u7684\u9009\u9879\uff0c\u4e8e\u662f\u8bd5\u8fc7\u51e0\u6b21\u522b\u7684\u65b9\u6cd5\u540e\u6700\u7ec8\u624b\u52a8\u4fee\u6539Makefile\uff0c\u628a\u6240\u6709\u6709\u5173example\u548cdemo\u7684make\u8bed\u53e5\u5168\u90e8\u5220\u6389\uff0c\u7f16\u8bd1\u901a\u8fc7\u3002\u627e\u4e86\u4e00\u4e2a\u4f8b\u5b50\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u53d1\u73b0\u53ea\u6709200K\u5927\u5c0f\u8fd8\u4ee5\u4e3a\u51fa\u4e86\u95ee\u9898\uff0c\u53c8\u6267\u884c\u4e86\u6b21make install\uff0c\u7136\u540e\u53d1\u73b0\u6211\u627e\u7684\u4f8b\u5b50\u91cc\u6ca1\u8c03qt\u7684\u5e93\uff0c\u5f53\u7136\u5927\u4e0d\u4e86\uff0c\u4e8e\u662f\u987a\u5229\u5b8c\u6210\u3002\u6700\u7ec8\u53c2\u6570\u4e3a -static -release\uff0c\u6ca1\u6709\u6dfb\u52a0fast\u3002<\/em><\/p>\n<p>\u867d\u7136\u6700\u540e\u4e00\u6b65\u65e0\u6240\u8c13\uff0c\u4e0d\u8fc7\u8fd8\u662f\u7701\u4e86\u76f8\u5f53\u4e0d\u5c11\u7684\u786c\u76d8\u7a7a\u95f4\uff0c\u6700\u7ec8\u5927\u5c0f1.5G\u5de6\u53f3\uff0cmake clean\u7701\u4e86\u5927\u6982450M\u3002<\/p>\n<p>\u4e0d\u8fc7\u6211\u4f9d\u7136\u89c9\u5f97\u4e0d\u65b9\u4fbf\uff0c\u8fd9\u6837\u7f16\u8bd1\u51fa\u7684\u4e1c\u897f\u867d\u7136\u53ef\u4ee5\u5728\u4efb\u610f\u7535\u8111\u4e0a\u8fd0\u884c\uff0c\u4e0d\u8fc7\u76f8\u5f53\u5927\uff0c\u5c24\u5176make debug\u7684\u65f6\u5019\u6700\u7b80\u5355\u7684\u7a0b\u5e8f\u4e5f\u8981\u51e0\u5341M\u4e14\u6162\u3002\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u65b9\u6cd5\u53ef\u4ee5\u9759\u6001\u52a8\u6001\u968f\u65f6\u5207\u6362\u554a\u3002\u3002\u3002<\/p>\n<p>QT4.5\u751f\u6210\u7684release\u7a0b\u5e8f\u53c8\u53d8\u5927\u4e86\uff0c\u539f\u6765\u53ea\u67098M\u5de6\u53f3\uff0c\u73b0\u5728\u670911M\u4e86\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c11\u6709\u7684\u6280\u672f\u8d34\u70c2\u5c3e\u4e86\u2026\u2026\u53d7\u5230\u7f6e\u7591\u4e86\uff0c\u8fd9\u4e2a\u5f53\u65f6\u6298\u817e\u7684\u5b9e\u5728\u592a\u6076\u5fc3\uff0c\u5b8c\u4e8b\u540e\u5b9e\u5728\u61d2\u5f97\u518d\u5199\u8fc7\u7a0b\u4e86\u3002 \u6211\u6700\u540e\u7684\u89e3\u51b3\u65b9\u6848\u662f\u7f16\u8bd1 &hellip; <a href=\"http:\/\/darksun190.cn\/blog\/?p=290\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cWindowXP\u4e0b\u5b89\u88c5QT4.5\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=290"}],"version-history":[{"count":0,"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions"}],"wp:attachment":[{"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darksun190.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}