1
General / Re: setting up SFML with Linux doesn't work
« on: June 03, 2013, 11:42:12 pm »
OK now it is working thank you!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
johannes@johannes-Kubuntu:~/Downloads/SFML$ g++ -c main.cpp
johannes@johannes-Kubuntu:~/Downloads/SFML$ g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
/usr/bin/ld: warning: libGLEW.so.1.5, needed by /usr/local/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libjpeg.so.62, needed by /usr/local/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniform1fARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_shader_objects'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGetObjectParameterivARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_vertex_shader'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewFramebufferTexture2DEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniformMatrix4fvARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGenFramebuffersEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniform3fARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewRenderbufferStorageEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_fragment_shader'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewActiveTextureARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_start_compress@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewShaderSourceARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `glewInit'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewBindFramebufferEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewFramebufferRenderbufferEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewLinkProgramARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUseProgramObjectARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewBlendFuncSeparateEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGenRenderbuffersEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniform2fARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniform4fARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewCreateProgramObjectARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `glewGetErrorString'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewCompileShaderARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewDeleteRenderbuffersEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewDeleteObjectARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGetUniformLocationARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGetInfoLogARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_EXT_blend_func_separate'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewDeleteFramebuffersEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewCheckFramebufferStatusEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewUniform1iARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_texture_non_power_of_two'
/usr/local/lib/libsfml-graphics.so: undefined reference to `jpeg_stdio_dest@LIBJPEG_6.2'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_ARB_shading_language_100'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewCreateShaderObjectARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewBindRenderbufferEXT'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__GLEW_EXT_framebuffer_object'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewAttachObjectARB'
/usr/local/lib/libsfml-graphics.so: undefined reference to `__glewGetHandleARB'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Pre-compiled libraries are provided in both 32 bits and 64 bits versions. Choosing one or the other should be based on which platform you want to compile for, not which OS you have. Indeed, you can perfectly compile and run a 32 bits program on a 64 bits OS. So you'll most likely want to target 32 bits platforms, to have the largest possible audience. Choose 64 bits packages only if you have good reasons.