Yeah I was a little quick on the trigger when I said I got it working. I got rid of most of the errors, but after sifting through a bunch, more came about out of nowehere.
The problem seems to be that having
spine-c/spine-c/src/spine
as the only thing in the included directories list means that nothing can use
#include <spine/spine-sfml.h>
. I can use " " instead, but this would require me going through all of spines files and finding the correct path to where spine-sfml.h is copied locally.
So let me bring up the readme and go through and ask for details to make sure I can understand this right:
3. Add the sources from spine-c/spine-c/src/spine and spine-sfml/src/spine to your project
- So, is the entirety of the contents of the zip from here
GitHub - EsotericSoftware/spine-runtimes: 2D skeletal animation runtimes for Spine. copied to somewhere in a project, or just the files in the src/spine folders?
4. Add the folder spine-c/spine-c/include to your header search path. Note that includes are specified as #inclue <spine/file.h>, so the spine directory cannot be omitted when copying the source files.
- Again, is this a link to somewhere inside the project or to somewhere external? Is this the only include? As I cannot do
#include <spine/spine-sfml.h>
as that isn't the include file
Thanks again!
---
More info, after diving into the files, spine-sfml requires the following
#define SPINE_SHORT_NAMES
#include <spine/spine.h>
#include <spine/extension.h>
#include <SFML/Graphics/Vertex.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/RenderStates.hpp>
however, I am also trying to use
#include <spine/spine-sfml.h>
. With both things requiring
spine
in the beginning, doesn't this mean there's going to be conflicts when trying to include things?
I know you said c++ is a bit nasty, and it is, I honestly don't know if I'm just being stupid or whether the instructions are as unclear to follow as I've found them. Not trying to be an annoyance or anything, but maybe a bit of elaboration would help many people trying to get started with the spine runtimes
