Error compiling Critter using VS2008

mephisto

26-12-2010 09:29:26

Hello i am triyng to compile critter library. I have boost_1_44, but critter needs boost_1_42 as include dependencies. I triyed to change like this
$(OGRE_HOME)\boost_1_44
and i have also changed in CritterStable.h : #include "OGRE/Ogre.h" -> include "Ogre.h"
#include "OGRE/Terrain/OgreTerrain.h" -> #include "Terrain/OgreTerrain.h"(because of my configuration).
When compiling i get over 600 errors... first errors :
1>CritterBodyDescription.cpp
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2039: 'RigidBodyType_USER_BEGIN' : is not a member of 'NxOgre::Enums'
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2065: 'RigidBodyType_USER_BEGIN' : undeclared identifier
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2056: illegal expression
1>CritterKinematicBody.cpp
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2039: 'RigidBodyType_USER_BEGIN' : is not a member of 'NxOgre::Enums'
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2065: 'RigidBodyType_USER_BEGIN' : undeclared identifier
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterenums.h(60) : error C2056: illegal expression
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterkinematicbody.h(48) : error C2146: syntax error : missing ';' before identifier 'NXOGRE_GC_FRIEND_DELETE'
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterkinematicbody.h(48) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\mephisto\desktop\nxogre\betajaen-critter-51f9edf\build\source\critterkinematicbody.h(48) : error C2143: syntax error : missing ';' before 'public'
mephisto

betajaen

26-12-2010 09:42:06

Your using an older version of NxOgre (not Detritus) with Critter.

mephisto

26-12-2010 09:54:18

Oh ok thanks, I am really new with PhysX (from yesterday :D). I just want to "resolve ambiguity" :
the old NxOgre version comes with rendersystem
and the new NxOgre version comes without rendersystem and critter is the new rendersystem ?

betajaen

26-12-2010 10:17:59

Yes.

mephisto

26-12-2010 10:59:04

Sorry for excessive questions, but where SamplesBrowser.exe is supposed to be located?

betajaen

26-12-2010 11:20:14

In the Ogre directory, bin/(debug or release) I believe.

mephisto

26-12-2010 11:27:47

A new folder "C:\OgreSDK_vc9_v1-7-2" is created containig bin\debug and bin\release. But "debug" and "release" folders contain only demo's dll and Sample.cfg.
The problem is that in the tutorials project any subproject isnt an .exe , all are set as dlls.

betajaen

26-12-2010 12:12:30

That's how it works, they are "plugins" for the SampleFramework.

Just run the SampleBrowser.exe and they'll appear in the list.

mephisto

26-12-2010 13:25:39

Finally I get some demo wrkin' fine and some doesn't workin' due to error in SampleBrowser "following plugin corrupted..."(something like this)...
But this examples does not show the Ogre3d - NxOgre - PhysX integration (in my opinion). In previous versions of NxOgre at wiki there was very interesting tutorials of how to make minimal NxOgre application , proceding by Ogre project. So I would like to know if there is somewhere a tutorial that shows that.

betajaen

26-12-2010 13:56:47

Do you have an exact error?

And no, there isn't any "standalone" tutorials for Detritus. Integrating NxOgre with Ogre, is barely anything; 2-3 lines tops. The tutorials show this.

mephisto

26-12-2010 14:19:00

I can see this when running SampleBrowser : "These requested sample plugins were either missing, corrupt or invalid"
with a long list : with one demo NxOgre, and others from Ogre3d. But the most interesting, that when I try some NxOgre demos that arent in the list the Browser crashes.
My minimal project is to make race game with basic vehicles. (and may be with car deformations, and custom vehicles )
Previously I was using newton SDK with OgreNewt, but I found that it wouldnt be accurate concedering that OgreNewt dont have vehicle class and CarRayCast isnt accurate(friction problems) and customs joints provided by OgreNewt didnt satisfy me. I also tryied Bullet but the OgreBullet wrapper is not complete.
So I decided to use PhysiX in order to be sure that is the most complete solution to my problem.