newspeoplefor developersdocumentationdownloads

Compiling Nebula2 on Mac OS X

Preparation

  • Cross your fingers and your toes, and repeat "The MacOSX build will work!" over and over again.
  • If the MacOSX build does not in fact work you obviously just don't want it bad enough.
  • If you really really want it but it still doesn't work, your only option is to write a new generator for the build system to support MacOSX, or update the existing makefile generator.

Generate The Makefiles

From the commandline, navigate to nebula2/ and type

  python update.py

If you correctly installed Python and wxPython you should see the Nebula 2 Build System application displayed, if it does not appear check the gui.log in the root nebula2 directory for any errors. You can use this application to generate the makefiles for g++ by selecting the makefile generator from the Generator drop-down. Makefiles will be generated in the directory nebula2/build/makefile. Read the manual that's available through Help->Manual on the Main Menu to figure out what you need to do before proceeding to the next step. The GUI is entirely optional, if you wish to use the commandline interface a list of supported commands can be obtained by typing

  python update.py -help

Anytime .bld files are added, modified or removed this step must be repeated.

Compiling

From the commandline, navigate to nebula2/build/makefile, and type

  make OSTYPE=darwin [workspace]

This will compile the specified workspace, or alternatively if a workspace is not specified, everything. Binary files will be output to nebula2/bin/macosx.

If you wish to compile a debug build, set the "N_DEBUG" parameter to "true"

  make OSTYPE=darwin N_DEBUG=true [workspace]

Binary files from a debug build will be output to nebula2/bin/macosxd. Additionally you can set "N_PROFILE" to add profiling flags.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.