How to Compile development trunk for mac?

Discuss the future of Warzone 2100 with us.
Post Reply
hardy24
New user
Posts: 3
Joined: 31 Jul 2007, 23:22

How to Compile development trunk for mac?

Post by hardy24 »

Just as the title states, can someone post a simple how to, of how to compile nightlies for the mac.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: How to Compile development trunk for mac?

Post by Giel »

hardy24 wrote: Just as the title states, can someone post a simple how to, of how to compile nightlies for the mac.
As I have next to zero experience with Macs I can only point you in the right direction.

Use a subversion client to check out a working copy. Then open the Xcode project (it's in the directory macosx) and try compiling with that.

Unfortunately that's all I know about it.
[me=Giel]is much more experienced with GNU/Linux and knows some stuff on Windows as well[/me]
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
regan
New user
Posts: 2
Joined: 17 Nov 2008, 13:51
Location: AUSTRALIA

Re: How to Compile development trunk for mac?

Post by regan »

I'd take the instructions with a large grain of salt...

Code: Select all

cat README.BUILD.txt 
This directory contains support files for the Mac OS X port of Warzone 2100.
Since April, 2007, The Mac OS X port has been built using an Xcode project
that automatically downloads and builds all necessary external libraries.
Also, since that time, the Mac OS X port has produced a universal binary
and has required Mac OS X 10.4 "Tiger" to run.

To build the game, just run the following command:
  xcodebuild -project Warzone.xcodeproj -target Warzone -configuration Release

You will also need a recent version of GNU bison to complete the build
process.  The version included with Mac OS X 10.4 "Tiger" is not capable
of properly processing the grammars that Warzone 2100 uses.

There are two build configurations available.  'Release' is compiled
normally, while 'Debug' sets the DEBUG preprocessor flag and automatically
sets the game's debugging options to the equivalent of --debug all when
launched, unless overwritten with a --debug command-line option.  The
debugging output can be viewed with Console.app.

Code: Select all

xcodebuild -project Warzone.xcodeproj -target Warzone -configuration Release
xcodebuild: Error: the project name Warzone.xcodeproj does not have a valid extension.

uname -a 
Darwin some.hostname.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc


Regan
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: How to Compile development trunk for mac?

Post by EvilGuru »

It is simpler to open up the project in Xcode. You need to be running either 10.4 or 10.5 with the latest version of Xcode which is available for your version of OS X. Other than that, it should build out of the box on 10.5 after you have manually accepted the sourceforge SSL certificate (ask if you need help).

On 10.4 you will need to manually install SVN (subversion). There are several packages available (.dmg) which provide builds. (It is quite likely you have already downloaded and installed one.) As with 10.5, you still need to manually accept the certificate.

Regards, Freddie.
regan
New user
Posts: 2
Joined: 17 Nov 2008, 13:51
Location: AUSTRALIA

Re: How to Compile development trunk for mac?

Post by regan »

Picture 1.png
Opening the file does nothing in xcode, no error message, nothing.
Picture 2.png
I am about a minute from finding something more interesting to do.. :mad;

Regan
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: How to Compile development trunk for mac?

Post by EvilGuru »

This is not the newest version of Xcode available for your system. Please upgrade.

Regards, Freddie.
Post Reply