Jump to content

Compiling Zandronum on Mac: Difference between revisions

More work done
(more stuff added for sdl)
(More work done)
Line 56: Line 56:
== Compiling SDL12-Compat ==
== Compiling SDL12-Compat ==


==== If you already have this installed using HomeBrew or Macports. Please skip this step. ====
==== If you already have this installed using HomeBrew or Macports. Please skip this section. ====
Create a Directory like this:
Create a Directory like this:
  cd  ~/zandronum_build && mkdir -pv sdl_pack
  cd  ~/zandronum_build && mkdir -pv sdl_pack
Line 71: Line 71:
Better if you build it inside the source, So do the same in Browse Build. Add new folder into sdl12-compat called build  
Better if you build it inside the source, So do the same in Browse Build. Add new folder into sdl12-compat called build  


When you click Configure it will popup a window choose "Unix Makefile" (Its faster than using Xcode type) and click done ]
When you click Configure it will popup a window choose "Unix Makefile" (Its faster than using Xcode type) and click done  
 
Config how the image looks below it should be like this:
Config how the image looks below it should be like this:
[[File:SDL macOS 2.png|border|left|frameless|300x300px]]
[[File:SDL macOS 2.png|border|left|frameless|300x300px]]
<blockquote>Make Sure you disable SDL12TEST as we don't need it also make it x86_64 as the default arch because we are not using ARM64 till further releases.</blockquote>
<blockquote>Make Sure you disable SDL12TEST as we don't need it also make it x86_64 as the default arch because we are not using ARM64 till further releases.</blockquote>




Line 80: Line 82:


When you checkmark advanced mode it should give you SDL2 Section.
When you checkmark advanced mode it should give you SDL2 Section.
Still config only SDL_INCLUDE_DIR Don't worry about the Library.
Still config only SDL_INCLUDE_DIR Don't worry about the Library.
[[File:Sdl advanced.png|border|left|frameless]]
[[File:Sdl advanced.png|border|left|frameless]]
Line 87: Line 90:




Generate, then Compile it will give you 2 files.
cd  ~/zandronum_build/sdl_pack/sdl12-compat/build/ && make
== TortoiseHG ==
Open TortoiseHG.app
Go to File -> Clone Repository
Add this line it to the source line:
https://hg.osdn.net/view/zandronum/zandronum-stable
Browse where you put zandronum_build in:
it should be like this:
[[File:TortoiseHGclone.png|border|left|frameless]]
Click clone


Generate, then Compile.
==== Stable ====
  cd ~/zandronum_build/sdl_pack/sdl12-compat/build/ && make
if you are looking for Stable version go to Repository -> Update
Tortoise HG
 
it should pop up like this: 
[[File:Zan 3.1.png|left|frameless]]
<blockquote>Go to the dropdown and find ZA_3.1  then Update.</blockquote>
 
 
 
 
 
you might need to add this patch for bundling an app: (if its does give you the text file download it by Right click and Save as )  
  https://osdn.net/downloads/users/39/39032/Appbundle.patch/