How to use novodex engine with ogre?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

How to use novodex engine with ogre?

Post by oldfox »

Hi, I coded a little flight simulator with glut and novodex, and now I just would like to adapt it with ogre.

But, as soon as I include the novodex part ine the project, I get hundreds of bad compilation errors :oops: :oops:

A little sample :

Code: Select all

warning C4002: too many actual parameters for macro 'calloc'
warning C4229: anachronism used : modifiers on data are ignored
error C2040: 'Ogre::sMemManager' : 'void *' differs in levels of indirection from 'Ogre::MemoryManager'
error C2491: 'Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
error C2143: syntax error : missing ';' before 'Ogre::MemoryManager::sMemManager'
error C2501: 'Ogre::MemoryManager::sMemManager' : missing storage-class or type specifiers
error C2371: 'Ogre::sMemManager' : redefinition; different basic types


Seems novodex and ogre aren't good friends... How do you solve those conflicts problems??
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Novodex and Ogre gets along quite nicely, actually!
The Zeus Engine is using it, amongst others.

((Enter 'novodex' in the forum search box))
Last edited by jacmoe on Mon Apr 18, 2005 6:02 pm, edited 1 time in total.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Either include the novodex-headers in front of the ogre headers. or wrap them this way:

Code: Select all

#include <OgreNoMemoryMacros.h>
// here go the novodex headers.
#include <OgreMemoryMacros.h>
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Here is NogreDex: Look! Some falling boxes! :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

Post by oldfox »

Wow thanks for the quick answer! Your tip seems to be working Tanis thx!!


Now I still have to translate a glut program into oriented object ogre :P :lol:
User avatar
gfm
Gnoblar
Posts: 17
Joined: Mon Oct 11, 2004 7:05 am
Location: Oregon
Contact:

Post by gfm »

BTW, I've been working on updating the nogredex framework, you can check out my progress here:

http://www.ogre3d.org/phpBB2/viewtopic.php?t=9584
Post Reply