How to install homebrew and Game porting Toolkit on Arm Core Macbook Pro

how to install homebrew and Game porting Toolkit on Arm Core Macbook Pro

Installing Homebrew

Step 1: Install Rosetta 2

softwareupdate --install-rosetta --agree-to-license

Step 2: Switch to x86_64 Architecture

arch -x86_64 zsh

Step 3: Install x86_64 Homebrew

cd /usr/local && mkdir homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

Step 4: Configure PATH

export PATH=/usr/local/homebrew/bin:$PATH
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile

Installing Game Porting Toolkit

Prerequisites

  • macOS Sonoma or higher
  • Command Line Tools for Xcode 15
  • Apple Developer account

Step 1: Install GPTK

brew tap apple/apple
brew install apple/apple/game-porting-toolkit

Step 2: Copy Required Libraries

ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/

Step 3: Create Wine Prefix

WINEPREFIX=~/my-game-prefix $(brew --prefix game-porting-toolkit)/bin/wine64 winecfg

Step 4: Configure Windows Version

  • In the Wine configuration window that appears:
    • Set Windows version to Windows 10
    • Click Apply and OK

Troubleshooting Note: If you encounter installation errors, try these solutions:

  • Update Homebrew: brew update
  • Upgrade GPTK: brew upgrade apple/apple/game-porting-toolkit
  • Ensure you’re in x86_64 mode when installing GPTK

Debug

I am using Macbook Pro M4 Max, when I am installing rosetta, why the terminal shows “Installing Rosetta 2 on this system is not supported”

Based on the error message you’re seeing, this issue likely occurs for one of two reasons:

Check Terminal Settings

The most common cause is that Terminal is already set to run under Rosetta 2. To fix this:

  1. Right-click on Terminal in your Applications/Utilities folder
  2. Select “Get Info”
  3. Uncheck the box “Open using Rosetta”

Install Rosetta Correctly

After fixing the Terminal settings, install Rosetta 2 using:

softwareupdate --install-rosetta --agree-to-license

Alternative Installation Method

If you still encounter issues, try launching any Intel-based application. macOS should automatically prompt you to install Rosetta 2. Click “Install” when prompted, and enter your administrator credentials if requested.

Note: If you’re still getting the error after trying these steps, verify that you’re running the latest version of macOS Sonoma, as this can sometimes affect Rosetta 2 installation.