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 - AyaKamiki

Pages: [1]
1
General / Re: Unable to load file : configuration problem
« on: May 05, 2012, 11:10:26 pm »
I've just started with SFML and was having the same problem when I tried to compile the Pong example.
None of the sound, image or font files would load.
It turns out that the working directory wasn't set in my codeblocks project.
To fix this I went to 'Project - Properties - Build Targets' and set 'Execution working dir:' to bin\Release\

Hope that helps.

One other thing, I did find a mistake in the pong code, the path for the cheeseburger font appears to have been copied from another of the examples and points to the 'post-fx' directory instead of the 'pong' one, which threw me off a bit as I had to copy the datas/pong folder to my working directory for the files to be found and it still couldn't find that one file.

Pages: [1]