When I install sfml 2.1 from the repo (on ubuntu), it works just fine. But when I download the same version
from the download page, it throws out these errors:
||=== Build: Debug in speccer (compiler: GNU GCC Compiler) ===|
||warning: libGLEW.so.1.7, needed by /home/foo/bar/sfml21/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGetHandleARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewActiveTextureARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_ARB_texture_non_power_of_two'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniform1iARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGetObjectParameterivARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniform4fARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewFramebufferTexture2DEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewCreateProgramObjectARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `glewGetErrorString'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGetInfoLogARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewShaderSourceARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewFramebufferRenderbufferEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_ARB_shading_language_100'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewCheckFramebufferStatusEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewCreateShaderObjectARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewRenderbufferStorageEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewBlendFuncSeparateEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewDeleteObjectARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_ARB_shader_objects'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGenRenderbuffersEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewAttachObjectARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewBindRenderbufferEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewDeleteFramebuffersEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_ARB_vertex_shader'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGenFramebuffersEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewGetUniformLocationARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewDeleteRenderbuffersEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUseProgramObjectARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewBindFramebufferEXT'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_ARB_fragment_shader'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewCompileShaderARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_EXT_blend_func_separate'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniform1fARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__GLEW_EXT_framebuffer_object'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniform3fARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewLinkProgramARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `glewInit'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniformMatrix4fvARB'|
/home/foo/bar/sfml21/lib/libsfml-graphics.so||undefined reference to `__glewUniform2fARB'|
||=== Build failed: 39 error(s), 1 warning(s) (0 minute(s), 2 second(s)) ===|
I copied all the glew files into the lib folder, but the problem persists (I found out I don't have libGLEW.so.1.7 on my system btw). How to fix this problem?