{"id":4494,"date":"2023-05-09T15:51:37","date_gmt":"2023-05-09T07:51:37","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=4494"},"modified":"2023-05-09T15:51:37","modified_gmt":"2023-05-09T07:51:37","slug":"cygwin%e6%89%93%e5%8c%85exe%e5%8e%9f%e7%90%86%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/exekaifa\/4494.html","title":{"rendered":"cygwin\u6253\u5305exe\u539f\u7406\u4ecb\u7ecd"},"content":{"rendered":"<p>Cygwin\u662f\u4e00\u4e2a\u5728Windows<a href=\"https:\/\/exe.yimenapp.com\/tool-683.html\">windows\u6253\u5305deb\u7a0b\u5e8f<\/a>\u5e73\u53f0\u4e0a\u5b9e\u73b0\u4e86POSIX\uff08\u53ef\u79fb\u690d\u64cd\u4f5c\u7cfb\u7edf\u63a5\u53e3\uff09\u7684\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e9bLinux\/Unix\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u547d\u4ee4\u548c\u5de5\u5177\uff0c\u4f7f\u5f97\u5728Windows\u5e73\u53f0\u4e0a\u80fd\u591f\u66f4\u65b9\u4fbf\u5730\u8fdb\u884cLinux\/Unix\u5f00\u53d1\u548c\u8fd0\u884c\u3002\u5728Cygwin\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u4e8eLinux\/Unix\u7cfb\u7edf\u7684bash shell\u6765\u8fd0\u884c\u547d\u4ee4\u548c\u7a0b\u5e8f\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528gcc\u7b49\u5de5\u5177\u8fdb\u884c\u7f16\u8bd1\u548c\u94fe\u63a5\uff0c\u751f\u6210Windows\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>Cygwin\u4e2d\u7684\u53ef\u6267\u884c\u6587\u4ef6\u9ed8\u8ba4\u662f\u4ee5DLL\u5f62\u5f0f\u5b58\u5728\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4eec\u4f9d\u8d56\u4e8eCygwin DLL\u5e93\u6587\u4ef6\uff0c\u800c\u8fd9\u4e2a\u5e93\u6587\u4ef6\u5fc5\u987b\u8981\u5b58\u5728\u4e8e\u7cfb\u7edf\u4e2d\u624d\u80fd\u8fd0\u884c\u3002\u56e0\u6b64\uff0c\u5982\u679c\u60f3\u8981\u5c06Cygwin\u4e2d\u7684\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684exe\u6587\u4ef6\uff0c\u5c31\u9700\u8981\u5c06Cygwin DLL\u5e93\u6587\u4ef6\u548c\u7a0b\u5e8f\u4e00\u8d77\u6253\u5305\u8fdb\u53bb\uff0c\u4f7f\u5f97\u7a0b\u5e8f\u4e0d\u4f9d\u8d56\u4e8e\u7cfb\u7edf\u4e2d\u7684Cygwin\u73af\u5883\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u6253\u5305Cygwin\u7a0b\u5e8f\u4e3a\u72ec\u7acbexe\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u9996\u5148\u9700\u8981\u5b89\u88c5Cygwin\u73af\u5883\uff0c\u5e76\u786e\u4fdd\u5b89\u88c5\u4e86\u9700\u8981\u7684\u7f16\u8bd1\u5668\u548c\u5de5\u5177\u94fe\uff0c\u5982gcc\u3001make\u7b49\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u5b89\u88c5NSIS\uff08Nullsoft Scriptable Install System\uff09\u8f6f\u4ef6\uff0c\u5b83\u662f\u4e00\u4e2a\u7528\u4e8e\u5236\u4f5cW<a href=\"https:\/\/exe.yimenapp.com\/tool-1941.html\">\u6253\u5305\u751f\u6210exe\u6587\u4ef6<\/a>indows\u5b89\u88c5\u7a0b\u5e8f\u7684\u5f00\u6e90\u5de5\u5177\u3002<\/p>\n<p>2. \u7f16\u5199NSIS\u811a\u672c<\/p>\n<p>NSIS\u811a\u672c\u662f\u7528\u6765\u63cf\u8ff0\u5b89\u88c5\u7a0b\u5e8f\u7684\u884c\u4e3a\u548c\u7ec4\u6210\u90e8\u5206\u7684\u811a\u672c\u6587\u4ef6\u3002\u5728NSIS\u811a\u672c\u4e2d\uff0c\u9700\u8981\u6307\u5b9a\u5b89\u88c5\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u5b89\u88c5\u76ee\u5f55\u3001\u9700\u8981\u6253\u5305\u7684\u7a0b\u5e8f\u6587\u4ef6\u548cCygwin DLL\u5e93\u6587\u4ef6\u7b49\u4fe1\u606f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684NSIS\u811a\u672c\u793a\u4f8b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>; \u5b9a\u4e49\u5b89\u88c5\u7a0b\u5e8f\u7684\u540d\u79f0\u548c\u7248<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/17\/15\/07286092793.jpg\" \/><\/figure>\n<\/p>\n<p>\u672c\u53f7<\/p>\n<p>Name &#8220;MyProgram&#8221;<\/p>\n<p>OutFile &#8220;MyProgram.exe&#8221;<\/p>\n<p>Version &#8220;1.0&#8221;<\/p>\n<p>; \u5b9a\u4e49\u5b89\u88c5\u76ee\u5f55<\/p>\n<p>InstallDir &#8220;$PROGRAMFILES\\MyProgram&#8221;<\/p>\n<p>; \u5b9a\u4e49\u9700\u8981\u6253\u5305\u7684\u6587\u4ef6<\/p>\n<p>File &#8220;MyProgram.exe&#8221;<\/p>\n<p>File &#8220;cygwin1.dll&#8221;<\/p>\n<p>&#8220;`<\/p>\n<p>3. \u6253\u5305\u7a0b\u5e8f<\/p>\n<p>\u4f7f\u7528NSIS\u8f6f\u4ef6\u6253\u5f00NSIS\u811a\u672c\u6587\u4ef6\uff0c\u7136\u540e\u8fdb\u884c\u7f16\u8bd1\u548c\u6253\u5305\u64cd\u4f5c\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0cNSIS\u4f1a\u5c06NSIS\u811a\u672c\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u7a0b\u5e8f\u6587\u4ef6\u548cCygwin DLL\u5e93\u6587\u4ef6\u4e00\u8d77\u6253\u5305\u8fdb\u5b89\u88c5\u7a0b\u5e8f\u4e2d\uff0c\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684exe\u6587\u4ef6\u3002<\/p>\n<p>4. \u6d4b\u8bd5\u7a0b\u5e8f<\/p>\n<p>\u8fd0\u884c\u751f\u6210\u7684exe\u6587\u4ef6\uff0c\u6d4b\u8bd5\u7a0b\u5e8f\u662f\u5426\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u7a0b\u5e8f\u4e0d\u518d\u4f9d\u8d56\u4e8e\u7cfb\u7edf\u4e2d\u7684Cygwin\u73af\u5883\uff0c\u56e0\u4e3a\u7a0b\u5e8f\u548cCygwin DLL\u5e93\u6587\u4ef6\u5df2\u7ecf\u88ab\u6253\u5305\u8fdb\u4e86exe\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06Cygwin\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684exe\u6587\u4ef6\uff0c\u4f7f\u5f97\u7a0b\u5e8f\u53ef\u4ee5\u5728\u4e0d\u4f9d\u8d56\u4e8e\u7cfb\u7edf\u4e2dCygwin\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u5728Windows\u5e73\u53f0\u4e0a\u8fdb\u884cLinux\/Unix\u5f00\u53d1\u548c\u8fd0\u884c\u7684\u7528\u6237\u6765\u8bf4\uff0c\u662f\u4e00\u79cd\u975e\u5e38\u4fbf\u5229\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cygwin\u662f\u4e00\u4e2a\u5728Windows\u5e73\u53f0\u4e0a\u5b9e\u73b0\u4e86POSIX\uff08\u53ef\u79fb\u690d\u64cd\u4f5c\u7cfb\u7edf\u63a5\u53e3\uff09\u7684\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e9bLinux\/Unix\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u547d\u4ee4\u548c\u5de5\u5177\uff0c\u4f7f\u5f97\u5728Windows\u5e73\u53f0\u4e0a\u80fd\u591f\u66f4\u65b9\u4fbf\u5730\u8fdb\u884cLinux<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[6007,802,1113,6008,356],"class_list":["post-4494","post","type-post","status-publish","format-standard","hentry","category-exekaifa","tag-pc","tag-802","tag-1113","tag-exe","tag-356"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=4494"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4494\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=4494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=4494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=4494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}