newspeoplefor developersdocumentationdownloads

Compiling Nebula2 on Linux

Additional Requirements

  • GCC version 3.0 or later
  • GNU make
  • Theora, Ogg, Sqlite3 and UUID development packages, the Ubuntu specific versions are listed below, names may differ on other Linux distros.

Ubuntu Edgy Packages

You can find and install these packages using Synaptic or Adept Manager.

  • g++ (will install the latest gcc)
  • make
  • libtheora-dev
  • libogg-dev
  • sqlite3-dev
  • uuid-dev

Generate The Makefiles

Open a terminal window, 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

In the terminal window, navigate to nebula2/build/makefile, and type

  make OSTYPE=linux [workspace]

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

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

  make OSTYPE=linux N_DEBUG=true [workspace]

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

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