Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfml 2.0 in linux  (Read 3264 times)

0 Members and 1 Guest are viewing this topic.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
sfml 2.0 in linux
« on: March 09, 2011, 04:20:51 am »
So I went to test my project on linux today and I am getting some undefined reference errors. I dont see why it would be any different. I create my project files with cmake. It works on windows so shouldnt everything work on linux as well?
Am I missing something?

Quote
WindowImplX11.cpp:(.text+0x1a88): undefined reference to `XDestroyWindow'
WindowImplX11.cpp:(.text+0x1a94): undefined reference to `XFlush'
WindowImplX11.cpp:(.text+0x1abf): undefined reference to `XRRGetScreenInfo'
WindowImplX11.cpp:(.text+0x1ad4): undefined reference to `XRRConfigCurrentConfiguration'
WindowImplX11.cpp:(.text+0x1b09): undefined reference to `XRRSetScreenConfig'
WindowImplX11.cpp:(.text+0x1b11): undefined reference to `XRRFreeScreenConfigInfo'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::~WindowImplX11()':
WindowImplX11.cpp:(.text+0x1b85): undefined reference to `XDestroyIC'
WindowImplX11.cpp:(.text+0x1bab): undefined reference to `XCloseIM'
WindowImplX11.cpp:(.text+0x1bb7): undefined reference to `XCloseDisplay'
WindowImplX11.cpp:(.text+0x1be0): undefined reference to `XFreeCursor'
WindowImplX11.cpp:(.text+0x1bf8): undefined reference to `XDestroyWindow'
WindowImplX11.cpp:(.text+0x1c04): undefined reference to `XFlush'
WindowImplX11.cpp:(.text+0x1c2f): undefined reference to `XRRGetScreenInfo'
WindowImplX11.cpp:(.text+0x1c44): undefined reference to `XRRConfigCurrentConfiguration'
WindowImplX11.cpp:(.text+0x1c79): undefined reference to `XRRSetScreenConfig'
WindowImplX11.cpp:(.text+0x1c81): undefined reference to `XRRFreeScreenConfigInfo'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::~WindowImplX11()':
WindowImplX11.cpp:(.text+0x1cf5): undefined reference to `XDestroyIC'
WindowImplX11.cpp:(.text+0x1d1b): undefined reference to `XCloseIM'
WindowImplX11.cpp:(.text+0x1d27): undefined reference to `XCloseDisplay'
WindowImplX11.cpp:(.text+0x1d48): undefined reference to `XFreeCursor'
WindowImplX11.cpp:(.text+0x1d58): undefined reference to `XDestroyWindow'
WindowImplX11.cpp:(.text+0x1d64): undefined reference to `XFlush'
WindowImplX11.cpp:(.text+0x1d8f): undefined reference to `XRRGetScreenInfo'
WindowImplX11.cpp:(.text+0x1da4): undefined reference to `XRRConfigCurrentConfiguration'
WindowImplX11.cpp:(.text+0x1dd9): undefined reference to `XRRSetScreenConfig'
WindowImplX11.cpp:(.text+0x1de1): undefined reference to `XRRFreeScreenConfigInfo'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::Initialize()':
WindowImplX11.cpp:(.text+0x1e34): undefined reference to `XInternAtom'
WindowImplX11.cpp:(.text+0x1e5a): undefined reference to `XSetWMProtocols'
WindowImplX11.cpp:(.text+0x1e6c): undefined reference to `XOpenIM'
WindowImplX11.cpp:(.text+0x1eb1): undefined reference to `XCreateIC'
WindowImplX11.cpp:(.text+0x1ed0): undefined reference to `XMapWindow'
WindowImplX11.cpp:(.text+0x1edc): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::WindowImplX11(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)':
WindowImplX11.cpp:(.text+0x2015): undefined reference to `XOpenDisplay'
WindowImplX11.cpp:(.text+0x20ce): undefined reference to `XCreateWindow'
WindowImplX11.cpp:(.text+0x21be): undefined reference to `XStoreName'
WindowImplX11.cpp:(.text+0x21da): undefined reference to `XInternAtom'
WindowImplX11.cpp:(.text+0x227a): undefined reference to `XChangeProperty'
WindowImplX11.cpp:(.text+0x22d9): undefined reference to `XGrabPointer'
WindowImplX11.cpp:(.text+0x22ff): undefined reference to `XGrabKeyboard'
WindowImplX11.cpp:(.text+0x2361): undefined reference to `XSetWMNormalHints'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::WindowImplX11(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)':
WindowImplX11.cpp:(.text+0x2495): undefined reference to `XOpenDisplay'
WindowImplX11.cpp:(.text+0x254e): undefined reference to `XCreateWindow'
WindowImplX11.cpp:(.text+0x263e): undefined reference to `XStoreName'
WindowImplX11.cpp:(.text+0x265a): undefined reference to `XInternAtom'
WindowImplX11.cpp:(.text+0x26fa): undefined reference to `XChangeProperty'
WindowImplX11.cpp:(.text+0x2759): undefined reference to `XGrabPointer'
WindowImplX11.cpp:(.text+0x277f): undefined reference to `XGrabKeyboard'
WindowImplX11.cpp:(.text+0x27e1): undefined reference to `XSetWMNormalHints'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::WindowImplX11(unsigned long)':
WindowImplX11.cpp:(.text+0x28fa): undefined reference to `XOpenDisplay'
WindowImplX11.cpp:(.text+0x294a): undefined reference to `XGetWindowAttributes'
WindowImplX11.cpp:(.text+0x29d2): undefined reference to `XSelectInput'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::WindowImplX11(unsigned long)':
WindowImplX11.cpp:(.text+0x2a9a): undefined reference to `XOpenDisplay'
WindowImplX11.cpp:(.text+0x2aea): undefined reference to `XGetWindowAttributes'
WindowImplX11.cpp:(.text+0x2b72): undefined reference to `XSelectInput'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::Show(bool)':
WindowImplX11.cpp:(.text+0x1625): undefined reference to `XFlush'
WindowImplX11.cpp:(.text+0x164c): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::SetTitle(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
WindowImplX11.cpp:(.text+0x1665): undefined reference to `XStoreName'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::SetSize(unsigned int, unsigned int)':
WindowImplX11.cpp:(.text+0x1696): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::SetPosition(int, int)':
WindowImplX11.cpp:(.text+0x16c6): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::SetCursorPosition(unsigned int, unsigned int)':
WindowImplX11.cpp:(.text+0x1713): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::ShowMouseCursor(bool)':
WindowImplX11.cpp:(.text+0x174e): undefined reference to `XFlush'
lib/libsfml-window-s.a(WindowImplX11.cpp.o): In function `sf::priv::WindowImplX11::Initialize()':
WindowImplX11.cpp:(.text+0x1ef8): undefined reference to `XFlush'
lib/libsfml-window-s.a(GlContext.cpp.o): In function `sf::priv::GlContext::New(sf::priv::WindowImpl const*, unsigned int, sf::ContextSettings const&)':
GlContext.cpp:(.text+0x151): undefined reference to `glEnable'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::EnableVerticalSync(bool)':
GlxContext.cpp:(.text+0x9): undefined reference to `glXGetProcAddress'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::MakeCurrent()':
GlxContext.cpp:(.text+0x5e): undefined reference to `glXGetCurrentContext'
GlxContext.cpp:(.text+0x7c): undefined reference to `glXMakeCurrent'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::~GlxContext()':
GlxContext.cpp:(.text+0xa7): undefined reference to `glXGetCurrentContext'
GlxContext.cpp:(.text+0xb9): undefined reference to `glXDestroyContext'
GlxContext.cpp:(.text+0xe5): undefined reference to `XDestroyWindow'
GlxContext.cpp:(.text+0xee): undefined reference to `XFlush'
GlxContext.cpp:(.text+0xfd): undefined reference to `XCloseDisplay'
GlxContext.cpp:(.text+0x119): undefined reference to `glXMakeCurrent'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::~GlxContext()':
GlxContext.cpp:(.text+0x157): undefined reference to `glXGetCurrentContext'
GlxContext.cpp:(.text+0x169): undefined reference to `glXDestroyContext'
GlxContext.cpp:(.text+0x195): undefined reference to `XDestroyWindow'
GlxContext.cpp:(.text+0x19e): undefined reference to `XFlush'
GlxContext.cpp:(.text+0x1ad): undefined reference to `XCloseDisplay'
GlxContext.cpp:(.text+0x1c9): undefined reference to `glXMakeCurrent'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::~GlxContext()':
GlxContext.cpp:(.text+0x207): undefined reference to `glXGetCurrentContext'
GlxContext.cpp:(.text+0x219): undefined reference to `glXDestroyContext'
GlxContext.cpp:(.text+0x24d): undefined reference to `XDestroyWindow'
GlxContext.cpp:(.text+0x256): undefined reference to `XFlush'
GlxContext.cpp:(.text+0x265): undefined reference to `XCloseDisplay'
GlxContext.cpp:(.text+0x279): undefined reference to `glXMakeCurrent'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::CreateContext(sf::priv::GlxContext*, unsigned int, sf::ContextSettings const&)':
GlxContext.cpp:(.text+0x2e0): undefined reference to `XGetWindowAttributes'
GlxContext.cpp:(.text+0x2fd): undefined reference to `XVisualIDFromVisual'
GlxContext.cpp:(.text+0x33b): undefined reference to `XGetVisualInfo'
GlxContext.cpp:(.text+0x431): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x44a): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x463): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x47c): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x495): undefined reference to `glXGetConfig'
lib/libsfml-window-s.a(GlxContext.cpp.o):GlxContext.cpp:(.text+0x4ae): more undefined references to `glXGetConfig' follow
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::CreateContext(sf::priv::GlxContext*, unsigned int, sf::ContextSettings const&)':
GlxContext.cpp:(.text+0x536): undefined reference to `XFree'
GlxContext.cpp:(.text+0x60c): undefined reference to `glXGetProcAddress'
GlxContext.cpp:(.text+0x633): undefined reference to `glXChooseFBConfig'
GlxContext.cpp:(.text+0x652): undefined reference to `XFree'
GlxContext.cpp:(.text+0x676): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x68f): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x6a8): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x6c1): undefined reference to `glXGetConfig'
GlxContext.cpp:(.text+0x711): undefined reference to `XCreateColormap'
GlxContext.cpp:(.text+0x721): undefined reference to `XSetWindowColormap'
GlxContext.cpp:(.text+0x72b): undefined reference to `XFree'
GlxContext.cpp:(.text+0x7e5): undefined reference to `glXCreateContext'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::GlxContext(sf::priv::GlxContext*)':
GlxContext.cpp:(.text+0x9ff): undefined reference to `XOpenDisplay'
GlxContext.cpp:(.text+0xa62): undefined reference to `XCreateWindow'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::GlxContext(sf::priv::GlxContext*)':
GlxContext.cpp:(.text+0xb0f): undefined reference to `XOpenDisplay'
GlxContext.cpp:(.text+0xb72): undefined reference to `XCreateWindow'
lib/libsfml-window-s.a(GlxContext.cpp.o): In function `sf::priv::GlxContext::Display()':
GlxContext.cpp:(.text+0x45): undefined reference to `glXSwapBuffers'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::GetPlayingOffset() const':
Sound.cpp:(.text+0x8a): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::GetLoop() const':
Sound.cpp:(.text+0xb2): undefined reference to `alGetSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::~Sound()':
Sound.cpp:(.text+0x164): undefined reference to `alSourceStop'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::~Sound()':
Sound.cpp:(.text+0x1ec): undefined reference to `alSourceStop'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::~Sound()':
Sound.cpp:(.text+0x26c): undefined reference to `alSourceStop'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::ResetBuffer()':
Sound.cpp:(.text+0x2d8): undefined reference to `alSourceStop'
Sound.cpp:(.text+0x2e7): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::SetBuffer(sf::SoundBuffer const&)':
Sound.cpp:(.text+0x33c): undefined reference to `alSourceStop'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::operator=(sf::Sound const&)':
Sound.cpp:(.text+0x3c7): undefined reference to `alSourceStop'
Sound.cpp:(.text+0x410): undefined reference to `alGetSourcei'
Sound.cpp:(.text+0x428): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Sound(sf::Sound const&)':
Sound.cpp:(.text+0x50f): undefined reference to `alGetSourcei'
Sound.cpp:(.text+0x527): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Sound(sf::Sound const&)':
Sound.cpp:(.text+0x58f): undefined reference to `alGetSourcei'
Sound.cpp:(.text+0x5a7): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Sound(sf::SoundBuffer const&, bool, float, float, sf::Vector3<float> const&)':
Sound.cpp:(.text+0x634): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Sound(sf::SoundBuffer const&, bool, float, float, sf::Vector3<float> const&)':
Sound.cpp:(.text+0x704): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::SetLoop(bool)':
Sound.cpp:(.text+0x4d): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::SetPlayingOffset(float)':
Sound.cpp:(.text+0xd9): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Stop()':
Sound.cpp:(.text+0xe4): undefined reference to `alSourceStop'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Pause()':
Sound.cpp:(.text+0xf4): undefined reference to `alSourcePause'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::Play()':
Sound.cpp:(.text+0x104): undefined reference to `alSourcePlay'
lib/libsfml-audio-s.a(Sound.cpp.o): In function `sf::Sound::SetBuffer(sf::SoundBuffer const&)':
Sound.cpp:(.text+0x3a1): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::GetChannelsCount() const':
SoundBuffer.cpp:(.text+0x82): undefined reference to `alGetBufferi'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::GetSampleRate() const':
SoundBuffer.cpp:(.text+0xa2): undefined reference to `alGetBufferi'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::SaveToFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
SoundBuffer.cpp:(.text+0xec): undefined reference to `alGetBufferi'
SoundBuffer.cpp:(.text+0x101): undefined reference to `alGetBufferi'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::~SoundBuffer()':
SoundBuffer.cpp:(.text+0x325): undefined reference to `alDeleteBuffers'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::SoundBuffer()':
SoundBuffer.cpp:(.text+0x563): undefined reference to `alGenBuffers'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::SoundBuffer()':
SoundBuffer.cpp:(.text+0x653): undefined reference to `alGenBuffers'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::~SoundBuffer()':
SoundBuffer.cpp:(.text+0x6f5): undefined reference to `alDeleteBuffers'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::Update(unsigned int, unsigned int)':
SoundBuffer.cpp:(.text+0x7ce): undefined reference to `alBufferData'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::SoundBuffer(sf::SoundBuffer const&)':
SoundBuffer.cpp:(.text+0xdd3): undefined reference to `alGenBuffers'
SoundBuffer.cpp:(.text+0xde8): undefined reference to `alGetBufferi'
SoundBuffer.cpp:(.text+0xdfd): undefined reference to `alGetBufferi'
lib/libsfml-audio-s.a(SoundBuffer.cpp.o): In function `sf::SoundBuffer::SoundBuffer(sf::SoundBuffer const&)':
SoundBuffer.cpp:(.text+0x1113): undefined reference to `alGenBuffers'
SoundBuffer.cpp:(.text+0x1128): undefined reference to `alGetBufferi'
SoundBuffer.cpp:(.text+0x113d): undefined reference to `alGetBufferi'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::Write(short const*, unsigned long)':
SoundFile.cpp:(.text+0x255): undefined reference to `sf_write_short'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
SoundFile.cpp:(.text+0x305): undefined reference to `sf_close'
SoundFile.cpp:(.text+0x316): undefined reference to `sf_open'
SoundFile.cpp:(.text+0x34b): undefined reference to `sf_strerror'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::OpenRead(void const*, unsigned long)':
SoundFile.cpp:(.text+0x3c5): undefined reference to `sf_close'
SoundFile.cpp:(.text+0x413): undefined reference to `sf_open_virtual'
SoundFile.cpp:(.text+0x453): undefined reference to `sf_strerror'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::GetFormatFromFilename(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
SoundFile.cpp:(.text+0x67f): undefined reference to `pthread_cancel'
SoundFile.cpp:(.text+0x6ea): undefined reference to `pthread_cancel'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)':
SoundFile.cpp:(.text+0xa6d): undefined reference to `sf_close'
SoundFile.cpp:(.text+0xaad): undefined reference to `sf_open'
SoundFile.cpp:(.text+0xb33): undefined reference to `sf_strerror'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::Seek(float)':
SoundFile.cpp:(.text+0x1df): undefined reference to `sf_seek'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::Read(short*, unsigned long)':
SoundFile.cpp:(.text+0x2a1): undefined reference to `sf_read_short'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::~SoundFile()':
SoundFile.cpp:(.text+0x2b9): undefined reference to `sf_close'
lib/libsfml-audio-s.a(SoundFile.cpp.o): In function `sf::priv::SoundFile::~SoundFile()':
SoundFile.cpp:(.text+0x2d9): undefined reference to `sf_close'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetStatus() const':
SoundSource.cpp:(.text+0x42): undefined reference to `alGetSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::IsRelativeToListener() const':
SoundSource.cpp:(.text+0x82): undefined reference to `alGetSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetAttenuation() const':
SoundSource.cpp:(.text+0xb2): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetMinDistance() const':
SoundSource.cpp:(.text+0xe2): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetVolume() const':
SoundSource.cpp:(.text+0x112): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetPitch() const':
SoundSource.cpp:(.text+0x142): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::GetPosition() const':
SoundSource.cpp:(.text+0x188): undefined reference to `alGetSource3f'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::~SoundSource()':
SoundSource.cpp:(.text+0x246): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::~SoundSource()':
SoundSource.cpp:(.text+0x276): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::~SoundSource()':
SoundSource.cpp:(.text+0x2a6): undefined reference to `alSourcei'
SoundSource.cpp:(.text+0x2b4): undefined reference to `alDeleteSources'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource()':
SoundSource.cpp:(.text+0x2ea): undefined reference to `alGenSources'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource()':
SoundSource.cpp:(.text+0x31a): undefined reference to `alGenSources'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource(sf::SoundSource const&)':
SoundSource.cpp:(.text+0x379): undefined reference to `alGenSources'
SoundSource.cpp:(.text+0x388): undefined reference to `alSourcei'
SoundSource.cpp:(.text+0x398): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x3ab): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x3bb): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x3de): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x405): undefined reference to `alGetSource3f'
SoundSource.cpp:(.text+0x423): undefined reference to `alSource3f'
SoundSource.cpp:(.text+0x435): undefined reference to `alGetSourcei'
SoundSource.cpp:(.text+0x44d): undefined reference to `alSourcei'
SoundSource.cpp:(.text+0x45d): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x470): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x480): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x493): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource(sf::SoundSource const&)':
SoundSource.cpp:(.text+0x4c9): undefined reference to `alGenSources'
SoundSource.cpp:(.text+0x4d8): undefined reference to `alSourcei'
SoundSource.cpp:(.text+0x4e8): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x4fb): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x50b): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x52e): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x555): undefined reference to `alGetSource3f'
SoundSource.cpp:(.text+0x573): undefined reference to `alSource3f'
SoundSource.cpp:(.text+0x585): undefined reference to `alGetSourcei'
SoundSource.cpp:(.text+0x59d): undefined reference to `alSourcei'
SoundSource.cpp:(.text+0x5ad): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x5c0): undefined reference to `alSourcef'
SoundSource.cpp:(.text+0x5d0): undefined reference to `alGetSourcef'
SoundSource.cpp:(.text+0x5e3): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetAttenuation(float)':
SoundSource.cpp:(.text+0x1b9): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetMinDistance(float)':
SoundSource.cpp:(.text+0x1c9): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetVolume(float)':
SoundSource.cpp:(.text+0x1e1): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetPitch(float)':
SoundSource.cpp:(.text+0x1f9): undefined reference to `alSourcef'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetRelativeToListener(bool)':
SoundSource.cpp:(.text+0x20d): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetPosition(float, float, float)':
SoundSource.cpp:(.text+0x229): undefined reference to `alSource3f'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::~SoundSource()':
SoundSource.cpp:(.text+0x255): undefined reference to `alDeleteSources'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::~SoundSource()':
SoundSource.cpp:(.text+0x285): undefined reference to `alDeleteSources'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource()':
SoundSource.cpp:(.text+0x2fa): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SoundSource()':
SoundSource.cpp:(.text+0x32a): undefined reference to `alSourcei'
lib/libsfml-audio-s.a(SoundSource.cpp.o): In function `sf::SoundSource::SetPosition(sf::Vector3<float> const&)':
SoundSource.cpp:(.text+0x347): undefined reference to `alSource3f'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::ClearQueue()':
SoundStream.cpp:(.text+0x89): undefined reference to `alGetSourcei'
SoundStream.cpp:(.text+0xaf): undefined reference to `alSourceUnqueueBuffers'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::FillAndPushBuffer(unsigned int)':
SoundStream.cpp:(.text+0x167): undefined reference to `alBufferData'
SoundStream.cpp:(.text+0x179): undefined reference to `alSourceQueueBuffers'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::GetPlayingOffset() const':
SoundStream.cpp:(.text+0x22e): undefined reference to `alGetSourcef'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::Stream()':
SoundStream.cpp:(.text+0x593): undefined reference to `alGenBuffers'
SoundStream.cpp:(.text+0x5e4): undefined reference to `alSourcePlay'
SoundStream.cpp:(.text+0x61f): undefined reference to `alGetSourcei'
SoundStream.cpp:(.text+0x647): undefined reference to `alSourceUnqueueBuffers'
SoundStream.cpp:(.text+0x6ba): undefined reference to `alSourceStop'
SoundStream.cpp:(.text+0x6ca): undefined reference to `alGetSourcei'
SoundStream.cpp:(.text+0x6ef): undefined reference to `alSourceUnqueueBuffers'
SoundStream.cpp:(.text+0x704): undefined reference to `alSourcei'
SoundStream.cpp:(.text+0x713): undefined reference to `alDeleteBuffers'
SoundStream.cpp:(.text+0x749): undefined reference to `alGetBufferi'
SoundStream.cpp:(.text+0x75a): undefined reference to `alGetBufferi'
SoundStream.cpp:(.text+0x7a2): undefined reference to `alSourceUnqueueBuffers'
SoundStream.cpp:(.text+0x7f9): undefined reference to `alGetBufferi'
SoundStream.cpp:(.text+0x80a): undefined reference to `alGetBufferi'
SoundStream.cpp:(.text+0x831): undefined reference to `alSourcePlay'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::Pause()':
SoundStream.cpp:(.text+0x274): undefined reference to `alSourcePause'
lib/libsfml-audio-s.a(SoundStream.cpp.o): In function `sf::SoundStream::Play()':
SoundStream.cpp:(.text+0x972): undefined reference to `alSourcePlay'
lib/libsfml-audio-s.a(ALCheck.cpp.o): In function `sf::priv::ALCheckError(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)':
ALCheck.cpp:(.text+0xc4): undefined reference to `alGetError'
ALCheck.cpp:(.text+0x3d9): undefined reference to `pthread_cancel'
ALCheck.cpp:(.text+0x40b): undefined reference to `pthread_cancel'
ALCheck.cpp:(.text+0x434): undefined reference to `pthread_cancel'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::~AudioDevice()':
AudioDevice.cpp:(.text+0xc7): undefined reference to `alcMakeContextCurrent'
AudioDevice.cpp:(.text+0xd8): undefined reference to `alcDestroyContext'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::~AudioDevice()':
AudioDevice.cpp:(.text+0x107): undefined reference to `alcMakeContextCurrent'
AudioDevice.cpp:(.text+0x118): undefined reference to `alcDestroyContext'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::IsExtensionSupported(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
AudioDevice.cpp:(.text+0x168): undefined reference to `alIsExtensionPresent'
AudioDevice.cpp:(.text+0x1d3): undefined reference to `alcIsExtensionPresent'
AudioDevice.cpp:(.text+0x1df): undefined reference to `pthread_cancel'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::AudioDevice()':
AudioDevice.cpp:(.text+0x239): undefined reference to `alcOpenDevice'
AudioDevice.cpp:(.text+0x24f): undefined reference to `alcCreateContext'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::AudioDevice()':
AudioDevice.cpp:(.text+0x309): undefined reference to `alcOpenDevice'
AudioDevice.cpp:(.text+0x31f): undefined reference to `alcCreateContext'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::GetFormatFromChannelsCount(unsigned int)':
AudioDevice.cpp:(.text+0x7f): undefined reference to `alGetEnumValue'
AudioDevice.cpp:(.text+0x8f): undefined reference to `alGetEnumValue'
AudioDevice.cpp:(.text+0x9f): undefined reference to `alGetEnumValue'
AudioDevice.cpp:(.text+0xaf): undefined reference to `alGetEnumValue'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::~AudioDevice()':
AudioDevice.cpp:(.text+0xed): undefined reference to `alcCloseDevice'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::~AudioDevice()':
AudioDevice.cpp:(.text+0x12d): undefined reference to `alcCloseDevice'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::AudioDevice()':
AudioDevice.cpp:(.text+0x269): undefined reference to `alcMakeContextCurrent'
lib/libsfml-audio-s.a(AudioDevice.cpp.o): In function `sf::priv::AudioDevice::AudioDevice()':
AudioDevice.cpp:(.text+0x339): undefined reference to `alcMakeContextCurrent'
lib/libsfml-system-s.a(ThreadImpl.cpp.o): In function `sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)':
ThreadImpl.cpp:(.text+0xa3): undefined reference to `pthread_create'
lib/libsfml-system-s.a(ThreadImpl.cpp.o): In function `sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)':
ThreadImpl.cpp:(.text+0x143): undefined reference to `pthread_create'
lib/libsfml-system-s.a(ThreadImpl.cpp.o): In function `sf::priv::ThreadImpl::Terminate()':
ThreadImpl.cpp:(.text+0x64): undefined reference to `pthread_cancel'
lib/libsfml-system-s.a(ThreadImpl.cpp.o): In function `sf::priv::ThreadImpl::Wait()':
ThreadImpl.cpp:(.text+0x86): undefined reference to `pthread_join'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::GetValue() const':
ThreadLocalImpl.cpp:(.text+0x3): undefined reference to `pthread_getspecific'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::SetValue(void*)':
ThreadLocalImpl.cpp:(.text+0x13): undefined reference to `pthread_setspecific'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::~ThreadLocalImpl()':
ThreadLocalImpl.cpp:(.text+0x23): undefined reference to `pthread_key_delete'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::~ThreadLocalImpl()':
ThreadLocalImpl.cpp:(.text+0x33): undefined reference to `pthread_key_delete'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::ThreadLocalImpl()':
ThreadLocalImpl.cpp:(.text+0x43): undefined reference to `pthread_key_create'
lib/libsfml-system-s.a(ThreadLocalImpl.cpp.o): In function `sf::priv::ThreadLocalImpl::ThreadLocalImpl()':
ThreadLocalImpl.cpp:(.text+0x53): undefined reference to `pthread_key_create'
collect2: ld returned 1 exit status
make[2]: *** [AdventureGun] Error 1
make[2]: Leaving directory `/home/jesse/Desktop/EngineRefactorSFML2/build'
make[1]: *** [CMakeFiles/AdventureGun.dir/all] Error 2
make[1]: Leaving directory `/home/jesse/Desktop/EngineRefactorSFML2/build'
make: *** [all] Error 2

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sfml 2.0 in linux
« Reply #1 on: March 09, 2011, 06:08:22 am »
Don't use static libraries on Linux. Use the dynamic libraries.
I use the latest build of SFML2

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
sfml 2.0 in linux
« Reply #2 on: March 09, 2011, 07:15:40 am »
worked like a charm!
thanks =)