Hi,
I always get error messages like this when using sf::Music with self-compiled SFML2-RC. (It works when using precompiled libraries, but that is no option)
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::play()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|105|undefined reference to `sf::Thread::launch()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::~SoundStream()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::setPlayingOffset(sf::Time)':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|164|undefined reference to `sf::Thread::launch()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::stop()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|121|undefined reference to `sf::Thread::wait()'|
||=== Build finished: 5 errors, 0 warnings ===|
Of course I link sfml-system. Any guess what could be wrong?
I am building it that way:
cmake . -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGLEW_INCLUDE_PATH=../../GLEW/include -DGLEW_LIBRARY=../libGLEW_d.a -DSFML_INSTALL_PKGCONFIG_FILES=OFF
Thanks,
Ethon