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 » Mon Apr 18, 2005 5:54 pm

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??
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Post by jacmoe » Mon Apr 18, 2005 6:01 pm

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.
0 x
/* 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
Contact:

Post by haffax » Mon Apr 18, 2005 6:01 pm

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>
0 x
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
Contact:

Post by jacmoe » Mon Apr 18, 2005 6:07 pm

Here is NogreDex: Look! Some falling boxes! :)
0 x
/* 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 » Mon Apr 18, 2005 6:38 pm

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:
0 x

User avatar
gfm
Gnoblar
Posts: 17
Joined: Mon Oct 11, 2004 7:05 am
Location: Oregon
Contact:

Post by gfm » Wed Apr 20, 2005 5:17 pm

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
0 x

Post Reply