Problem with Bullet animator 0.2

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
VagueNess
Posts: 15
Joined: Wed Jan 02, 2008 8:17 pm
Location: Holland

Problem with Bullet animator 0.2

Post by VagueNess »

Hi,

I've downloaded the serializable Bullet animator.
When I tried compiling it (with MSVC++ 2008), I get these errors:
c:\documents and settings\******\mijn documenten\visual studio 2008\projects\game\game\gminigolfapp.cpp(84) : error C2259: 'CWorldEditorGUI' : cannot instantiate abstract class
due to following members:
'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
c:\irrlicht-1.4\include\ieventreceiver.h(256) : see declaration of 'irr::IEventReceiver::OnEvent'
c:\documents and settings\******\mijn documenten\visual studio 2008\projects\game\game\gminigolfapp.cpp(92) : error C2259: 'irr::scene::CBulletAnimatorManager' : cannot instantiate abstract class
due to following members:
'irr::u32 irr::scene::ISceneNodeAnimatorFactory::getCreatableSceneNodeAnimatorTypeCount(void) const' : is abstract
c:\irrlicht-1.4\include\iscenenodeanimatorfactory.h(48) : see declaration of 'irr::scene::ISceneNodeAnimatorFactory::getCreatableSceneNodeAnimatorTypeCount'
'irr::scene::ESCENE_NODE_ANIMATOR_TYPE irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorType(irr::u32) const' : is abstract
c:\irrlicht-1.4\include\iscenenodeanimatorfactory.h(53) : see declaration of 'irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorType'
'const irr::c8 *irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorTypeName(irr::scene::ESCENE_NODE_ANIMATOR_TYPE) const' : is abstract
c:\irrlicht-1.4\include\iscenenodeanimatorfactory.h(63) : see declaration of 'irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorTypeName'
'const irr::c8 *irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorTypeName(irr::u32) const' : is abstract
c:\irrlicht-1.4\include\iscenenodeanimatorfactory.h(58) : see declaration of 'irr::scene::ISceneNodeAnimatorFactory::getCreateableSceneNodeAnimatorTypeName'

c:\documents and settings\******\mijn documenten\visual studio 2008\projects\game\game\main.cpp(8) : error C2259: 'GMiniGolfApp' : cannot instantiate abstract class
due to following members:
'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
c:\irrlicht-1.4\include\ieventreceiver.h(256) : see declaration of 'irr::IEventReceiver::OnEvent'

c:\documents and settings\joshua willems\mijn documenten\visual studio 2008\projects\game\game\cworldeditorgui.cpp(268) : error C2440: 'initializing' : cannot convert from 'irr::core::list<T>::ConstIterator' to 'irr::core::list<T>::Iterator'
with
[
T=irr::scene::ISceneNode *
]
No constructor could take the source type, or constructor overload resolution was ambiguous
Can someone help?
Sorry for any bad English, I'm Dutch.
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Well I will take a guess as to why this doesn't work:
'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
I am guessing that there is a:

Code: Select all

virtual bool OnEvent(irr::SEvent event)
instead of

Code: Select all

virtual bool OnEvent(const irr::SEvent& event)
TheQuestion = 2B || !2B
VagueNess
Posts: 15
Joined: Wed Jan 02, 2008 8:17 pm
Location: Holland

Post by VagueNess »

I get the same error if i change it to:

Code: Select all

bool CWorldEditorGUI::OnEvent(const SEvent& event)
Sorry for any bad English, I'm Dutch.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, that solved one of the problems, but there remain several others. You have to adjust your app to the latest API, otherwise some pure virtual methods will exist. Check for const qualifiers and s32/u32 differences.
VagueNess
Posts: 15
Joined: Wed Jan 02, 2008 8:17 pm
Location: Holland

Post by VagueNess »

@hybrid: Actually, none of the problems is solved yet. :(
Sorry for any bad English, I'm Dutch.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

'irr::scene::CBulletAnimatorManager' : cannot instantiate abstract class
due to following members:
'irr::u32 irr::scene::ISceneNodeAnimatorFactory::getCreatableSceneNodeAnimatorTypeCount(void) const' : is abstract
This is telling you that your CBulletAnimatorManager implementation does not have a method that exactly matches:

Code: Select all

u32 getCreatableSceneNodeAnimatorTypeCount(void) const
So do you have an exact implementation of this method? Does it return a u32 rather than an i32? Is it a const method?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply