SFML community forums

General => General discussions => Topic started by: Yours3lf on April 30, 2011, 10:41:11 pm

Title: undefined reference to XRR*
Post by: Yours3lf on April 30, 2011, 10:41:11 pm
Hi all,

I recently moved from Ubuntu 10.10 to 11.04, and I had to reinstall everything including SFML, and when I tried to compile my project this error came up:

/usr/local/lib/libsfml-window.so.2.0: undefined reference to `XRRConfigCurrentConfiguration'

and a few others like this...

what I did was
-download the 2.0 snapshot
-cmake it
-it needed openal, sndfile and some other libs, so I installed them from synaptics
-then I compiled sfml and installed it
-then tried to compile my project

the project used to work before this...

any ideas?

Best regards,
Yours3!f
Title: undefined reference to XRR*
Post by: Yours3lf on April 30, 2011, 10:55:32 pm
I found the solution!

I just needed to link Xrandr and pthread, it solved it...

but it is really strange since on 10.10 I didn't need to do so...

nevermind it's working.