Jump to content

Compiling Zandronum on Mac: Difference between revisions

more stuff added
(added Mac OS series.)
 
(more stuff added)
Line 13: Line 13:
**[https://www.mercurial-scm.org/downloads TortoiseHg] ''(needed in order to [https://bitbucket.org/Torr_Samaho/zandronum download the source] and compile in commit meta data)''
**[https://www.mercurial-scm.org/downloads TortoiseHg] ''(needed in order to [https://bitbucket.org/Torr_Samaho/zandronum download the source] and compile in commit meta data)''
*'''Optional'''
*'''Optional'''
**Fluidsynth (''For Midi Device'')
**zlib ''(Zandronum has a copy of it and will be statically compiled in if not found)''
**zlib ''(Zandronum has a copy of it and will be statically compiled in if not found)''
**libbzip2 ''(possibly static)''
**libbzip2 ''(possibly static)''
**libjpeg ''(possibly static)''
**libjpeg ''(possibly static)''
**HomeBrew (''Not recommended for building using M1 or M2 (ARM64)  CPU'')  
**[https://brew.sh/ HomeBrew] or [https://www.macports.org/ Macports] (''Not recommended for building using M1 or M2 (ARM64)  CPU'')
**Rosetta 2 (for building X86_64 binaries ''using M1 or M2 (ARM64)  CPU'')
**Rosetta 2 (for building X86_64 binaries ''using M1 or M2 (ARM64)  CPU'')


=== There's 2 Separate ways you can install certain tools: ===
=== There's 2 Separate ways you can install certain tools: ===
== '''Native''' ==


== Installing Xcode ==
== Installing Xcode ==
Line 29: Line 28:
Open Terminal and paste this Command:
Open Terminal and paste this Command:
  xcode-select --install
  xcode-select --install
it will pop up this:
it will pop up this:  
[[File:Xcode Command Line Tools popup.png|border|frameless]]
 
[[File:Xcode Command Line Tools popup.png|border|frameless]]  
 
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)  


Line 39: Line 40:
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)


== '''HomeBrew (''Not recommended for building using M1 or M2 (ARM64) CPU'')''' ==
== 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




Line 47: Line 52:
Download [https://cmake.org/download/ CMake] and [https://www.mercurial-scm.org/downloads TortoiseHG]   
Download [https://cmake.org/download/ CMake] and [https://www.mercurial-scm.org/downloads TortoiseHG]   


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