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: 133


* * * * *
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

https://mega.co.nz/#!PcEAWBbR!Amokpe4K3pMxQCOjpJROU5gnrLO70h0eDxbkyEzmheI




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

                                                            
    /Developer/SDKs/




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




  • Install Wineskin Winery / Install Wineskin Wrapper / Install EngineBase




  • Put given files to

                                                            http://www.mediafire...mod-scripts.zip

                                                            
    ~/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)                    

                                    
    /opt/clang




  • Create directory for building wine; for example:

                                    
    /your-storage/builds/wine32/
                                    
    /your-storage/builds/wine64/
            




  • Download staging version of wine as zip from here:

                                    
    https://github.com/wine-compholio/wine-patched/releases
            




  • 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:
                                    
    http://stackoverflow.com/questions/32468480/strnlen-does-not-exist-in-gcc-4-2-1-on-mac-os-x-10-6-8-how-to-define-it

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

                                    /dlls/d3d10/effect.c

                                    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;
    														}
    										

                                    /dlls/d3d11/shader.c

                                    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                    

                                    
    wse-x32.txt
                                    
    wse-x64.txt

                                    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)                    

                
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
                
    "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


Note:

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

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