ogrebullet compile

hans

14-03-2013 09:36:06

getting following errors under ogrebullet compile vc2010 in ogrebulletcollisions project:



1>..\..\src\OgreBulletCollisionsWorld.cpp(226): error C2440: 'static_cast' : cannot convert from 'const btCollisionObject *' to 'btCollisionObject *'
1> Conversion loses qualifiers
1>..\..\src\OgreBulletCollisionsWorld.cpp(227): error C2440: 'static_cast' : cannot convert from 'const btCollisionObject *' to 'btCollisionObject *'
1> Conversion loses qualifiers
1> OgreBulletCollisionsRay.cpp
1>..\..\src\OgreBulletCollisionsRay.cpp(87): error C2664: 'OgreBulletCollisions::Object *OgreBulletCollisions::CollisionsWorld::findObject(Ogre::SceneNode *) const' : cannot convert parameter 1 from 'const btCollisionObject *' to 'Ogre::SceneNode *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


using bullet-2.81 rev2613
OgreSdk vc10 1.8.1 and current ogrebullet release in cvs repository.

i also tried compiling against several different bullet versions, didnt work.

anyone have an idea.

AlexeyKnyshev

15-03-2013 14:18:57

Why people always don't try to find solution in forum topics before.
http://www.ogre3d.org/addonforums/viewtopic.php?f=12&t=29787
Or it's quite hard to read long post like this?
P.S. sorry for my rudeness, but sometimes posts like yours are very annoying.