HowTo:Compile on OSX

From VsWiki
Revision as of 14:24, 7 October 2006 by Programmerandrew (talk | contribs)
Jump to: navigation, search
arrow_left.png Compiling from SVN under your favourite Unixlike OS arrow_up.png HowTos Using GDB arrow_right.png

How to compile from SVN under OSX.

Getting the SVN-files

  • Checkout the following modules ...
    • data package: data4.x
    • code package: vegastrike
  • Visit HowTo:Checkout SVN to see how you check these modules out.

Requirements

In order to compile Vega Strike there are a few things to check:

  • Ensure you have installed XCode Tools from your OS installation disc.
    • Various gcc versions included in XCode Tools releases may have bugs preventing the compilation of Vega Strike. Vega Strike is known to work, on OSX, with gcc version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026
    • You should also install the Mac OSX 10.3.9 SDK from the same disk.
  • Using Fink, make sure you install the following libraries:
    • libpng + libpng-devel <-- libpng 3 is recommended.
    • python and python-dev <-- 2.2.1
    • expat
    • (lib)jpeg + libjpeg-devel
  • Download the SDL source tarball, version 1.2.10 or later, compile, and install.
  • Download and install the OpenAL framework.

Compiling

The compile procedure should look like the following listing. Remember the configure part depends on above requirements.

cd ./vegastrike
./bootstrap-sh
./configure
make vegastrike
make soundserver

Note: You will require various options on configure, to specify the paths to the various libraries you have installed. Note: If you intend to build a binary to replace the that packaged in a release (ie in a .app), then you must use the configure command --enable-macosx-bundle

See also


arrow_left.png Compiling from SVN under your favourite Unixlike OS arrow_up.png HowTos Using GDB arrow_right.png