Error compiling Cake

winston2020

17-07-2008 19:28:21

Hi, I managed to get NxOgre compiled just fine, but now I'm trying to compile Cake, and it's giving me errors in the header files...


1>c:\ogresdk\nxogre\cake\source\cakeogre.h(216) : error C2039: 'Identifier' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cakeogre.h(217) : error C2039: 'IdentifierType' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cakeogre.h(217) : error C2039: 'IT_CREATE' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cakeogre.h(217) : error C2065: 'IT_CREATE' : undeclared identifier
1>c:\ogresdk\nxogre\cake\source\cakeogre.h(322) : error C2065: 'NxHashes_OgreNodeRenderable' : undeclared identifier
1>c:\ogresdk\nxogre\cake\source\cake.cpp(100) : error C2146: syntax error : missing ';' before identifier 'Spikey'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(162) : error C2039: 'Identifier' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(163) : error C2039: 'IdentifierType' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(163) : error C2039: 'IT_CREATE' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(164) : error C2039: 'GraphicsModel' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(165) : error C2039: 'GraphicsModelType' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(165) : error C2039: 'GMT_RESOURCE_IDENTIFIER' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(166) : error C2039: 'GraphicsModelScale' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(167) : error C2039: 'GraphicsModelMaterial' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2039: 'Identifier' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2039: 'GraphicsModelScale' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2228: left of '.x' must have class/struct/union
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2039: 'GraphicsModelScale' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2228: left of '.y' must have class/struct/union
1>c:\ogresdk\nxogre\cake\source\cake.cpp(169) : error C2039: 'GraphicsModelScale' : is not a member of 'NxOgre::NodeRenderableParams'
1> c:\ogresdk\nxogre\include\nxogrenoderenderable.h(36) : see declaration of 'NxOgre::NodeRenderableParams'


Did I forget something?

winston2020

17-07-2008 20:52:47

No thoughts?

I'm not exactly an advanced C++ programmer, so it could be something simple that I neglected to do...

betajaen

17-07-2008 22:53:25

No it isn't you. It's NxOgre, there was a change in the names of the variables in the NodeRenderableParams. It's an easy fix; things like "Identifier" go "mIdentifier" (pull up a copy of NxOgreNodeRenderable, and have it side by side to know the new names.)

Of course if you don't fancy that, Cake 4.0 is all up to date - should be out later this month with new NxOgre and Flour.

xadh00m

18-07-2008 09:07:28

Of course if you don't fancy that, Cake 4.0 is all up to date - should be out later this month with new NxOgre and Flour.

Yeeehaaa! :lol:

winston2020

18-07-2008 13:30:17

Ok, thanks. That shouldn't take too long to fix.
As for the new version, is it significantly different?

betajaen

18-07-2008 14:12:55

Quite different. It can run without Ogre now.