Compiling Zandronum on Mac: Difference between revisions

From Zandronum Wiki
(fixes)
(took out : part from installing xcode section)
Line 23: Line 23:
There are 3 ways to install Xcode:
There are 3 ways to install Xcode:


=== Command line Tools: ===
=== Command line Tools ===
Open Terminal and paste this Command:
Open Terminal and paste this Command:
  xcode-select --install
  xcode-select --install
Line 32: Line 32:
Install it (Beware its big so makes sure you got enough space and it takes awhile depending on your internet and drive speed)  
Install it (Beware its big so makes sure you got enough space and it takes awhile depending on your internet and drive speed)  


=== App Store (if you have an newer system): ===
=== App Store (if you have an newer system) ===
[https://apps.apple.com/au/app/xcode/id497799835?mt=12 Xcode] (Click the link. It will go straight to the App Store)  
[https://apps.apple.com/au/app/xcode/id497799835?mt=12 Xcode] (Click the link. It will go straight to the App Store)  


=== Apple developer (if you have an older system): ===
=== Apple developer (if you have an older system) ===
https://developer.apple.com/download/all/ (Sign In is required. it includes Command line Tools as well)
https://developer.apple.com/download/all/ (Sign In is required. it includes Command line Tools as well)


== Installing  from HomeBrew or  Macports ==
== Installing  from HomeBrew or  Macports ==


=== HomeBrew (MacOS 10.15 - Latest) : ===
=== HomeBrew (MacOS 10.15 - Latest) ===
  brew install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat
  brew install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat


=== MacPorts  (Legacy MacOS): ===
=== MacPorts  (Legacy MacOS) ===
  sudo port install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat
  sudo port install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat



Revision as of 12:48, 29 August 2022

Open a terminal and copy and paste the whole code box for each step.

Install dependencies

Zandronum needs certain tools and development files in order to compile:

  • Required
  • Optional
    • Fluidsynth (For Midi Device)
    • zlib (Zandronum has a copy of it and will be statically compiled in if not found)
    • libbzip2 (possibly static)
    • libjpeg (possibly static)
    • HomeBrew or Macports (Not recommended for building using M1 or M2 (ARM64) CPU)
    • Rosetta 2 (for building X86_64 binaries using M1 or M2 (ARM64) CPU)

Installing Xcode

There are 3 ways to install Xcode:

Command line Tools

Open Terminal and paste this Command:

xcode-select --install

it will pop up this:

Install it (Beware its big so makes sure you got enough space and it takes awhile depending on your internet and drive speed)

App Store (if you have an newer system)

Xcode (Click the link. It will go straight to the App Store)

Apple developer (if you have an older system)

https://developer.apple.com/download/all/ (Sign In is required. it includes Command line Tools as well)

Installing from HomeBrew or Macports

HomeBrew (MacOS 10.15 - Latest)

brew install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat

MacPorts (Legacy MacOS)

sudo port install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat


Installing CMake GUI and TortoiseHG

Download CMake and TortoiseHG

Open up the DMG and copy them into Applications (or drag them).