Hello everybody! I am in panic. Help me, please!
Many days I am trying to execute spine runtime v2.1 under cocos2d-x v3.x without any success.
Old Spine runtime library v1.1, which is included into latest cocos2d-x v3.2 works fine. But I don't want to use it, because there are a lot of differences
If somebody knows the any way to make it correct in Xcode, please write me.
I have to note, that for no questions I do all accordingly official instructions.
Finally, I set up cocos2d-x latest version 3.2 for Xcode 5.1. In strong way as instruction says.
After that I got spine-runtimes-master directory from github.
After that I tried two ways to run example, which are described in README.md
First way (with copying cocos-files into spine-runtime-master) causes linker error in an spine example
Ld /Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Products/Debug-iphonesimulator/Spine\ iOS.app/Spine\ iOS normal x86_64
cd /Users/Jaguar/Desktop/spine-runtimes-master/spine-cocos2dx/3.2/example/proj.ios_mac
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Products/Debug-iphonesimulator -F/Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Products/Debug-iphonesimulator -filelist /Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Intermediates/Spine.build/Debug-iphonesimulator/Spine\ iOS.build/Objects-normal/x86_64/Spine\ iOS.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -stdlib=libc++ -fobjc-link-runtime -mios-simulator-version-min=5.0 -lbox2d\ iOS -lchipmunk\ iOS -lcocos2d\ iOS -lcocosbuilder\ iOS -lcocosdenshion\ iOS -lcocostudio\ iOS -lextension\ iOS -lnetwork\ iOS -lui\ iOS -framework CoreMotion -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -lz -framework QuartzCore -framework OpenAL -framework AVFoundation -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Intermediates/Spine.build/Debug-iphonesimulator/Spine\ iOS.build/Objects-normal/x86_64/Spine\ iOS_dependency_info.dat -o /Users/Jaguar/Library/Developer/Xcode/DerivedData/Spine-ekwytsgvczcmudbsgvsbsonxqltg/Build/Products/Debug-iphonesimulator/Spine\ iOS.app/Spine\ iOS
ld: library not found for -lbox2d iOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Second way (with replacement spine runtime files v1.1 in editor-support/spine/ in my own project of cocos2d-x) causes error when I write command
SkeletonAnimation* skeletonNode = SkeletonAnimation::createWithFile("Horse.json", "Horse.atlas", 0.6f);
:
Ld /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/SJ2\ iOS.app/SJ2\ iOS normal x86_64
cd /Users/Jaguar/Desktop/SJ2/proj.ios_mac
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator -F/Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator -filelist /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Intermediates/SJ2.build/Debug-iphonesimulator/SJ2\ iOS.build/Objects-normal/x86_64/SJ2\ iOS.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/libbox2d\ iOS.a /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/libchipmunk\ iOS.a /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/libcocos2dx\ iOS.a /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/libcocos2dx-extensions\ iOS.a /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/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/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Intermediates/SJ2.build/Debug-iphonesimulator/SJ2\ iOS.build/Objects-normal/x86_64/SJ2\ iOS_dependency_info.dat -o /Users/Jaguar/Library/Developer/Xcode/DerivedData/SJ2-amvnkehuhnxdnqcfrxhkbvqfdkvn/Build/Products/Debug-iphonesimulator/SJ2\ iOS.app/SJ2\ iOS
Undefined symbols for architecture x86_64:
"spine::SkeletonAnimation::createWithFile(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, float)", referenced from:
HelloWorld::init() in HelloWorldScene.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)