EsotericSoftware / spine-runtimes

2D skeletal animation runtimes for Spine.
http://esotericsoftware.com/
Other
4.43k stars 2.92k forks source link

spine-cocos2dx-example compile error #2643

Closed daneric closed 1 month ago

daneric commented 2 months ago

image

I've discovered that there are two identical header files named SkeletonRenderer.h, located in different directories. One is in the spine-cocos2dx\spine-cocos2dx\src\spine folder, and the other is in the spine-cpp\spine-cpp\include\spine folder. Both header files declare a SkeletonRenderer class, but their declarations are entirely different. This discrepancy has led to a significant issue in the spine-cocos2dx project where the subclass SkeletonAnimation of SkeletonRenderer mistakenly references the wrong base class, resulting in numerous compilation errors. Additionally, some of the compilation errors arise from the cocos2dx code itself. However, the project compiled successfully before the spine-runtimes were included. I also tried compiling the spine-cocos2dx-example project and encountered the exact same compilation errors.

Can anyone assist in resolving this issue?

badlogic commented 1 month ago

Cheers, this is now fixed in the 4.2 branch. The SkeletonRenderer class of spine-cocos2dx was renamed to SkeletonRendererCocos2dX.