{"id":724,"date":"2010-02-16T21:02:45","date_gmt":"2010-02-16T13:02:45","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=724"},"modified":"2010-02-16T21:33:46","modified_gmt":"2010-02-16T13:33:46","slug":"build-openttd-windows-binary-with-freebsd","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2010\/02\/16\/build-openttd-windows-binary-with-freebsd\/","title":{"rendered":"build OpenTTD windows binary with FreebSD"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p><span style=\"color: #ff9900\"><strong><span style=\"color: #ff6600\">FAILED&#8230;<\/span><\/strong><\/span><\/p>\n<p>\u61f6\u5f97\u5728 Windows \u4e0b\u88dd\u4e00\u5806\u958b\u767c\u5de5\u5177\uff0c\u6240\u4ee5\u5c31\u52d5\u90a3\u4e00\u5806 FreeBSD \u7684\u4e3b\u610f\u3002<\/p>\n<p>\u9996\u5148\u8981\u88dd mingw\uff0c\u7528 ports \u88dd\u61c9\u8a72\u662f\u6700\u65b9\u4fbf\u7684\u3002<\/p>\n<ul>\n<li>devel\/mingw32-gcc<\/li>\n<li>devel\/mingw32-binutils<\/li>\n<li>devel\/mingw32-bin-msvcrt<\/li>\n<\/ul>\n<p>\u6e2c\u8a66\u65b9\u5f0f\u4e5f\u5f88\u7c21\u55ae\uff0c\u7528 mingw32-gcc \u96a8\u4fbf\u7de8\u8b6f\u500b\u5c0f\u7a0b\u5f0f\u770b\u80fd\u4e0d\u80fd\u52d5\u5373\u53ef\u3002<\/p>\n<p>OpenTTD \u7684\u539f\u59cb\u78bc\u7684\u90e8\u4efd\uff0c\u8981\u627e\u6700\u65b0\u7684\u958b\u767c\u6e2c\u8a66\u677f\u7684\u8a71\u76f4\u63a5\u5f9e svn \u6293\u662f\u6700\u65b9\u4fbf\u7684\uff0c\u53bb\u6293\u4e00\u4e0b<\/p>\n<pre lang=\"bash\">svn co svn:\/\/svn.openttd.org\/trunk openttd<\/pre>\n<p>\u7136\u5f8c\u53c3\u8003<a href=\"http:\/\/wiki.openttd.org\/Cross_Compiling\">\u5b98\u7db2\u7684 wiki<\/a> \u7684\u505a\u6cd5\u4f86 make\u3002FreeBSD \u8981\u53e6\u5916\u88dd devel\/gmake\uff0c\u539f\u56e0\u4e0d\u8a73\u8ff0\uff0c\u7136\u800c\u5b98\u7db2\u88e1\u9762\u8aaa\u7684 Makefile.config \u4e26\u4e0d\u6703\u751f\u51fa\u4f86\uff0c\u6240\u4ee5\u5c31\u5361\u5728\u9019\u908a\uff0c\u7b49\u4ee5\u5f8c\u6709\u7a7a\u518d\u4f86\u8a66\u770b\u770b\u8981\u600e\u9ebc\u8abf\u624d\u80fd\u52d5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] FAILED&#8230; \u61f6\u5f97\u5728 Windows \u4e0b\u88dd\u4e00\u5806\u958b\u767c\u5de5\u5177\uff0c\u6240\u4ee5\u5c31\u52d5\u90a3\u4e00\u5806 FreeBSD \u7684\u4e3b\u610f\u3002 \u9996\u5148\u8981\u88dd mingw\uff0c\u7528 ports \u88dd\u61c9\u8a72\u662f\u6700\u65b9\u4fbf\u7684\u3002 devel\/mingw32-gcc devel\/mingw32-binutils devel\/mingw32-bin-msvcrt \u6e2c\u8a66\u65b9\u5f0f\u4e5f\u5f88\u7c21\u55ae\uff0c\u7528 mingw32-gcc \u96a8\u4fbf\u7de8\u8b6f\u500b\u5c0f\u7a0b\u5f0f\u770b\u80fd\u4e0d\u80fd\u52d5\u5373\u53ef\u3002 OpenTTD \u7684\u539f\u59cb\u78bc\u7684\u90e8\u4efd\uff0c\u8981\u627e\u6700\u65b0\u7684\u958b\u767c\u6e2c\u8a66\u677f\u7684\u8a71\u76f4\u63a5\u5f9e svn \u6293\u662f\u6700\u65b9\u4fbf\u7684\uff0c\u53bb\u6293\u4e00\u4e0b svn co svn:\/\/svn.openttd.org\/trunk openttd \u7136\u5f8c\u53c3\u8003\u5b98\u7db2\u7684 wiki \u7684\u505a\u6cd5\u4f86 make\u3002FreeBSD \u8981\u53e6\u5916\u88dd devel\/gmake\uff0c\u539f\u56e0\u4e0d\u8a73\u8ff0\uff0c\u7136\u800c\u5b98\u7db2\u88e1\u9762\u8aaa\u7684 Makefile.config \u4e26\u4e0d\u6703\u751f\u51fa\u4f86\uff0c\u6240\u4ee5\u5c31\u5361\u5728\u9019\u908a\uff0c\u7b49\u4ee5\u5f8c\u6709\u7a7a\u518d\u4f86\u8a66\u770b\u770b\u8981\u600e\u9ebc\u8abf\u624d\u80fd\u52d5\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[4591,221,4598],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-games","tag-freebsd","tag-mingw","tag-openttd"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=724"}],"version-history":[{"count":4,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/724\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/724\/revisions\/728"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}