Compiling Zandronum on Mac: Difference between revisions

more stuff added
(took out : part from installing xcode section)
(more stuff added)
Line 9: Line 9:
**[https://github.com/nigels-com/glew/releases GLEW]
**[https://github.com/nigels-com/glew/releases GLEW]
**[http://zandronum.com/essentials/fmod/ FMOD Ex] 4.44.64
**[http://zandronum.com/essentials/fmod/ FMOD Ex] 4.44.64
**[https://www.python.org/downloads/ Python3] (It Already on the Mac)
**[https://www.openssl.org/source/ Openssl] ''(for Zandronum 1.3 or later)''
**[https://www.openssl.org/source/ Openssl] ''(for Zandronum 1.3 or later)''
**SQLite ''(for Zandronum 1.3 or later)''
**SQLite ''(for Zandronum 1.3 or later)''
Line 38: Line 39:
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) ===
Line 45: Line 46:
=== 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
== Installing CMake GUI and TortoiseHG  ==
== Installing CMake GUI and TortoiseHG  ==
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).
== Create zandronum_build directory ==
This part is like Linux:
mkdir -pv ~/zandronum_build
== Compiling SDL12-Compat ==
==== If you already have this installed using HomeBrew or Macports. Please skip this step. ====
Create a Directory like this:
cd  ~/zandronum_build && mkdir -pv sdl_pack
Download [https://github.com/libsdl-org/SDL/releases/latest SDL2] and [https://github.com/libsdl-org/sdl12-compat/releases SDL 1.2 Compatibility] ,extract it and add it in to folder we just added above
Or
Clone it:
git clone https://github.com/libsdl-org/sdl12-compat.git && git clone  https://github.com/libsdl-org/SDL.git
Click on the CMake app that you added into the applications, It will give you a warning that you downloaded third party app on mac, Just hit OK.