SFML community forums
Help => Audio => Topic started by: esotericsean on January 30, 2011, 10:43:58 pm
-
I've been working on a game in Code::Blocks on my PC, and now I'm learning how to build games in Xcode on a Mac.
Here's what my code looks like. (http://d.pr/mgHX)
So far, I've gotten everything working except for Music. I can include SFML/Audio.hpp, but as soon as I call sf::Music, I get errors. Does Xcode need some sort of linker or configuration to get this working?
-
Do you link to the sfml-audio library?
-
I'm pretty new to Xcode, so I'm not quite sure how to link it.
It's great how fast you guys are at responding in this forum. I really appreciate it and recommend SFML to everyone now. :)
-
Okay, I actually figured out how to add the framework (easier than anticipated). But it's not loading it properly (http://d.pr/T7hW), I think.
-
Looks like you didn't copy the sndfile framework in /Library/Frameworks.
-
Looks like you didn't copy the sndfile framework in /Library/Frameworks.
Okay, I did that. Still getting errors. (http://d.pr/33ao)
Sorry guys, maybe it's my fault. I'm pretty sure SFML is installed correctly now (I went through everything), but I'll try reinstalling just in case.
-
You're still not linking your app against the sfml-audio framework.
-
You're still not linking your app against the sfml-audio framework.
Ohh, now I understand. It wouldn't let me copy it before, so I had to do it manually. Finally works! Thanks so much :)