error compiling

rogerdv

15-05-2009 12:52:44

I have followed the instructions to build under Linux, copied the missing files, etc. But I still get this error:


../include/OgreBulletDynamicsConstraint.h:68: error: ISO C++ forbids declaration of 'btActionInterface' with no type
../include/OgreBulletDynamicsConstraint.h:68: error: 'btActionInterface' declared as an 'inline' field
../include/OgreBulletDynamicsConstraint.h:68: error: expected ';' before '*' token
../include/OgreBulletDynamicsConstraint.h:71: error: ISO C++ forbids declaration of 'btActionInterface' with no type
../include/OgreBulletDynamicsConstraint.h:71: error: expected ';' before '*' token
../include/Constraints/OgreBulletDynamicsRaycastVehicle.h: In member function 'btRaycastVehicle* OgreBulletDynamics::RaycastVehicle::getBulletVehicle()':
../include/Constraints/OgreBulletDynamicsRaycastVehicle.h:97: error: 'mActionInterface' was not declared in this scope
OgreBulletDynamicsConstraint.cpp: In constructor 'OgreBulletDynamics::ActionInterface::ActionInterface(OgreBulletDynamics::DynamicsWorld*)':
OgreBulletDynamicsConstraint.cpp:79: error: class 'OgreBulletDynamics::ActionInterface' does not have any field named 'mActionInterface'
OgreBulletDynamicsConstraint.cpp: In constructor 'OgreBulletDynamics::ActionInterface::ActionInterface(OgreBulletDynamics::RigidBody*)':
OgreBulletDynamicsConstraint.cpp:87: error: class 'OgreBulletDynamics::ActionInterface' does not have any field named 'mActionInterface'
OgreBulletDynamicsConstraint.cpp: In constructor 'OgreBulletDynamics::ActionInterface::ActionInterface(OgreBulletDynamics::RigidBody*, OgreBulletDynamics::RigidBody*)':
OgreBulletDynamicsConstraint.cpp:96: error: class 'OgreBulletDynamics::ActionInterface' does not have any field named 'mActionInterface'
OgreBulletDynamicsConstraint.cpp: In destructor 'virtual OgreBulletDynamics::ActionInterface::~ActionInterface()':
OgreBulletDynamicsConstraint.cpp:108: error: 'mActionInterface' was not declared in this scope
OgreBulletDynamicsConstraint.cpp:111: error: type '<type error>' argument given to 'delete', expected pointer
make[3]: *** [OgreBulletDynamicsConstraint.lo] Error 1
make[3]: se sale del directorio `/home/roger/projects/ogrebullet/Dynamics/src'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/roger/projects/ogrebullet/Dynamics'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/roger/projects/ogrebullet'
make: *** [all] Error 2


Im using the code from Ogre addons svn. I havent tried yet in Windows with Code::Blocks.

Fish

16-05-2009 13:25:58

btActionInterface belongs to the Bullet Library. Are you sure you have Bullet installed?

rogerdv

16-05-2009 13:43:17

Yes, it is installed and at least scons detects it when I link it to my project.

kondzik

20-05-2009 17:57:12

Check if you have btActionInterface.h in /usr/include/bullet/BulletDynamics/Dynamics (or wherever you have bullet installed). On gentoo linux btActionInterface.h wasn't where it shoud be and caused me the same error about 5 minutes ago. Copy it by hand and it should solve the problem.

rogerdv

23-05-2009 23:40:18

indeed, such file is missing, and I cant even find it in bullet sources.

dermont

24-05-2009 02:14:26

You're not using a beta version of the 2.74 bullet sources by any chance? The header is in the latest version of 2.74, try downloading and building that.

http://bullet.googlecode.com/files/bullet-2.74.tgz

rogerdv

24-05-2009 19:44:04

Probably. Ill check if portage already has a more recent version.