SOLUTION to NxOgre 0.4RC3, Dagon, and Visual Studio 2005 SP1

DieHard

04-01-2007 02:07:59

I'm using Ogre 1.2.4 (Dagon) and VS2005 Service Pack 1:
http://weblogs.asp.net/scottgu/archive/ ... eased.aspx

If you got similar compiling errors like so:
error C2039: 'setInfinite' : is not a member of 'Ogre::AxisAlignedBox'
error C2514: 'nxOgre::structure' : class has no constructors
error C2514: 'nxOgre::character' : class has no constructors


The solution is:
1. Cut and paste the block "class _nxOgreExport structure : public body {" in the "nxOgre_structure.h" header file and paste it after the line "namespace nxOgre {".

2. Cut and paste the block "class _nxOgreExport character : public controllable, public NxUserControllerHitReport {" in the "nxOgre_character.h" header file and paste it after the line "namespace nxOgre {".

3. Download this source file and overwrite the existing file:
http://get.nxogre.org/0.4.RC3/nxOgre_debugnode.cpp

4. Compile the project. Better hope it is successful.

I hope "betajaen" will update the source files so we don't have to do it ourselves (newcomers). RC3.1 :)

Don't forget about the "nxOgre_particle.cpp" in the "include" directory.