wxOgre

How to install it?

Introduction

wxOgre 0.2 is a development version, so for the moment there is no SDK available, you must compile it by yourself.

Be sure to have a working Ogre and wxWidgets installation before starting. You must be able to compile & run Ogre's demos and wxWidgets's examples.

Build system

To generate Makefiles and others dependents build solutions, wxOgre use CMake. If you don't have installed it already, be sure to do so before following. You may find it packaged for your GNU/Linux distribution or you can download the last version for Microsoft Windows here.

Platform dependent steps

GNU/Linux

Just jump into the wxOgre's folder and type:

$ cd build/ && ./configure && make

This will compile a release build with /usr/ as base folder for the installation. To install it, type the usual:

$ sudo make install

If you want to compile a debug build or install it in an other place you need to pass different arguments do cmake like:

$ cd build/ && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/john/sandbox

MS Windows

The first step is to run CMake to create the scripts for your preferred IDE. To avoid troubles, be sure to have both the $(WXWIN) and $(OGRE_HOME) path variables defined and pointing to each base library folder.

Then execute CMake. I usually use the wxogre/build folder to put the generated scripts, but you can select the one you want. If you plan to compile both release and debug builds, don't forget to set the variable wxWidgets_USE_REL_AND_DBG to ON otherwise your debug configuration will try to link against wxWidgets' release libraries and this will not work ,)

Mac OSX

If you are interested to port wxOgre to Mac OSX, please contact me.

Run the examples

The examples use Ogre's resources, in order to launch them you have to copy the resources.cfg file in the release or debug folder where are situated the examples. Don't forget to adapt the path to the media directory.

Under Microsoft Windows you also must copy the OgreMain, RenderSystem_GL, Pugin_ParticleFX and Plugin_OctreeSceneManager DLLs to the examples' folder.