Menu

How to

deshan

Setup

Windows
Currently Mahasona Engine comes with Visual C++ 2010 and 2008 solutions(Both libraries and Examples).

To build the libraries
you need to install nvidia physx sdk 2.8.xx (3.0 not tested)
Download it from Nvidia website. You need to create a account and have to wait for the activation.
http://developer.nvidia.com/physx-downloads
Then create a environment variable PHYSX_DIR with value C:\Program Files\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win\ Bin\win32 (where ever it points in your machine)

To run example
Download and install Nvdia Physx system software(This may be almost installed in your machine if you are a hardcore gamer)
copy all dlls comes with physx sdk to the example bin folder. (or add to system path)
ex - C:\Program Files\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win\ Bin\win32

Also need to copy the dlls in Mahasona\dependencies\bin\x..

Linux

Currently Mahasona Engine comes with Code blocks project.

Install GCC

sudo apt-get install build-essential

Find SDL Lib

sudo apt-cache search sdl

Find following from list

libsdl1.2-dev - Simple DirectMedia Layer development files

Install

sudo apt-get install libsdl1.2-dev

Find Devil Lib

sudo apt-cache search devil

Find following from list

libdevil-dev - Cross-platform image loading and manipulation toolkit

Install

sudo apt-get install libdevil-dev

Install Nvidia Physx

Download file from http://developer.download.nvidia.com/PhysX/2.8.1/PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz

And install all debs

Then execute following commands
sudo ln -s /usr/lib/PhysX/v2.8.1/libNxCharacter.so.1 /usr/lib/libNxCharacter.so.1
sudo ln -s /usr/lib/PhysX/v2.8.1/libNxCooking.so.1 /usr/lib/libNxCooking.so.1
sudo ln -s /usr/lib/PhysX/v2.8.1/libPhysXCore.so.1 /usr/lib/libPhysXCore.so.1

Install Glew dependency for opengl 2.0

Find glew

apt-cache search glew

Install dev lib

sudo apt-get install libglewmx1.5-dev

Repository version of mahasona available from http://sourceforge.net/p/mahasona/code

Install code blocks, open workspace, build Mahasona, MahasonaGUI, MahasonaPhysx and run the example