diff --git a/docs/developers.md b/docs/developers.md index 52b68b1..520e27d 100644 --- a/docs/developers.md +++ b/docs/developers.md @@ -35,6 +35,11 @@ Linux **Install Dependencies** +I recommend that you use the **misc/install_irrlicht.sh** script to install Irrlicht, +as some features in NBE require Irrlicht 1.8 or later, which is not in apt-get + +Alternative method (Installs Irrlicht 1.7.2): + # download source and go to the root folder $ sudo apt-get install build-essential libirrlicht-dev cmake libpng12-dev libbz2-dev libjpeg8-dev libgl1-mesa-dev @@ -62,7 +67,7 @@ Express edition makes no difference to the process. **Prerequisites** -* Download Irrlicht. 1.8 is prefered, but 1.7.x will also work. +* Download Irrlicht. Some features in NBE require Irrlicht 1.8 or later in order to be enabled. * Download the source code for NBE * You will need to download Visual Studio, of course. diff --git a/misc/install_irrlicht.sh b/misc/install_irrlicht.sh new file mode 100755 index 0000000..f47aeb4 --- /dev/null +++ b/misc/install_irrlicht.sh @@ -0,0 +1,20 @@ +#! /bin/bash + +echo "Sudo is required for installing dependancies and uninstalling old versions of Irrlicht" + +# Dependancies +sudo apt-get install -y subversion build-essential xserver-xorg-dev x11proto-xf86vidmode-dev libxxf86vm-dev +sudo apt-get install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxext-dev libxcursor-dev +sudo apt-get remove -y libirrlicht-dev + +# Download Irrlicht +svn checkout svn://svn.code.sf.net/p/irrlicht/code/trunk irrlicht-trunk + +# Build Irrlicht +cd irrlicht-trunk/source/Irrlicht +make + +# Install Irrlicht +cd ../.. +sudo cp -r include/* /usr/local/include/ +sudo cp lib/Linux/libIrrlicht.a /usr/local/lib diff --git a/misc/install_nbe.sh b/misc/install_nbe.sh new file mode 100755 index 0000000..aa85c40 --- /dev/null +++ b/misc/install_nbe.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +cd ../ +cmake . +make -j3 +sudo make install +