{"id":1,"date":"2017-12-04T09:28:12","date_gmt":"2017-12-04T09:28:12","guid":{"rendered":"http:\/\/www.4windsmj.com\/store\/?p=1"},"modified":"2022-03-13T08:37:22","modified_gmt":"2022-03-13T06:37:22","slug":"wine","status":"publish","type":"post","link":"https:\/\/www.4windsmj.com\/store\/running-four-winds-on-non-windows-platforms\/wine\/","title":{"rendered":"Setting up Wine on macOS (High) Sierra to run Four Winds Mah Jong"},"content":{"rendered":"<p>Recent developments in virtualization, emulation and techniques that allow running of applications developed for &#8220;foreign&#8221; platforms as if they were native ones, have made it relatively easy, and often free, to use the same app in mixed environments.<\/p>\n<p>This post takes a closer look on one of this techniques, namely Wine (acronym for &#8220;Wine Is Not an Emulator&#8221;), that allows running native Windows software on POSIX-compliant operating systems, such as Linux, macOS, &amp; BSD, without need for a Windows license.\u00a0<\/p>\n<p>Here we install the game on macOS Sierra \/ High Sierra (the screenshots are from Sierra).<\/p>\n<ol>\n<li>First you need to allow your system to install apps from &#8220;App Store and identified developers&#8221; (or possibly &#8220;Anyone&#8221;, depending on what else needs to be installed other than XQuartz and Wine). Earlier macOS versions let you alter the default setting (that allows apps only from the App Store) by setting the Gatekeeper option under\u00a0<strong>System Preferences &gt; Security &amp; Privacy &gt; General<\/strong>, but High Sierra hides the other two options and you need to enable them by opening the Terminal (in Finder, click <strong>Go &gt; Utilities<\/strong>\u00a0and open Terminal), and type the following (you need to enter your user password to be able to change the setting):<\/li>\n<\/ol>\n<pre style=\"padding-left: 60px;\">sudo spctl --master-disable\n<\/pre>\n<ol start=\"2\">\n<li>After this you can go and change the Gatekeeper setting.\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-8.45.07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-81\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-8.45.07-300x245.png\" alt=\"\" width=\"300\" height=\"245\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-8.45.07-300x245.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-8.45.07-416x340.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-8.45.07.png 667w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>Go to\u00a0<a href=\"https:\/\/www.winehq.org\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.winehq.org<\/a>\u00a0 and read the introductory text, if you are not familiar with the concept of Wine, then go to\u00a0<a href=\"https:\/\/wiki.winehq.org\/MacOS\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wiki.winehq.org\/MacOS<\/a>\u00a0to read installation instructions specific to macOS.<\/li>\n<li>You first need to have XQuartz 2.7.7. (or later) installed. Visit\u00a0<a href=\"https:\/\/www.xquartz.org\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.xquartz.org<\/a>\u00a0to download it. Click the .pkg file in Downloads to mount the installer, then launch it to go through the installation.\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.03.59.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-82\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.03.59-300x266.png\" alt=\"\" width=\"300\" height=\"266\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.03.59-300x266.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.03.59-416x368.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.03.59.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>After having installed XQuartz, download Wine at\u00a0<a href=\"https:\/\/dl.winehq.org\/wine-builds\/macosx\/download.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/dl.winehq.org\/wine-builds\/macosx\/download.html<\/a> (version 2.21 &#8220;Wine Staging&#8221; is a good choice):\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.06.01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.06.01-300x184.png\" alt=\"\" width=\"300\" height=\"184\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.06.01-300x184.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.06.01-416x255.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.06.01.png 721w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>Download the .pkg file, click it in Downloads to mount the installer, then launch it to start the installation. During the installation, you may be interrupted by prompts to install support for Mono (for .NET applications) and Gecko (for apps that use HTML internally). Accept to install these support packages.\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.57.07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-87\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.57.07-300x136.png\" alt=\"\" width=\"300\" height=\"136\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.57.07-300x136.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.57.07.png 392w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u00a0\u00a0<\/a><br \/><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.58.20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-88\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.58.20-300x133.png\" alt=\"\" width=\"300\" height=\"133\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.58.20-300x133.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-9.58.20.png 395w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>After the installation is complete, you can go to <a href=\"http:\/\/www.4windsmj.com\/downloads01.htm\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.4windsmj.com\/downloads01.htm<\/a> and download the latest version of Four Winds Mah Jong. Once downloaded, click the executable setup package (normally 4W2Full24.exe) in Downloads. It will automatically be launched in Wine and installed in correct location. A Windows shortcut is placed on the desktop, but it naturally does not work. You need to replace it with a Mac alias.<\/li>\n<li>Open your Home folder (in Finder, click <strong>Go &gt; Home<\/strong>\u00a0or press\u00a0<strong>Cmd+Shift+H<\/strong>). Now make hidden files and folders visible by pressing <strong>Cmd+Shift+.<\/strong> (dot). This shows the hidden <em>.wine<\/em> folder where your Windows environment is installed:\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-92\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04-300x216.png\" alt=\"\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04-300x216.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04-416x299.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04-768x552.png 768w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.25.04.png 787w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>Double click the <em>.wine<\/em> folder and open folders until you have 4Winds2 folder open (the folder path relative to <em>.wine<\/em> is, as shown in the image below: <em>drive_c &gt; Program Files &gt; 4Winds2<\/em>:\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-93\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31-300x187.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31-416x260.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31-768x479.png 768w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.26.31.png 941w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li>Here, click with the secondary mouse button on <em>4Winds2.exe<\/em> to create an alias, then drag and drop it on your desktop.<\/li>\n<li>Launch Four Winds by double clicking the alias.<\/li>\n<li>Once launched, go to <strong>File &gt; Preferences<\/strong>, and under User Interface &gt; General option page (accessed by the category tree on the left), disable color management by clearing the check mark from the <strong>Use color management<\/strong>\u00a0option:\n<div style=\"clear: both; margin-top: 5px; margin-bottom: 5px;\"><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.30.36.png\"><br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-96\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.30.36-300x234.png\" alt=\"\" width=\"300\" height=\"234\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.30.36-300x234.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.30.36-416x325.png 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-11-at-10.30.36.png 483w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<p>You may also need to <strong>Bypass DirectX sound<\/strong> (under the same option page), and choose a MIDI file (on the <strong>Themes<\/strong> option page) for the &#8220;Background&#8221; and &#8220;Win of the game&#8221; music, or set their values to &#8220;none&#8221;.\u00a0 (the default music comes as .mp3 files which require DirectX). If you do not change the sound settings, you can turn off background music from the <strong>Options<\/strong> menu so that an unsupported feature is not used.<\/p>\n<\/li>\n<li>If you have a one-button mouse, click the <strong>Game Controls<\/strong> button, then change the mouse control setting for discarding from &#8220;Right click on\u00a0 raised tile&#8221; to &#8220;Click on raised tile&#8221;. On the same dialog box, you may need to uncheck <strong>Use custom cursors\u00a0<\/strong>(with recent Wine builds, animated and custom cursors seem to be working fine, but if the game suddenly freezes, one possible cause is the use of custom mouse cursors).<\/li>\n<li>Close the <strong>Preferences<\/strong> dialog box and click <strong>Help &gt; Register<\/strong> to enter your registration name and number. Then choose <strong>Game &gt; New Game<\/strong> to start a new game with preferred rules.<\/li>\n<li>You may want to test with different game boards by using the options under the <strong>View &gt; Game boards<\/strong> sub menu to find the board size and layout that works best on your screen. Note that the quality of graphics is mediocre compared to the original but looks slightly better on boards that have not been scaled. If you choose a 24-bit theme, scaling has a better quality: e.g., for the default graphics, choose <strong>File &gt; Preferences<\/strong>, then under <strong>User Interface &gt; Themes<\/strong>, choose &#8220;Four Winds (24-bit)&#8221;.<\/li>\n<\/ol>\n<p>And there you are, running Four Winds Mah Jong on your Mac, without needing a Windows license. The quality is not as good as when using VMWare or VirtualBox (both free), or Parallels Desktop, not to mention running the game on real Windows on a BootCamp partition, but at least you can now play proper Mahjong with multitude of rule options offline on your Mac.<\/p>\n<p>NOTE: WINE based solutions are currently limited to macOS versions that support running 32-bit apps, so this solution is not at least officially applicable to macOS Catalina, Big Sur or Monterey (there are posts on the Internet that describe using WINE also on these operating systems, but officially only systems up to Mojave are supported) . The commercial version of Wine, CodeWeavers CrossOver, however officially supports 64-bit macOS versions up to Monterey, and even new M1 (Apple Silicon) based macs, while other solutions are limited to Intel based macs. <a href=\"https:\/\/www.4windsmj.com\/store\/running-four-winds-on-non-windows-platforms\/running-four-winds-mah-jong-using-crossover\/\">For more information, see a separate post on this forum<\/a>.<\/p>\n<p><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-568\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45.png\" alt=\"\" width=\"1440\" height=\"900\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45.png 1440w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45-300x188.png 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45-768x480.png 768w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45-1024x640.png 1024w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2019\/02\/Screenshot-2019-02-27-at-15.23.45-416x260.png 416w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<p><em>A screenshot of Four Winds 2.18 running on macOS Mojave using the latest Wine (4.2 Staging) and XQuartz 2.7.11. <\/em><br \/><em>The quality of graphics has improved with latest versions and scaled boards work well.<\/em><\/p>\n<p>\u00a0<\/p>\n<h4>Running Four Winds on Linux<\/h4>\n<p>The procedure is basically the same as on macOS, though installation happens from within the Terminal. WineHQ has instructions for installing Wine on several different Linux systems.\u00a0Below is a screenshot of Four Winds running on Ubuntu 16.04 using Wine 3.0.<\/p>\n<p><a href=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-364\" src=\"http:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604.jpg\" alt=\"\" width=\"1600\" height=\"900\" srcset=\"https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604.jpg 1600w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604-416x234.jpg 416w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604-300x169.jpg 300w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604-768x432.jpg 768w, https:\/\/www.4windsmj.com\/store\/wp-content\/uploads\/2017\/12\/4winds_wine3_ubuntu1604-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recent developments in virtualization, emulation and techniques that allow running of applications developed for &#8220;foreign&#8221; platforms as if they were native ones, have made it relatively easy, and often free, to use the same app in mixed environments. This post takes a closer look on one of this techniques, namely Wine (acronym for &#8220;Wine Is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":80,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[20,21],"class_list":["post-1","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-running-four-winds-on-non-windows-platforms","tag-macos","tag-wine"],"_links":{"self":[{"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":38,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":1185,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/posts\/1\/revisions\/1185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/media\/80"}],"wp:attachment":[{"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.4windsmj.com\/store\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}