I grabbed revision 1783 of the sfml2 from svn, cmake generated a codeblocks/makefile and tried to build it. I had to install libfreetype6-dev, libjpeg8-dev, libopenal-dev, libglew1-5dev and libsndfile1-dev for cmake to generate code::blocks files and libxrandr-dev for it to build(#include <X11/extensions/Xrandr.h> in src/SFML/Window/Linux/VideoModeImpl.cpp). This was easy to solve, but it would be nice to have a list of dependencies(just a hint).
Both shared and not-shared built fine, but I cant get the examples to "run". Static won't build and shared is missing dependencies:
First error when build "window" sample:
../../lib/libsfml-window-s.a(VideoModeImpl.cpp.o): In function `sf::priv::VideoModeImpl::GetDesktopMode()':
VideoModeImpl.cpp:(.text+0xdb): undefined reference to `XRRGetScreenInfo'
VideoModeImpl.cpp:(.text+0xf4): undefined reference to `XRRConfigCurrentConfiguration'
VideoModeImpl.cpp:(.text+0x107): undefined reference to `XRRConfigSizes'
VideoModeImpl.cpp:(.text+0x15d): undefined reference to `XRRFreeScreenConfigInfo'
I get FT_ (freetype if I'm not misstaken) errors from other samples. This looks to me that it's missing to link to some libraries so a wild guess is either that the cmake configuration is bad, something is badly installed on my part or that static is not supported.
The dynamic version builds but won't start:
error while loading shared librarues: libsfml-window.so.2.0: cannot open shared object file: No such file or directory
I guess that the cause is the same, but the dynamic version fails to load since it's missing some dependencies. So anyone got any ideas?
edit: unless there has been a name change in the build I got and the 1783 version of the supplied FindSFML.cmake, it is unable to find sfml-main.lib (because of the missing -s) when requesting the static library.