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

Pages: [1]
1
Audio / Re: cant't play music in Mac os (el capitan)
« on: November 04, 2015, 01:12:11 am »
thank u, but i follow the tutorials step by step, and i also ask my Professor to check my sfml install, and it still goes wrong, i didn't download the Xcode by the way(we use emacs to edit code),could that be the reason?

2
Audio / Re: cant't play music in Mac os (el capitan)
« on: November 03, 2015, 04:16:07 am »
sorry, my screen shot is too large
here is the error
dyld: Library not loaded: @rpath/../Frameworks/vorbis.framework/Versions/A/vorbis
  Referenced from: /usr/local/lib/libsfml-audio.2.3.dylib
  Reason: image not found
Trace/BPT trap: 5

3
Audio / cant't play music in Mac os (el capitan)
« on: November 03, 2015, 04:13:10 am »
Hi,everyone, got some problems with adding music
here is my code
void  Ship::setLocation(float xValue,float yValue)
{
  move(xValue,yValue);

  sf::Music Bgm;
  if(Bgm.openFromFile("Star_Wars.ogg"))
    cout << "error";
  Bgm.play();
 
}

this is part of my assignment, i want to play music while my ship(part of game) is moving, i got no errors when i compiled it, but when i try to run it, i got  a problem that i cant understand(i attach the screenshot)
hope can get some help.

Pages: [1]