Compiling Zandronum on Mac: Difference between revisions

Update OSDN link to Heptapod
m (last screenshot moments)
(Update OSDN link to Heptapod)
Tag: Source edit
 
(4 intermediate revisions by 2 users not shown)
Line 11: Line 11:
**[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)''
**[https://www.mercurial-scm.org/downloads TortoiseHg] ''(needed in order to [https://hg.osdn.net/view/zandronum/zandronum-stable download the source] and compile in commit meta data)''
**[https://www.mercurial-scm.org/downloads TortoiseHg] ''(needed in order to [https://foss.heptapod.net/zandronum/zandronum-stable download the source] and compile in commit meta data)''
*'''Optional'''
*'''Optional'''
**Fluidsynth (''For Midi Device'')
**Fluidsynth (''For Midi Device'')
Line 37: Line 37:
=== 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)
== Rosetta (Optional) ==
If you are using M1 or M2 (ARM64), then this is required:
softwareupdate --install-rosetta


== Installing  from HomeBrew or Macports ==
== Installing  from HomeBrew or Macports ==
Line 44: Line 48:


=== MacPorts  (Legacy MacOS) ===
=== MacPorts  (Legacy MacOS) ===
  sudo port install jpeg-turbo fluid-synth openssl sdl2 sdl12-compat
  sudo port install libjpeg-turbo fluidsynth 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]   
Line 94: Line 98:


Add this line it to the source line:
Add this line it to the source line:
  https://hg.osdn.net/view/zandronum/zandronum-stable
  https://foss.heptapod.net/zandronum/zandronum-stable
Browse where you put zandronum_build in:  
Browse where you put zandronum_build in:  


Line 141: Line 145:
Once you've done everything, compile.   
Once you've done everything, compile.   
  cd  ~/zandronum_build/zandronum-stable/build/ && make -j(nproc)
  cd  ~/zandronum_build/zandronum-stable/build/ && make -j(nproc)
Once the compile is finished.
Once the compile is finished, all that's left to do is to add the SDL2 framework into the Frameworks directory inside the app bundle by Right clicking and selecting Show package content.
 
All is left to do is add the SDL2 framework into the Frameworks directory inside the app bundle on Right clicking and selecting Show package content.


There you have it. just drag the bundle into the applications, and it should be good to go.
There you have it, just drag the bundle into the applications, and it should be good to go.


[[File:Zandronum Compiled on mac.png|border|frameless|972x972px]]
[[File:Zandronum Compiled on mac.png|border|frameless|972x972px]]