Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Linux #1801

Open
fgolemo opened this issue Sep 28, 2015 · 5 comments
Open

Cannot compile on Linux #1801

fgolemo opened this issue Sep 28, 2015 · 5 comments

Comments

@fgolemo
Copy link

fgolemo commented Sep 28, 2015

Hi all,

I am running a fresh installation of Linux Mint (17.2) and I can't compile even a fresh template cocos2d-js project anymore for linux. Whenever I run cocos run -p linux It starts compiling, but when compilation is done and it starts linking, I get errors and the whole process dies. This is the error message:
(Note that it was working before, on linux 17.1. I strongly suspect some Ubuntu/Linux Mint library update breaking the support. Also note that in the output below there are some lines missing - the whole compilation process, until [100%], because that was already successful in my previous attempt. This is the output I get when I run cocos run -p linux a second time.)

[  0%] Built target MyGame_CORE_PRE_BUILD
[  0%] [  0%] Built target unzip
Built target tinyxml2
[  1%] Built target xxhash
[  4%] MyGame_PRE_BUILD ...
Built target recast
[  5%] Built target flatbuffers
[  5%] Built target MyGame_PRE_BUILD
[ 11%] Built target jscocos2d
[100%] Built target cocos2d
Linking CXX executable bin/MyGame
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o): In function `js_type_class* js_get_type_from_native<btCollisionShape>(btCollisionShape*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/cocos2d_specifics.hpp:70: undefined reference to `typeinfo for btCollisionShape'
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o): In function `js_type_class* js_get_type_from_native<btRigidBody>(btRigidBody*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/cocos2d_specifics.hpp:70: undefined reference to `typeinfo for btRigidBody'
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o): In function `btAlignedAllocator<int, 16u>::deallocate(int*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o): In function `btAlignedAllocator<btHashInt, 16u>::deallocate(btHashInt*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o): In function `btAlignedAllocator<btTriangleInfo, 16u>::deallocate(btTriangleInfo*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
lib/libjscocos2d.a(jsb_cocos2dx_physics3d_auto.cpp.o):(.rodata._ZTV17btTypedConstraint[_ZTV17btTypedConstraint]+0x60): undefined reference to `btTypedConstraint::serialize(void*, btSerializer*) const'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DPointToPointConstraint::init(cocos2d::Physics3DRigidBody*, cocos2d::Vec3 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:113: undefined reference to `btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btVector3 const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DPointToPointConstraint::init(cocos2d::Physics3DRigidBody*, cocos2d::Physics3DRigidBody*, cocos2d::Vec3 const&, cocos2d::Vec3 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:122: undefined reference to `btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btRigidBody&, btVector3 const&, btVector3 const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Mat4 const&, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:169: undefined reference to `btHingeConstraint::btHingeConstraint(btRigidBody&, btTransform const&, bool)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Vec3 const&, cocos2d::Vec3 const&, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:180: undefined reference to `btHingeConstraint::btHingeConstraint(btRigidBody&, btVector3 const&, btVector3 const&, bool)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Physics3DRigidBody*, cocos2d::Vec3 const&, cocos2d::Vec3 const&, cocos2d::Vec3&, cocos2d::Vec3&, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:191: undefined reference to `btHingeConstraint::btHingeConstraint(btRigidBody&, btRigidBody&, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&, bool)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Physics3DRigidBody*, cocos2d::Mat4 const&, cocos2d::Mat4 const&, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:204: undefined reference to `btHingeConstraint::btHingeConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&, bool)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::setFrames(cocos2d::Mat4 const&, cocos2d::Mat4 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:230: undefined reference to `btHingeConstraint::setFrames(btTransform const&, btTransform const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::setMotorTarget(cocos2d::Quaternion const&, float)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:253: undefined reference to `btHingeConstraint::setMotorTarget(btQuaternion const&, float)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::setMotorTarget(float, float)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:257: undefined reference to `btHingeConstraint::setMotorTarget(float, float)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::getHingeAngle() const':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:284: undefined reference to `btHingeConstraint::getHingeAngle()'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DHingeConstraint::getHingeAngle(cocos2d::Mat4 const&, cocos2d::Mat4 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:291: undefined reference to `btHingeConstraint::getHingeAngle(btTransform const&, btTransform const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DSliderConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Physics3DRigidBody*, cocos2d::Mat4 const&, cocos2d::Mat4 const&, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:342: undefined reference to `btSliderConstraint::btSliderConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&, bool)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DConeTwistConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Mat4 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:621: undefined reference to `btConeTwistConstraint::btConeTwistConstraint(btRigidBody&, btTransform const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DConeTwistConstraint::create(cocos2d::Physics3DRigidBody*, cocos2d::Physics3DRigidBody*, cocos2d::Mat4 const&, cocos2d::Mat4 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:637: undefined reference to `btConeTwistConstraint::btConeTwistConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DConeTwistConstraint::setMotorTarget(btQuaternion const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:705: undefined reference to `btConeTwistConstraint::setMotorTarget(btQuaternion const&)'
lib/libcocos2d.a(CCPhysics3DConstraint.cpp.o): In function `cocos2d::Physics3DConeTwistConstraint::setMotorTargetInConstraintSpace(btQuaternion const&)':
[...some lines omitted here due to post max length...]
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `cocos2d::Physics3DRigidBody::setKinematic(bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DObject.cpp:357: undefined reference to `btCollisionObject::setActivationState(int) const'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DObject.cpp:362: undefined reference to `btCollisionObject::setActivationState(int) const'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btCollisionObject::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionDispatch/btCollisionObject.h:123: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btCollisionObject::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionDispatch/btCollisionObject.h:123: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btDefaultMotionState::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btDefaultMotionState.h:14: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btDefaultMotionState::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btDefaultMotionState.h:14: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `cocos2d::btCollider::btCollider(cocos2d::Physics3DCollider*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DObject.cpp:377: undefined reference to `btGhostObject::btGhostObject()'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `cocos2d::btCollider::~btCollider()':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DObject.cpp:379: undefined reference to `btGhostObject::~btGhostObject()'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btAlignedAllocator<btCollisionObject*, 16u>::deallocate(btCollisionObject**)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btAlignedAllocator.h:90: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o): In function `btAlignedAllocator<btCollisionObject*, 16u>::allocate(int, btCollisionObject* const**)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/LinearMath/btAlignedAllocator.h:86: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o):(.rodata._ZTVN7cocos2d10btColliderE[_ZTVN7cocos2d10btColliderE]+0x38): undefined reference to `btCollisionObject::serialize(void*, btSerializer*) const'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o):(.rodata._ZTVN7cocos2d10btColliderE[_ZTVN7cocos2d10btColliderE]+0x40): undefined reference to `btCollisionObject::serializeSingleObject(btSerializer*) const'
lib/libcocos2d.a(CCPhysics3DObject.cpp.o):(.rodata._ZTIN7cocos2d10btColliderE[_ZTIN7cocos2d10btColliderE]+0x10): undefined reference to `typeinfo for btGhostObject'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initBox(cocos2d::Vec3 const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:130: undefined reference to `btBoxShape::btBoxShape(btVector3 const&)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initCylinder(float, float)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:142: undefined reference to `btCylinderShape::btCylinderShape(btVector3 const&)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initCapsule(float, float)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:148: undefined reference to `btCapsuleShape::btCapsuleShape(float, float)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initConvexHull(cocos2d::Vec3 const*, int)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:155: undefined reference to `btConvexHullShape::btConvexHullShape(float const*, int, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initMesh(cocos2d::Vec3 const*, int)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:162: undefined reference to `btTriangleMesh::btTriangleMesh(bool, bool)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:164: undefined reference to `btTriangleMesh::addTriangle(btVector3 const&, btVector3 const&, btVector3 const&, bool)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:166: undefined reference to `btBvhTriangleMeshShape::btBvhTriangleMeshShape(btStridingMeshInterface*, bool, bool)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initHeightfield(int, int, void const*, float, float, float, bool, bool, bool)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:185: undefined reference to `btHeightfieldTerrainShape::btHeightfieldTerrainShape(int, int, void const*, float, float, float, int, PHY_ScalarType, bool)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `cocos2d::Physics3DShape::initCompoundShape(std::vector<std::pair<cocos2d::Physics3DShape*, cocos2d::Mat4>, std::allocator<std::pair<cocos2d::Physics3DShape*, cocos2d::Mat4> > > const&)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:194: undefined reference to `btCompoundShape::btCompoundShape(bool)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DShape.cpp:196: undefined reference to `btCompoundShape::addChildShape(btTransform const&, btCollisionShape*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btBoxShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btBoxShape.h:34: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btBoxShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btBoxShape.h:34: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btSphereShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btSphereShape.h:27: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btSphereShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btSphereShape.h:27: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btSphereShape::btSphereShape(float)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btSphereShape.h:29: undefined reference to `btConvexInternalShape::btConvexInternalShape()'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btSphereShape.h:29: undefined reference to `vtable for btSphereShape'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCapsuleShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCapsuleShape.h:37: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCapsuleShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCapsuleShape.h:37: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCylinderShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCylinderShape.h:34: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCylinderShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCylinderShape.h:34: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btConvexHullShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btConvexHullShape.h:31: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btConvexHullShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btConvexHullShape.h:31: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btTriangleIndexVertexArray::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btTriangleIndexVertexArray.h:79: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btTriangleIndexVertexArray::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btTriangleIndexVertexArray.h:79: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btBvhTriangleMeshShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btBvhTriangleMeshShape.h:46: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btBvhTriangleMeshShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btBvhTriangleMeshShape.h:46: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCompoundShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCompoundShape.h:71: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btCompoundShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision//CollisionShapes/btCompoundShape.h:71: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btHeightfieldTerrainShape::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h:121: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DShape.cpp.o): In function `btHeightfieldTerrainShape::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h:121: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `cocos2d::Physics3DWorld::init(cocos2d::Physics3DWorldDes*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:86: undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:90: undefined reference to `btCollisionDispatcher::btCollisionDispatcher(btCollisionConfiguration*)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:92: undefined reference to `btDbvtBroadphase::btDbvtBroadphase(btOverlappingPairCache*)'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:95: undefined reference to `btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()'
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:101: undefined reference to `btDiscreteDynamicsWorld::btDiscreteDynamicsWorld(btDispatcher*, btBroadphaseInterface*, btConstraintSolver*, btCollisionConfiguration*)'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `cocos2d::Physics3DWorld::sweepShape(cocos2d::Physics3DShape*, cocos2d::Mat4 const&, cocos2d::Mat4 const&, cocos2d::Physics3DWorld::HitResult*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DWorld.cpp:282: undefined reference to `btCollisionWorld::convexSweepTest(btConvexShape const*, btTransform const&, btTransform const&, btCollisionWorld::ConvexResultCallback&, float) const'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `btDiscreteDynamicsWorld::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h:99: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `btDiscreteDynamicsWorld::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h:99: undefined reference to `btAlignedFreeInternal(void*)'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `btSequentialImpulseConstraintSolver::operator new(unsigned long)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h:112: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
lib/libcocos2d.a(CCPhysics3DWorld.cpp.o): In function `btSequentialImpulseConstraintSolver::operator delete(void*)':
/home/florian/Documents/dev/cocostest/Testgamea/frameworks/cocos2d-x/external/bullet/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h:112: undefined reference to `btAlignedFreeInternal(void*)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/MyGame] Error 1
make[1]: *** [CMakeFiles/MyGame.dir/all] Error 2
make: *** [all] Error 2
Error running command, return code: 2.
fgolemo added a commit to fgolemo/cocos2d-js that referenced this issue Oct 3, 2015
Only by adding the bullet library I was able to complete compilation on Linux (Linux Mint 17.2). This solves issue 1801:
cocos2d#1801
@wqshare
Copy link

wqshare commented Oct 9, 2015

thanks a lot! i had same problem like you。but i didn't know why it happened,your patch help me solved this problem perfect for me!

@cesarpachon
Copy link

I am having the same issue, with master branch of march 7 2016. does the patch need to be applied by hand yet?

@fgolemo
Copy link
Author

fgolemo commented Mar 8, 2016

Sadly yes, I spoke to the developers and they are doing weird things at the moment. It appears this repository isn't updated directly anymore. So yes, for the moment manually apply the changes from my pull request #1802 (either by hand - it's not so much, or with a diff/patch file).

@fgolemo
Copy link
Author

fgolemo commented Mar 8, 2016

I just checked and they finally added a notice, that this repository is abandoned.
This is the new main repo:
https://github.com/cocos2d/cocos2d-x

And there it seems they also included the bullet library (which is what my pull request did). So I recommend cloning a fresh version of their repo and then creating a new project and trying to compile that. If that should work for you, then copy the files form your game into that new project.

@cesarpachon
Copy link

thank you for your quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants