Compiling NgPlant from source code (Ubuntu Hardy/Intrepid)

UPDATED 21.2.2009 for NgPlant version 0.9.7

Start by installing development environment:

sudo apt-get install build-essential

sudo apt-get install scons

Install dependencies

sudo apt-get install libwxgtk2.8-dev

sudo apt-get install libglu1-mesa-dev

Optional (if you want Python API)

sudo apt-get install python-dev

Optional (if you want to use system version of libglew)

sudo apt-get install libglew1.4-dev

Optional (if you want to compile NgpView):

sudo apt-get install freeglut3-dev

Get source code

Download .tar.gz file from NgPlant's homepage:

http://ngplant.sourceforge.net/

Extract it and move to the newly created directory:

tar -zxvf ngplant_version_number.tar.gz

cd ngplant_version_number

Patch

You need to patch version 0.9.7 in order to get it compile. You can find the patch here.

Download the patch in Ngplan directory and patch:

patch -p0 < gcc43.patch

Compile

scons

Execute

ngplant/ngplant