[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Compiling on Mac OS X (detailed): Quake/FitzQuake/DarkPlaces

Compiling on Mac OS X (detailed): Quake/FitzQuake/DarkPlaces

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

Compiling on Mac OS X (detailed): Quake/FitzQuake/DarkPlaces

Postby Baker » Wed Oct 29, 2008 1:42 pm

Fruitz of Dojo - Covered in first post
DarkPlaces - Covered in second post
FitzQuake-SDL - Covered in third post



Here is a detailed description of how to compile Quake on a Mac. At first when I was playing around with OS X I found this a little frustrating:

This makes the assumption you aren't necessarily familiar with OS X and where stuff is and don't have XCode installed, Xcode being essentially the OS X equivalent of Visual Studio.

You can download Xcode from Apple.com (Use Google to find), but for OS X 10.5.2 had Xcode on DVD disk #2.

Going to use Fruitz of Dojo as the engine, the source and download is .

Installing + Setting Up XCode

1. Insert DVD #2; the follow comes up, double click the Xcode Tools folder:

Image

2. Double-click XcodeTools.mpkg; run the installer to install Xcode.

Image

3, You also need gcc 3.3 for the Fruitz of Dojo port. Insert DVD #2 again if needed and double click on the Packages folder.

Image

4. Double click on gcc3.3.pkg to install gcc 3.3

Starting XCode

1. Click Finder (the little happy guy on the dock at the bottom left of your screen

Image

2. Click Developer → Applications → then double click Xcode

Image

3. Click File → Open and locate Quake1.xcodeproj which in Fruitz of Dojo is located in the Mac OS X subfolder of the Fruitz of Dojo source. (For example, if the Fruitz of Dojo folder is on the Desktop, this would /Users/YourUserName/Desktop/Fruitz of Dojo/Mac OS X/quake1.xcodeproj)

4. Now have this on the screen. Click Build and Go, which will build and run it.

Image

5. The End

If you are trying to compile FitzQuake-sdl you will need to download some stuff from the SDL site. Assuming all goes well I'll quickly document that too for both FitzQuakeSDL and DarkPlaces.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Baker » Wed Oct 29, 2008 5:54 pm

DarkPlaces

DarkPlaces is straightforward. This operates on the assumption you installed Xcode and gcc 3.3 in post #1.

(although I can't say for sure if DarkPlaces needs gcc3.3 or if it can use the gcc4.0 that installs by default).

1. Unzip your DarkPlaces folder by doubleclicking on the download.
2. Open that up and double-click on the darkplaces2008xxxsrc.zip, which will unzip the folder.

Now comes command line fun.

3. Click Finder (bottom left of dock)

Image

4. Click Applications and then click Utilities and then Terminal

Image

5. Yes, it's a Linuxy command line. You'll be using ls (equivalent of dir in windows), pwd (tells you where you are) and cd (same as cd in Windows, changes the dir).

Image

OS X, like the DOS command prompt in XP/Vista, does have auto-complete of the path name. However, it is a case sensitive auto-complete so typing "cd d" and pressing tab WILL NOT match a directory that begins with a capital d.

Changedir into the darkplaces folder then into the darkplaces source folder which will also be called darkplaces.

Image

Type make and it will give you a nice list of options.

Image

Since you are on OS X, you should type "make sdl-release"

And it will be compiling. Run it typing ./darkplaces-sdl

Image
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Baker » Wed Oct 29, 2008 6:18 pm

FitzQuake SDL

FitzQuake SDL is the same as Fruitz of Dojo in the compile instructions --- Except you need the sdl_net.framework in order to be able to compile. This is not the same as having the sdl.framework as far as I know.

(The SDL_net project page says something about cross platform development).

sdl_net.framework: Get that at , specifically this .

And then drag the folder into Library/Frameworks, which you reach by clicking Finder and then Macintosh HD -> Library -> Frameworks. You'll see an SDL one in there that is already installed, you'll drag the "SDL_Net.framework" folder from the download into the Library -> Frameworks folder and when you are done, there will be an SDL one and a SDL_Net one.

Image

Note: I don't claim to know the difference between the SDL.framework and the SDL_net.framework except the FitzQuake SDL Xcode project source wants the SDL_net.framework and that's what it got. Compiled wonderfully.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby CocoT » Wed Oct 29, 2008 8:45 pm

I don't use a mac, but I'm sure this will be very helpful to other people! What a great tutorial. Thanks, Baker!
- New location: Update your bookmarks!
User avatar
CocoT
 
Posts: 695
Joined: Tue Dec 14, 2004 5:39 pm
Location: Belly-Gum

Postby dipalina » Wed Jan 13, 2010 9:42 am

How can I run Mac OS X on my Lenovo S10 Netbook? I have a Lenovo S10 Netbook running Windows XP. I would like to know how to boot Mac OS X on it along with the choice of XP.
_________________
~ ~ ~
Last edited by dipalina on Sat Jan 16, 2010 11:26 am, edited 1 time in total.
dipalina
 
Posts: 1
Joined: Fri Jan 08, 2010 10:13 am

Postby leileilol » Wed Jan 13, 2010 11:38 am

Simple, mr. spambot. You don't. Hackintoshes are illegal.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Swift » Mon Apr 12, 2010 12:46 pm

What about using Xcode as a QC IDE. = ]
Swift
 
Posts: 60
Joined: Tue Jan 26, 2010 11:02 am


Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests