{"id":6531,"date":"2023-10-09T15:45:31","date_gmt":"2023-10-09T07:45:31","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=6531"},"modified":"2023-10-09T15:45:31","modified_gmt":"2023-10-09T07:45:31","slug":"mac%e7%94%9f%e6%88%90exe%e9%9c%80%e8%a6%81%e6%b3%a8%e6%84%8f%e5%93%aa%e4%ba%9b%e4%ba%8b%e9%a1%b9%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/6531\/","title":{"rendered":"mac\u751f\u6210exe\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f"},"content":{"rendered":"

macOS\u662f\u82f9\u679c\u516c\u53f8\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800cexe\u5219\u662fWindows\u5e73\u53f0\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u683c\u5f0f\u3002\u56e0\u6b64\uff0c\u5728macOS\u4e0a\u751f\u6210exe\u6587\u4ef6\u5e76\u4e0d\u662f\u4e00\u4ef6\u7b80\u5355\u7684\u4e8b\u60c5\uff0c\u9700\u8981\u501f\u52a9\u4e00\u4e9b\u5de5\u5177\u548c\u6280\u5de7\u3002<\/p>\n

\u4e00\u3001\u4f7f\u7528Wine<\/p>\n

Wine\u662f\u4e00\u6b3e\u53ef\u4ee5\u5728Unix\uff08\u5305\u62ecmacOS\uff09\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cWindows\u7a0b\u5e8f\u7684\u8f6f\u4ef6\uff0c\u5b83\u5b9e\u73b0\u4e86Windows API\u7684\u4e00\u90e8\u5206\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aUnix\u7cfb\u7edfbcm4\u8f6cexe<\/a>\u8c03\u7528\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Wine\u6765\u8fd0\u884cWindows\u7f16\u8bd1\u5668\uff0c\u4ece\u800c\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1. \u5b89\u88c5XQuartz<\/p>\n

XQuartz\u662fmacOS\u4e0a\u7684X Window\u7cfb\u7edf\uff0cWine\u9700\u8981\u4f9d\u8d56\u5b83\u6765\u8fd0\u884cWindows\u7a0b\u5e8f\u3002\u53ef\u4ee5\u5728XQuartz\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u5b89\u88c5\u5305\u5e76\u5b89\u88c5\u3002<\/p>\n

2. \u5b89\u88c5Wine<\/p>\n

\u53ef\u4ee5\u901a\u8fc7Homebrew\u3001MacPorts\u7b49\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Wine\uff0c\u4e5f\u53ef\u4ee5\u5728Wine\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u5b89\u88c5\u5305\u5e76\u5b89\u88c5\u3002<\/p>\n

3. \u5b89\u88c5Windows\u7f16\u8bd1\u5668<\/p>\n

\u53ef\u4ee5\u4f7f\u7528Visual Studio\u3001MinGW\u7b49Windows\u7f16\u8bd1\u5668\u6765\u751f\u6210exe\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7Wine\u8fd0\u884cWindows\u7f16\u8bd1\u5668\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u9ed8\u8ba4\u9009\u9879\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n

4. \u7f16\u8bd1\u7a0b\u5e8f<\/p>\n

\u4f7f\u7528Windows\u7f16\u8bd1\u5668\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

\u4e8c\u3001\u4f7f\u7528VirtualBox<\/p>\n

VirtualBox\u662f\u4e00\u6b3e\u865a\u62df\u673a\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5728macOS\u4e0a\u5b89\u88c5Windows\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4ece\u800c\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1. \u5b89\u88c5VirtualBox<\/p>\n

\u53ef\u4ee5\u5728VirtualBox\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u5b89\u88c5\u5305\u5e76\u5b89\u88c5\u3002<\/p>\n

2. \u5b89\u88c5Windows\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

\u5728VirtualBox\u4e2d\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u5b89\u88c5Windows\u64cd\u4f5c\u7cfb\u7edf\u3002\u53ef\u4ee5\u4f7f\u7528Windows\u7f16\u8bd1\u5668\u6765\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

3. \u8bbe\u7f6e\u5171\u4eab\u6587\u4ef6\u5939<\/p>\n

\u5728VirtualBox\u4e2d\u8bbe\u7f6e\u5171\u4eab\u6587\u4ef6\u5939\uff0c\u5c06\u9700\u8981\u751f\u6210exe\u6587\u4ef6\u7684\u7a0b\u5e8f\u590d\u5236\u5230\u5171\u4eab\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n

4. \u751f\u6210exe\u6587\u4ef6<\/p>\n

\u5728Window<\/p>\n

<\/figure>\n<\/p>\n

s\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4f7f\u7528Windows\u7f16\u8bd1\u5668\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u751f\u6210exe\u6587\u4ef6\u3002\u751f\u6210\u7684exe\u6587\u4ef6\u53ef\u4ee5\u4fdd\u5b58\u5728\u5171\u4eab\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n

\u4e09\u3001\u4f7f\u7528Crossover<\/p>\n

Crossover\u662f\u4e00\u6b3e\u5546\u4e1a\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5728macOS\u4e0a\u8fd0\u884cWindows\u7a0b\u5e8f\u3002\u4e0eWine\u7c7b\u4f3c\uff0cCrossover\u4e5f\u662f\u901a\u8fc7\u5b9e\u73b0Windows API\u6765\u8fd0\u884cWindows\u7a0b\u5e8f\u7684\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1. \u5b89\u88c5Crossover<\/p>\n

\u53ef\u4ee5\u5728Crossover\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u5b89\u88c5\u5305\u5e76\u5b89\u88c5\u3002<\/p>\n

2. \u5b89\u88c5Windows\u7f16\u8bd1\u5668<\/p>\n

\u53ef\u4ee5\u4f7f\u7528Crossover\u5185\u7f6e\u7684\u8f7b\u91cf\u7ea7\u684c\u9762\u8f6f\u4ef6\u5f00\u53d1ide<\/a>Windows\u7f16\u8bd1\u5668\uff0c\u4e5f\u53ef\u4ee5\u5728Crossover\u4e2d\u5b89\u88c5\u5176\u4ed6\u7684Windows\u7f16\u8bd1\u5668\u3002<\/p>\n

3. \u7f16\u8bd1\u7a0b\u5e8f<\/p>\n

\u4f7f\u7528Windows\u7f16\u8bd1\u5668\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

\u603b\u7ed3<\/p>\n

\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6cd5\u90fd\u53ef\u4ee5\u5728macOS\u4e0a\u751f\u6210exe\u6587\u4ef6\uff0c\u4f46\u662f\u5b83\u4eec\u90fd\u6709\u4e00\u4e9b\u5c40\u9650\u6027\u548c\u4e0d\u8db3\u4e4b\u5904\u3002\u4f7f\u7528Wine\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u6c34\u5e73\u548c\u914d\u7f6e\uff0c\u800c\u4e14\u4e0d\u662f\u6240\u6709\u7684Windows\u7a0b\u5e8f\u90fd\u80fd\u5728Wine\u4e0a\u8fd0\u884c\u3002\u4f7f\u7528VirtualBox\u9700\u8981\u5b89\u88c5Windows\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5360\u7528\u8f83\u591a\u7684\u786c\u76d8\u7a7a\u95f4\u548c\u5185\u5b58\u3002\u4f7f\u7528Crossover\u9700\u8981\u8d2d\u4e70\u5546\u4e1a\u8bb8\u53ef\u8bc1\uff0c\u800c\u4e14\u4e0d\u662f\u6240\u6709\u7684Windows\u7a0b\u5e8f\u90fd\u80fd\u5728Crossover\u4e0a\u8fd0\u884c\u3002<\/p>\n

\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u65b9\u6cd5\u65f6\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u6743\u8861\u548c\u9009\u62e9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

macOS\u662f\u82f9\u679c\u516c\u53f8\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800cexe\u5219\u662fWindows\u5e73\u53f0\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u683c\u5f0f\u3002\u56e0\u6b64\uff0c\u5728macOS\u4e0a\u751f\u6210exe\u6587\u4ef6\u5e76\u4e0d\u662f\u4e00\u4ef6\u7b80\u5355\u7684\u4e8b\u60c5\uff0c\u9700\u8981\u501f\u52a9\u4e00\u4e9b\u5de5\u5177\u548c\u6280\u5de7\u3002\u4e00\u3001\u4f7f\u7528WineWine\u662f\u4e00\u6b3e\u53ef\u4ee5\u5728<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[11867,11866,16,143,11868],"topic":[],"class_list":["post-6531","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-exe","tag-webexe","tag-16","tag-143","tag-11868"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=6531"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6531\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=6531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=6531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=6531"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=6531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}