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

link error on Linux, Cocos2d-JS ver. 3.12, git #16156

Closed
ad1862 opened this issue Jul 19, 2016 · 4 comments
Closed

link error on Linux, Cocos2d-JS ver. 3.12, git #16156

ad1862 opened this issue Jul 19, 2016 · 4 comments

Comments

@ad1862
Copy link

ad1862 commented Jul 19, 2016

All tests (cpp, lua, js) in cocos folder compiled and run. C++ and Lua versions run without problem, also. But JS on linux had error:

  1. cocos new -l js ...
  2. cocos run -p linux ...
  3. [100%] Linking CXX executable bin/MyGame
    error: undefined reference to..
    error: undefined reference to..

/frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:113: error: undefined reference to 'btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btVector3 const&)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:122: error: undefined reference to 'btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btRigidBody&, btVector3 const&, btVector3 const&)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:169: error: undefined reference to 'btHingeConstraint::btHingeConstraint(btRigidBody&, btTransform const&, bool)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:180: error: undefined reference to 'btHingeConstraint::btHingeConstraint(btRigidBody&, btVector3 const&, btVector3 const&, bool)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:191: error: undefined reference to 'btHingeConstraint::btHingeConstraint(btRigidBody&, btRigidBody&, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&, bool)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:204: error: undefined reference to 'btHingeConstraint::btHingeConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&, bool)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:230: error: undefined reference to 'btHingeConstraint::setFrames(btTransform const&, btTransform const&)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:253: error: undefined reference to 'btHingeConstraint::setMotorTarget(btQuaternion const&, float)' /frameworks/cocos2d-x/cocos/physics3d/CCPhysics3DConstraint.cpp:257: error: undefined reference to 'btHingeConstraint::setMotorTarget(float, float)' ..............

@minggo
Copy link
Contributor

minggo commented Jul 20, 2016

Yep, i can reproduce it.

@ztech
Copy link

ztech commented Jul 27, 2016

#15697 bug since 3.11

@minggo
Copy link
Contributor

minggo commented Jul 27, 2016

@ztech i think it is a duplicated issue.

@minggo
Copy link
Contributor

minggo commented Jul 28, 2016

fixed in #16247

@minggo minggo added this to the 3.13 milestone Jul 28, 2016
@minggo minggo closed this as completed Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants