I had created a new Cocos2d-x project that compiles and runs fine. I then removed the existing Spine source files and replaced them with the files from the directory mentioned in the setup instructions (namely - spine-c/include, spine-c/src, and spine-cocos2dx/3/src). I have also updated my header search paths. Upon adding one line to my Cocos2d-x project :
spine::SkeletonAnimation* player = spine::SkeletonAnimation::createWithFile("skeleton.json", "skeleton.atlas");
I seem to get this error :
Undefined symbols for architecture arm64:
"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 arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am really unsure what I am doing wrong. I have already referenced - http://esotericsoftware.com/forum/Cocos2d-x-3-0-Undefined-symbols-error-2690 . And I do not quite understand how to check if my spine source files are being compiled and linked properly. Any advice would be greatly appreciated!