Hey guys, I'm using cocos2d-x 3.0 with Xcode5.1 and tried to integrate spine runtime to use skinning feature.
First, I deleted all the files in '../cocos/editor-support/spine' folder except 'Android.mk'file, and I copied all the files in 'spine-c/../include', 'spine-c/../src' and 'spine-cocos2dx/3.0/src' to my '.../cocos/editor-support/spine' folder. after that, I changed 'Android.mk'file.
However, when I tried to load my spine asset with "spine::SkeletonAnimation::createWithFile", there is 'Apple Match-O Linker Error' like below.
Ld /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/SSMark2_30\ iOS.app/SSMark2_30\ iOS normal arm64
cd /Users/kangsungku/Work/SSMark2_30/proj.ios_mac
export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos -F/Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos -filelist /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Intermediates/SSMark2_30.build/Debug-iphoneos/SSMark2_30\ iOS.build/Objects-normal/arm64/SSMark2_30\ iOS.LinkFileList -dead_strip -stdlib=libc++ -fobjc-link-runtime -miphoneos-version-min=5.1.1 /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/libbox2d\ iOS.a /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/libchipmunk\ iOS.a /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/libcocos2dx\ iOS.a /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/libcocos2dx-extensions\ iOS.a /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/libCocosDenshion\ iOS.a -framework CoreMotion -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -lz -framework QuartzCore -framework OpenAL -framework AVFoundation -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Intermediates/SSMark2_30.build/Debug-iphoneos/SSMark2_30\ iOS.build/Objects-normal/arm64/SSMark2_30\ iOS_dependency_info.dat -o /Users/kangsungku/Library/Developer/Xcode/DerivedData/SSMark2_30-dhorqfqzcojoeabrwdcdkdxgsxwd/Build/Products/Debug-iphoneos/SSMark2_30\ iOS.app/SSMark2_30\ iOS
Undefined symbols for architecture arm64:
"spine::SkeletonAnimation::createWithFile(char const*, char const*, float)", referenced from:
FBGameLayer::initLayer() in FBGameLayer.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've also tried it with Cocos2d-x 3.1rc0, and found out there is a matrix problem which seems fixed if I change the 'Matrix' to 'kmMat4'. However, even I fixed the matrix problem, I faced same above linker error again.
Since I was just an artist and very noob to the programming, there might be some mistake. So, It would really glad if somebody could let me know what is the problem.
Thanks,