Compiling errors

s0lidnuts

02-10-2007 00:30:23

I did a SVN checkout about 10mins ago and tried to compile:
Error 3 error C2039: 'cookerThreadMask' : is not a member of 'NxPhysicsSDKDesc' c:\nxogre3\nxogre\include\nxogreworldblueprint.h 58 NxOgre

And this is one of the 40 errors and 5 warnings.
PhysX 2.70
MS VS 2008 B2
Ogre 1.4.5

betajaen

02-10-2007 00:37:57

Why PhysX 2.7.0 and where you can have PhysX 2.7.2, also I expect NxOgre would not work in VS9; changes and all.

Post the full errors if you would.

s0lidnuts

02-10-2007 00:50:12

Error 3 error C2039: 'cookerThreadMask' : is not a member of 'NxPhysicsSDKDesc' c:\nxogre3\nxogre\include\nxogreworldblueprint.h 58 NxOgre
Error 4 error C2039: 'cookerThreadMask' : is not a member of 'NxPhysicsSDKDesc' c:\nxogre3\nxogre\include\nxogreworldblueprint.h 58 NxOgre
Error 7 error C2065: 'NX_TP_ABOVE_NORMAL' : undeclared identifier c:\nxogre3\nxogre\source\nxogreenumsblueprint.cpp 1106 NxOgre
Error 8 error C2065: 'NX_TP_BELOW_NORMAL' : undeclared identifier c:\nxogre3\nxogre\source\nxogreenumsblueprint.cpp 1112 NxOgre
Error 9 error C2039: 'clothScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 238 NxOgre
Error 10 error C2039: 'falloffLinear' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 241 NxOgre
Error 11 error C2039: 'falloffQuadratic' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 242 NxOgre
Error 12 error C2039: 'flags' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 243 NxOgre
Error 13 error C2039: 'fluidScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 244 NxOgre
Error 14 error C2039: 'group' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 245 NxOgre
Error 15 error C2039: 'groupsMask' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 246 NxOgre
Error 16 error C2039: 'noise' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 247 NxOgre
Error 17 error C2039: 'positionTarget' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 250 NxOgre
Error 18 error C2039: 'positionTarget' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 250 NxOgre
Error 19 error C2039: 'rigidBodyScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 251 NxOgre
Error 20 error C2039: 'rigidBodyScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 251 NxOgre
Error 21 error C2039: 'softBodyScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 252 NxOgre
Error 22 error C2039: 'softBodyScale' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 252 NxOgre
Error 23 error C2039: 'velocityTarget' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 255 NxOgre
Error 24 error C2039: 'velocityTarget' : is not a member of 'NxForceFieldDesc' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 255 NxOgre
Error 25 error C2039: 'createForceField' : is not a member of 'NxScene' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 257 NxOgre
Error 26 error C2039: 'releaseForceField' : is not a member of 'NxScene' c:\nxogre3\nxogre\source\nxogreforcefield.cpp 264 NxOgre
Error 27 error C2059: syntax error : '}' c:\nxogre3\nxogre\source\nxogredominancegroup.cpp 101 NxOgre
Error 28 error C2143: syntax error : missing ';' before '}' c:\nxogre3\nxogre\source\nxogredominancegroup.cpp 101 NxOgre
Error 29 error C2059: syntax error : '}' c:\nxogre3\nxogre\source\nxogredominancegroup.cpp 101 NxOgre
Error 30 error C2065: 'mDominanceGroups' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 426 NxOgre
Error 31 error C2228: left of '.destroyAllOwned' must have class/struct/union c:\nxogre3\nxogre\source\nxogrescene.cpp 426 NxOgre
Error 32 error C2065: 'mDominanceGroups' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 427 NxOgre
Error 33 error C2228: left of '.empty' must have class/struct/union c:\nxogre3\nxogre\source\nxogrescene.cpp 427 NxOgre
Error 34 error C2065: 'DominanceGroup' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 831 NxOgre
Error 35 error C2065: 'ddg' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 831 NxOgre
Error 36 error C2061: syntax error : identifier 'DominanceGroup' c:\nxogre3\nxogre\source\nxogrescene.cpp 831 NxOgre
Error 37 error C2065: 'mDominanceGroups' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 832 NxOgre
Error 38 error C2228: left of '.lock' must have class/struct/union c:\nxogre3\nxogre\source\nxogrescene.cpp 832 NxOgre
Error 39 error C2065: 'ddg' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 832 NxOgre
Error 40 error C2227: left of '->getName' must point to class/struct/union/generic type c:\nxogre3\nxogre\source\nxogrescene.cpp 832 NxOgre
Error 41 error C2065: 'mDominanceGroupsByIndex' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 833 NxOgre
Error 42 error C2228: left of '.lock' must have class/struct/union c:\nxogre3\nxogre\source\nxogrescene.cpp 833 NxOgre
Error 43 error C2065: 'ddg' : undeclared identifier c:\nxogre3\nxogre\source\nxogrescene.cpp 833 NxOgre
Error 44 error C2227: left of '->getGroupID' must point to class/struct/union/generic type c:\nxogre3\nxogre\source\nxogrescene.cpp 833 NxOgre

=X
oK, I'll download 2.7.2

s0lidnuts

02-10-2007 01:37:58

Downloaded PhysX SDK 2.7.2 and the errors persist. Do you think the error can really be happening because of VC9?
PS.: Betajaen, can you share your VS font/colors? =P

betajaen

02-10-2007 01:47:10

I think it could be. I read on the forums here; that some of the functions have been removed and the compiler have changed. Just like the differences between GCC and Visual Studio. But some of those errors may be down to a file conflict, weird environmental variable, etc.

I can, if you can tell me what file/registry key to export. I had a look and I couldn't find anything. The theme is based of the colours for the theme "Monokai" for TextMate.

s0lidnuts

02-10-2007 01:54:19

Tools >> Import / Export Settings
I guess that will work =) (I hope so)
And I'll wait till tomorrow to install VS2005.. little slippy right now xD

betajaen

02-10-2007 02:26:37

There you go. It's just the colours, so I don't know if you can merge it it in or not.

http://www.betajaen.com/monokai.vssettings

The font is "Consolas" which you can get with Vista, or other methods.

s0lidnuts

02-10-2007 02:30:12

Thanks =)
Found some of the theme before on some site and got the font too.
Yes I can merge, I didn't know VS could have some nice colors like that =P

betajaen

02-10-2007 02:34:03

Well it could be better things like method names, classes, even types all share the same colour, which in the TextMate theme are separate.

You could make it happen with Visual Assist but it doesn't work with the Express version of Visual Studio because of Microsoft disabling the plugin system. <le sigh>

betajaen

05-10-2007 21:35:42

I found an awesome font to go with that theme.




It's called Inconsolata. It's still being worked on, but I don't know if it's meant to be like it or a bug, but it makes the anti-aliasing more like Photoshops than Windows clear type. It has to be size 11 for it to work, but there are some artifacts here and there.

Best Mono-spaced font I've seen.

fassihi

07-10-2007 04:46:02

I have the same problem when I try to compile. What was the reason for those compile errors?

s0lidnuts

07-10-2007 05:58:52

What compiler / IDE are you using ?
The solution to me for this and another errors, was installing VS 2005 instead of 2008, and aplying the SP1 and Vista SP1 (even if you don't use Vista), then everything got working.
But, I don't remember well and this could be the solution to another errors I had; If you don't have the last SDK from AGEIA, get it, the 2.7.2 is the one I'm using and it works.

fassihi

09-10-2007 04:02:26

The new SDK fixed it in my case...

nexus

13-03-2008 11:44:50

Hello all, i installed on my win XP:
- visual studio express 2008
- physX SDK 2.8.0 and the PhysX 8.02.13 SystemSoftware
- nxogre 0.9

I still have a lot of compiling errors as:

error C2039: 'clothScale' : is not a member of 'NxForceFieldDesc'
error C2039: 'constant' : is not a member of 'NxForceFieldDesc'

The env variables should be set correctly and i followed the batajaen's guide for installing all. Reading this topic i didn't understand how to fix this problems. :roll:

Can anyone please help me?

Thank you very much

betajaen

13-03-2008 11:57:21

NxOgre 0.9 only works with PhysX 2.7.3 at the moment.

nexus

13-03-2008 12:15:56

problem fixed, thank youu! :D