Trying to update from 3.x to 3.6.
On a Mac
I use a Symbolic Link to point to the cocos2d library.
So, removed and recreated the link, now pointing to 3.6
Build
I get errors:
Undefined symbols for architecture x86_64:
“cocos2d::Node::setRotationQuat(cocos2d::Quaternion const&)”, referenced from:
vtable for DebugLayer in DebugLayer.o
vtable for HudLayer in HudLayer.o
vtable for SpriteLayer in SpriteLayer.o
vtable for PauseDebugLayer in PauseDebugLayer.o
vtable for TouchableSpriteLayer in TouchableSpriteLayer.o
vtable for BaseVisibleObject in BaseVisibleObject.o
vtable for BackgroundLayer in BackgroundLayer.o
…
“cocos2d::Node::updatePhysicsBodyTransform(cocos2d::Mat4 const&, unsigned int, float, float)”, referenced from:
vtable for DebugLayer in DebugLayer.o
vtable for HudLayer in HudLayer.o
vtable for SpriteLayer in SpriteLayer.o
vtable for PauseDebugLayer in PauseDebugLayer.o
vtable for TouchableSpriteLayer in TouchableSpriteLayer.o
vtable for BaseVisibleObject in BaseVisibleObject.o
vtable for BackgroundLayer in BackgroundLayer.o
…
“cocos2d::setDimensions(float, float)”, referenced from:
cocos2d::setWidth(float) in EventEntity.o
“cocos2d::Node::getRotationQuat() const”, referenced from:
vtable for DebugLayer in DebugLayer.o
vtable for HudLayer in HudLayer.o
vtable for SpriteLayer in SpriteLayer.o
vtable for PauseDebugLayer in PauseDebugLayer.o
vtable for TouchableSpriteLayer in TouchableSpriteLayer.o
vtable for BaseVisibleObject in BaseVisibleObject.o
vtable for BackgroundLayer in BackgroundLayer.o
…
“cocos2d::Sprite::getBatchNode() const”, referenced from:
vtable for TouchableSprite in TouchableSprite.o
“non-virtual thunk to cocos2d::Sprite::setTexture(cocos2d::Texture2D*)”, referenced from:
vtable for TouchableSprite in TouchableSprite.o
“non-virtual thunk to cocos2d::Sprite::getTexture() const”, referenced from:
vtable for TouchableSprite in TouchableSprite.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 don’t really have a clue what to do ![]()
Immediate help is appreciated (e.g. “just do his”) but I would also be interested in what steps I shuld take to find out what is wrong when this happens.
thanks
** OK - you guys were too slow so I fixed it myself ![]()
I don’t actually know for sure what the problem was, but one thing I found was that I needed to close XCode completely then re-open before it took the symlink changes into effect.
So at one time, for example, I had it pointing to cocos2d3.4, closed XCode (but not completely closed) then deleted and recreated the symlink to point at cocos2d3.6, but when I opened XCode the files it was showing were still the 3.4 ones!
Anyhoo- all seems to be well with the 3.6 world now!