I'm currently running GNU/Linux Mint and trying to get SFML 2.0 running. I went into the tutorial for Linux for SFML 2.0 and used the sample code. I downloaded and placed the include/SFML into /usr/include. And I also placed SFML/lib into /usr/lib.
I was then able to compile the source from the tutorial successfully with "g++ -c main.cpp"
But when I tried to link it with "g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system"
I got these errors. Any ideas?:
/usr/bin/ld: warning: libGLEW.so.1.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniform1fARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_shader_objects'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGetObjectParameterivARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_vertex_shader'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewFramebufferTexture2DEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniformMatrix4fvARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGenFramebuffersEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniform3fARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewRenderbufferStorageEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_fragment_shader'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewActiveTextureARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewShaderSourceARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `glewInit'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewBindFramebufferEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewFramebufferRenderbufferEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewLinkProgramARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUseProgramObjectARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewBlendFuncSeparateEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGenRenderbuffersEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniform2fARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniform4fARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewCreateProgramObjectARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `glewGetErrorString'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewCompileShaderARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewDeleteObjectARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGetUniformLocationARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGetInfoLogARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_EXT_blend_func_separate'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewDeleteFramebuffersEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewCheckFramebufferStatusEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewUniform1iARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_texture_non_power_of_two'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_shading_language_100'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewCreateShaderObjectARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewBindRenderbufferEXT'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__GLEW_EXT_framebuffer_object'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewAttachObjectARB'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so: undefined reference to `__glewGetHandleARB'
collect2: error: ld returned 1 exit status