Hi, I can't get the example running. I have finished lots of projects with SFML, so the problem isn't with SFML. I'm too stupid right now to see what I am doing wrong...!? These are the steps I've taken to run the example code:
-
Created a new VS project
-
Copied the main.cpp example into my project
-
Added the following additional include directories:
C:\Users\admin\Documents\SFML\include
C:\Users\admin\Documents\spine\spine-c\include
C:\Users\admin\Documents\spine\spine-c\src
C:\Users\admin\Documents\spine\spine-sfml\src
-
Added the following additional library directories:
C:\Users\admin\Documents\SFML\lib
-
Linker/Input/Additional Dependencies are:
sfml-graphics-d.lib
sfml-main-d.lib
sfml-system-d.lib
sfml-window-d.lib
-
Copied the SFML binaries into my project's directory like I always do
All the spine stuff shows up correctly in the external dependencies folder and all the underlined errors are gone.
But when I try to compile I'm getting the following error output:
1>
---
Build started: Project: spine-sfml-test, Configuration: Debug Win32
---
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonData_dispose referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAnimationStateData_create referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAnimationStateData_setMixByName referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAnimationState_setAnimationByName referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAnimationState_addAnimationByName referenced in function "void __cdecl raptor(void)" (?raptor@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAnimationState_getCurrent referenced in function "void __cdecl callback(struct spAnimationState *,int,enum spEventType,struct spEvent *,int)" (?callback@@YAXPAUspAnimationState@@HW4spEventType@@PAUspEvent@@H@Z)
1>main.obj : error LNK2019: unresolved external symbol _spAtlas_createFromFile referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spAtlas_dispose referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeleton_updateWorldTransform referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeleton_setToSetupPose referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeleton_setSlotsToSetupPose referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeleton_findSlot referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeleton_setSkinByName referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonBounds_create referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonBounds_dispose referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonBounds_update referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonBounds_containsPoint referenced in function "void __cdecl spineboy(void)" (?spineboy@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonJson_create referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonJson_dispose referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _spSkeletonJson_readSkeletonDataFile referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall spine::SkeletonDrawable::SkeletonDrawable(struct spSkeletonData *,struct spAnimationStateData *)" (??0SkeletonDrawable@spine@@QAE@PAUspSkeletonData@@PAUspAnimationStateData@@@Z) referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall spine::SkeletonDrawable::update(float)" (?update@SkeletonDrawable@spine@@QAEXM@Z) referenced in function "void __cdecl goblins(void)" (?goblins@@YAXXZ)
1>c:\users\admin\documents\visual studio 2012\Projects\spine-sfml-test\Debug\spine-sfml-test.exe : fatal error LNK1120: 22 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I found this thread viewtopic.php?f=7&t=2219 and I think it's a similar problem (or even the same) but I did all the things that were mentioned there and it's still not working.
Could you please help me?