ogrecave / btogre Goto Github PK
View Code? Open in Web Editor NEWNow in the main repository as Component
Home Page: https://github.com/OGRECave/ogre
License: zlib License
Now in the main repository as Component
Home Page: https://github.com/OGRECave/ogre
License: zlib License
Hello,
may anybody help me with this bug?
it happens while building with DEMO I am getting this error
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::DynamicsWorld::addRigidBody(float, Ogre::Entity const*, BtOgre::ColliderType, BtOgre::CollisionListener*)': BtOgre.cpp:(.text+0xb30): undefined reference to
btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)'
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::VertexIndexToShape::createConvex()': BtOgre.cpp:(.text+0x2303): undefined reference to
btConvexHullShape::btConvexHullShape(float const*, int, int)'
/usr/bin/ld: libBtOgre.a(BtOgre.cpp.o): in function BtOgre::VertexIndexToShape::createCapsule()': BtOgre.cpp:(.text+0x285c): undefined reference to
btCapsuleShape::btCapsuleShape(float, float)'
/usr/bin/ld: BtOgre.cpp:(.text+0x28d7): undefined reference to btCapsuleShapeX::btCapsuleShapeX(float, float)' /usr/bin/ld: BtOgre.cpp:(.text+0x293a): undefined reference to
btCapsuleShapeZ::btCapsuleShapeZ(float, float)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/BtOgreTest.dir/build.make:93: BtOgreTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/BtOgreTest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared module _BtOgre.so
[100%] Built target _BtOgre
make: *** [Makefile:130: all] Error 2
If there is no lines to draw (in my case, no bodies in bullet world), DebugDrawer::update throws exception with message:
what(): RuntimeAssertionException: mCurrentSection failed. You cannot call end() until after you call begin() in end at /build/ogre/src/ogre-13.1.1/OgreMain/src/OgreManualObject.cpp (line 324)
My solution: add a flag to mark if there were any line drawing:
bool mBegan{false};
and
void update()
{
mWorld->debugDrawWorld();
if (mBegan)
{
mLines.end();
mBegan = false;
}
}
and
void DebugDrawer::drawLine(const btVector3& from,const btVector3& to,const btVector3& color)
{
mBegan = true;
Hello,
may anybody help me with this bug?
it happens while building with DEMO I am getting this error
//usr/bin/ld: libBtOgre.so: undefined reference to btConvexHullShape::btConvexHullShape(float const*, int, int)' /usr/bin/ld: libBtOgre.so: undefined reference to
btCapsuleShape::btCapsuleShape(float, float)'
/usr/bin/ld: libBtOgre.so: undefined reference to btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)' /usr/bin/ld: libBtOgre.so: undefined reference to
btCapsuleShapeZ::btCapsuleShapeZ(float, float)'
/usr/bin/ld: libBtOgre.so: undefined reference to `btCapsuleShapeX::btCapsuleShapeX(float, float)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/BtOgreTest.dir/build.make:93: BtOgreTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/BtOgreTest.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
An error has occured when compiling BtOgre with BUILD_DEMO
main.cpp|67|error: no matching function for call to 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const char [7], bool)'
||=== Сборка: install in BtOgre (compiler: GNU GCC Compiler) ===|
D:\Work\SDK\OgreBullet_source\demo\main.cpp||In constructor 'BtOgreTestApplication::BtOgreTestApplication()':|
D:\Work\SDK\OgreBullet_source\demo\main.cpp|67|error: no matching function for call to 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const char [7], bool)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|58|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const String&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|58|note: candidate expects 1 argument, 2 provided|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(const OgreBites::ApplicationContextSDL&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate expects 1 argument, 2 provided|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate: 'OgreBites::ApplicationContextSDL::ApplicationContextSDL(OgreBites::ApplicationContextSDL&&)'|
D:\Work\SDK\Ogre_install\include\OGRE\Bites\OgreApplicationContext.h|55|note: candidate expects 1 argument, 2 provided|
[CMakeFiles\BtOgreTest.dir\build.make|63|CMakeFiles/BtOgreTest.dir/demo/main.cpp.obj] Error 1|
[CMakeFiles\Makefile2|109|CMakeFiles/BtOgreTest.dir/all] Error 2|
[D:\Work\SDK\OgreBullet_build\Makefile|129|all] Error 2|
||=== Build неудачно: 4 error(s), 0 warning(s) (0 minute(s), 8 second(s)) ===|
Hi guys,
does anybody know why I have this https://youtu.be/VKSiKcNKxwg slightest lag between a hull and wheels of a car?
I use Ogre 13.3 and the latest version of BtOgre. A car is built of 3 relative hierarchic SceneNode objects. Wheels are connected at the toppest SceneNode. The lowest SceneNode contains RaycastVehicle object.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.