Problem using b2djson RUBE loader
Posted: Tue Aug 27, 2013 9:43 pm
Hello,
I am in the process of trying to get my some of my RUBE scenes running using cocos2d-x. I am using a fairly up to date developer version but regardless it still uses Box2D version 2.2.1. The c++ loader uses the b2MotorJoint so I tried just updating the Box2D files to 2.3.0 in the template but I get errors.
Is the problem that the loader uses 32-bit c++ code to read and manipulate the data and it crashes because I am compiling my app in 64-bit?
Here is my compiler error log:
"b2MotorJoint::GetMaxForce() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
"b2MotorJoint::GetMaxTorque() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
"b2MotorJoint::GetAngularOffset() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am in the process of trying to get my some of my RUBE scenes running using cocos2d-x. I am using a fairly up to date developer version but regardless it still uses Box2D version 2.2.1. The c++ loader uses the b2MotorJoint so I tried just updating the Box2D files to 2.3.0 in the template but I get errors.
Is the problem that the loader uses 32-bit c++ code to read and manipulate the data and it crashes because I am compiling my app in 64-bit?
Here is my compiler error log:
"b2MotorJoint::GetMaxForce() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
"b2MotorJoint::GetMaxTorque() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
"b2MotorJoint::GetAngularOffset() const", referenced from:
b2dJson::b2j(b2Joint*) in b2dJson.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)