I have a simple C++ program that compiles and runs fine using shared SFML libs,
but aborts [with a seg.fault] using static libs:
string const scifi("quick_portal.wav");
if( !sbLaser.loadFromFile(scifi) )
{
cout<<"sfml-audio problem loading file: "<<scifi<<endl;
exit (EXIT_FAILURE);
}
sound.setBuffer(sbLaser);
sound.setVolume(50);
sound.setLoop(false);
sound.play();
sleep(2);
cout<<"...done..."<<endl;
return 0;
I built SFML v2.3.2 from source on my build machine running OpenSUSE 13.2 with no errors.
I have used ldd to ensure you would have a chance to execute the binaries, if you choose.
I sent both the static and shared versions.
I am attaching my build files.
Thanks,
<fastrgv@gmail.com>