Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Tutorial info

  • Added on: Sep 05 2017 03:16 PM
  • Date Updated: Sep 05 2017 03:18 PM
  • Views: 224

* * * * *
0 Ratings

Compile from source on MacOS 10.12.x

Updated instructions on compiling your own Wineskin engines.

Posted by Gurqn on Sep 05 2017 03:16 PM
10.8 SDK


Guide for Compiling Your Own Engine (Applicable to macOS Sierra with 10.6 SDK)
  • Install Xcode and Developer Tools from Apple

  • Create the following folder in root partition


  • Put your SDKs the folder we have created in step 2

  • Install Wineskin Winery / Install Wineskin Wrapper / Install EngineBase

  • Put given files to


    ~/Library/Application\ Support/Wineskin/EngineBase/W2.5.5v1EngineBase/

  • Install Homebrew and Cask (execute given commands below in terminal)

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew tap caskroom/cask

  • Install Wine deps (execute given commands below in terminal)                    

    brew install $(brew deps wine) --universal

    brew install libxml2 --universal

  • Install XQuartz                    

    brew cask install xquartz

  • Install Clang 3.9 (download from llvm's website)                    


  • Create directory for building wine; for example:


  • Download staging version of wine as zip from here:


  • Extract downloaded archive and put it into each folder we have created in step 10                    

  • Optional Step for compiling on macOS Sierra with 10.6 SDK                    

                                    Thanks to ScoPezz for that, helped me out for finding the root cause of why wine builds were failing on macOS Sierra with 10.6 SDK. It's been caused due to absent of some stuff such as "strnlen", for more details:

                                    We need to patch following files (go to root of extract wine folder):


                                    after line 245 add:

    										size_t strnlen(const char *str, size_t max)															
    															const char *end = memchr (str, 0, max);
    															return end ? (size_t)(end - str) : max;


                                    after line 145 add

    										// Use this if strnlen is missing.										  
    										size_t strnlen(const char *str, size_t max)
    															const char *end = memchr (str, 0, max);
    															return end ? (size_t)(end - str) : max;

  • Open following .txt files under EngineBase and change lines appropriately                    


                                    Line 1 - Adjust path to extracted wine staging folder during step 10
                                    Line 2 - Give a name to your engine such as "wine-staging-x32-2.2"
                                    Line 5 - /Users/your-username/Library/Application Support/Wineskin/7za Change "your-username" it to yours
                                    Line 6 - Choose SDK for compiling wine. For example 10.6

                                    Do that for both wse-x32 and wse-x64 .txt files

  • Go to Xcode SDKs folder and create symlinks (execute give commands below in terminal for symlink for each SDK)                    

     sudo ln -s /Developer/SDKs/MacOSX10.6.sdk
     sudo ln -s /Developer/SDKs/MacOSX10.8.sdk
     sudo ln -s /Developer/SDKs/MacOSX10.11.sdk

  • Modify minimum applicable SDK version of Xcode: (open given .plist and change following line)                    

    "MinimumSDKVersion" change it to 10.6

  • Delete everything inside of these folders:

    ~/Library/Application\ Support/Wineskin/EngineBase/W2.5.5v1EngineBase/include
    ~/Library/Application\ Support/Wineskin/EngineBase/W2.5.5v1EngineBase/lib

  • Open terminal and run following commands                    

    ~/Library/Application\ Support/Wineskin/EngineBase/W2.5.5v1EngineBase/wse-x32
    ~/Library/Application\ Support/Wineskin/EngineBase/W2.5.5v1EngineBase/wse-x64
Enjoy with your engines :P


You can enable CSMT on wine-staging as shown in picture below:

Posted Image
Powered by Tutorials 1.3.1 © 2017, by Michael McCune