b1n0m

  • 26 mai 2013
  • Inscrit 2 avr. 2013
  • I have problem compiling cocos2d-x runtime.

    error LNK2019: unresolved external symbol "public: static class spine::CCSkeletonAnimation * __cdecl spine::CCSkeletonAnimation::createWithFile(char const *,char const ,float)"

    It seems that create methods at CCSkeletonAnimation.cpp must be

    CCSkeletonAnimation* CCSkeletonAnimation::createWithFile

    not

    static CCSkeletonAnimation* createWithFile
  • It works fine now, thanks. However, it is a bit inconvenient to call Skeleton_setSkinByName, Skeleton_setSlotsToBindPose and Skeleton_setAttachment from my code. I think that adding those methods for CCSkeleton would be a better solution.

  • Many thanks. Now works great.

    • Modifié
  • I copied goblin's atlases, images and skeletons from libgdx runtime example to cocos2dx example. Now I am getting error when loading skins from goblins skeleton file.
    I would be very appreciated if you check it out.

    Maybe, I am doing something wrong? Maybe I need to set up default skin before loading skeleton?

    • Modifié
    • Modifié

    If I place .atlas and .png files in some subdirectory (for example, my path will look like Resources\character1\character1.atlas and Resources\character1\character1.png), game cannot find texture file, because AtlasPage_create searches .png in Resources folder not in folder that contains .atlas.
    Can you fix that, please?