Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rorlick

Pages: [1]
1
SFML projects / Re: Spine: 2D skeletal animation for games
« on: June 09, 2013, 02:09:43 am »
Hey I'm just starting to include spine in my project, and I'm having what seems to be a pretty basic issue.  This is my first time using git so it could be chalked up to that.  I cloned the repositories from git, but the spine-sfml.cpp calls this include:

#include <spine/extension.h>

which isn't under the sfml runtime folder.  Should I use the includes under spine-c instead?  I tried doing this and it gave me a bunch of errors, although that could have been something with Xcode.

Edit: Ok, so I did get it to run at the least(by adding the .c and .h files from spine-c). Now however, I get this error:

Thread 1: EXC_BAD_ACCESS(code=1, address 0x38)

On this line:

Animation* SkeletonData_findAnimation (const SkeletonData* self, const char* animationName) {
   int i;
   for (i = 0; i < self->animationCount; ++i)
      if (strcmp(self->animations->name, animationName) == 0) return self->animations;

   return 0;
}

I believe this is something to do with the pointer getting released before it is called, is that correct?

2
this line is perfectly fine.

did you make sure you removed ALL previous version of SFML 2 RC ? I'm pretty sure one version is still there.. If you have installed the framework version, search for SFML.framework. If you installed the dylib version, search for a "SFML" directory in /usr/local/include. I recommend you search for both framework and dylib. If you still can't find the file, use the command I wrote above to find all "SFML" files.

And we're good! There was some files in /usr/include, im just not sure how they got there.  I deleted them now and got a new project working, so I should be all set?(just making sure I don't need to replace those includes)

Thanks for the Help
Robert

3
Headers can be in /usr/local/include, or in a framework in /Library/Frameworks, or any similar directories. If you didn't find them, you can still use `find / -name SFML` to search your whole computer for them.

I installed SFML by copying the folders to the Frameworks file so I assume that was it.  I just reinstalled and got the same error, is it possible it is just a problem with the code in the default template?  The line in question is:

// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

Is there a simple fix I could do on this line?

4
There's no such function in 2.0. The constructor takes a sf::String for the title. So you probably didn't remove the header of the RC version from your computer.

Ok that makes sense.  I tried to delete everything I was replacing when I installed it, where would the header be?

5
Ok so the one error is gone after the update but now I have:

Undefined symbols for architecture x86_64:
  "sf::RenderWindow::RenderWindow(sf::VideoMode, std::string const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I don't even know where to start on these, damn

6
Ok well I reinstalled everything, and it is doing the same thing but now its telling me this(may have been saying it before and I missed it):
"
warning: The specified SDK “Current OS X” does not appear to have all of the necessary headers installed.  Update your project to use a built-in SDK (“Latest OS X” is recommended) or install the system headers (included with the “Command Line Tools” package) from the “Downloads” pane in the Xcode preferences."

I'm following those instructions now and I'll report back, just not sure why it wouldnt have done this when I was using the RC.

7
did everything in the install step(using the downloads, did not build it myself.  without changing anything, when I run it ResourcePath.hpp gives me

"Lexical or Preprocessor Issue 'string' file not found

Pages: [1]
anything