Ogre and OgreBullet SVN

Sussch

21-01-2010 13:05:03

Hi,

I encountered the following problem while compiling OgreBullet SVN with Ogre SVN and Bullet SVN:

In file included from OgreBulletCollisionsObject.cpp:29:
../include/OgreBulletCollisionsObject.h:50: error: expected class-name before ‘{’ token
OgreBulletCollisionsObject.cpp: In constructor ‘OgreBulletCollisions::Object::Object(const Ogre::String&, OgreBulletCollisions::CollisionsWorld*, bool)’:
OgreBulletCollisionsObject.cpp:47: error: class ‘OgreBulletCollisions::Object’ does not have any field named ‘UserDefinedObject’


To me it seems that the OgreUserDefinedObject.h is no more.

All suggestions are welcome,
Thank You

Fish

21-01-2010 18:40:37

OB won't compile against Ogre 1.7 out of the box. OB will need to be updated first. You can use Ogre 1.6.5 until 1.7 goes stable.

-Fish

OGREHEAD

06-02-2010 17:01:11

What is the status of ogrebullet?

Is it possible to use OB with 1.7?
How?

I get the following error:
OgreBulletCollisionsObject.cpp:47: error: class ‘OgreBulletCollisions::Object’ does not have any field named ‘UserDefinedObject’

Fish

06-02-2010 17:05:48

Someone needs to submit a 1.7 compatibility patch to the tracker and I'm pretty sure Tuan will quickly get it integrated into OB SVN. UserDefinedObject has been removed from Ogre 1.7 and has been replaced with OgreAny.

-Fish

Lizard

26-03-2010 19:57:59

Work fine for me.. you guys are just not trying hard enough... Note that it does not include proper fix, i do not use the vehicle module and probably commented out code in it causing problem. Also i cannot be arsed to make a proper patch, attached archive is using my local platform path and format and will need to be adjusted to be of any use to someone else, but it sure does work.

Fish

27-03-2010 00:57:28

Thanks for posting but the issue has already been fixed in SVN.

-Fish

denizkin

25-04-2010 17:05:13


  1. 1>------ Построение начато: проект: Ogre_Bullet_Dynamics_Demos_SDK, Конфигурация: Debug Win32 ------
    1>Компиляция...
    1>cl: командная строка warning D9035: использование параметра "Wp64" нежелательно, он будет удален в следующих выпусках
    1>OgreBulletListener.cpp
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(245) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(280) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'
    1> Типы, на которые указывают указатели, не связаны; для преобразования требуется reinterpret_cast, приведение в стиле С или приведение в стиле функции
    1>TriMesh_Demo.cpp
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(245) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(280) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'
    1> Типы, на которые указывают указатели, не связаны; для преобразования требуется reinterpret_cast, приведение в стиле С или приведение в стиле функции
    1>Primitives_Demo.cpp
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(245) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(280) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'
    1> Типы, на которые указывают указатели, не связаны; для преобразования требуется reinterpret_cast, приведение в стиле С или приведение в стиле функции
    1>Constraints_Demo.cpp
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(245) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\bullet\bullet-2.76\src\LinearMath/btSerializer.h(280) : warning C4311: приведение типов: усечение указателя из 'char *' в 'long'
    1>c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'
    1> Типы, на которые указывают указатели, не связаны; для преобразования требуется reinterpret_cast, приведение в стиле С или приведение в стиле функции
    1>Создание кода...
    1>Журнал построения был сохранен в "file://c:\OgreBullet\Demos\Dynamics_Demos\obj\Debug\BuildLog.htm"
    1>Ogre_Bullet_Dynamics_Demos_SDK - ошибок 4, предупреждений 9
    ========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========


Hi. I'm from Russia. Please help me with this error:
c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'

Fish

25-04-2010 18:56:15


Hi. I'm from Russia. Please help me with this error:
c:\ogrebullet\dynamics\include\Constraints/OgreBulletDynamicsRaycastVehicle.h(97) : error C2440: static_cast: невозможно преобразовать 'btTypedConstraint *' в 'btRaycastVehicle *'


You have an old version of OgreBullet that is not compatible with the newer versions of Bullet. Please upgrade to the newest OgreBullet from SVN, see the first post in this thread.

-Fish

denizkin

25-04-2010 19:23:20

Thanks for help.)))