I've tried the version without glew but, I get this error.
#0 0x7ffff776dfe8 (anonymous namespace)::getInternalContext()() (/usr/local/lib/libsfml-window.so.2.2.0:??)
#1 0x7ffff776e425 sf::priv::GlContext::ensureContext() () (/usr/local/lib/libsfml-window.so.2.2.0:??)
#2 0x451d79 odfaeg::graphic::Shader::getShadingLanguageVersionMajor() () (??:??)
#3 0x4081a7 _GLOBAL__sub_I__ZN6odfaeg7graphic6Shader14CurrentTextureE () (??:??)
#4 0x4d870d __libc_csu_init () (??:??)
#5 ?? 0x00007ffff5f3be55 in __libc_start_main (main=0x44d3d6 <main(int, char**)>, argc=1, argv=0x7fffffffe468, init=0x4d86c0 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe458) (libc-start.c:246)
#6 0x408f29 _start () (??:??)
I think I should try SDL, I'll have to implement some interfaces (similar to the SFML ones) but I think this'll be faster than being blocked with non-sense errors.
SFML 2.1 compiles without any problem.