Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - japanskcykel

Pages: [1]
1
Graphics / Can't link graphics module of SFML on Linux
« on: January 26, 2014, 09:36:01 pm »
EDIT3: Solved! I compiled SFML from source and everything is working now!

Hello! I have been trying to get the awesome SFML 2.1 framework to work on my Linux (CrunchBang, built on Debian stable) machine, but no luck. When compiling the following way:
Quote
g++ -std=c++11 -Wall -Wextra -L../libraries/SFML-2.1/lib -Wl,-rpath=../libraries/SFML-2.1/lib -lsfml-system -lsfml-window -lGLEW -lsfml-graphics -o LD29 LD29.o

I get:
Quote
/usr/bin/ld: warning: libGLEW.so.1.5, needed by ../libraries/SFML-2.1/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
../libraries/SFML-2.1/lib/libsfml-graphics.so: undefined reference to `memcpy@GLIBC_2.14'

I have attached the source code and makefile. I am running under Debian stable, G++ verison is 4.7.
Any help is welcome! Thanks a bunch :D

EDIT: Forgot to mention, I do have GLEW installed. When running "dpkg -l | grep glew" I get:
Quote
ii  libglew-dev:amd64                     1.7.0-3                            amd64        OpenGL Extension Wrangler - development environment
ii  libglew1.7:amd64                      1.7.0-3                            amd64        OpenGL Extension Wrangler - runtime environment

EDIT2: I am now trying to compile SFML from source. Wish me luck! (I'll post the results)

Pages: [1]