SFML community forums

General => General discussions => Topic started by: Digmaster on February 09, 2014, 09:51:59 pm

Title: Using SFML on a Linux system with no root access
Post by: Digmaster on February 09, 2014, 09:51:59 pm
Hello,

I'm trying to use SFML on my school's linux system, which I have no root access (I believe that we use red hat with the AFS file system, if it's of any help). Presently I have all my added libraries files in ~/libs, and I use the command

g++ main.o -o sfml-app -L$HOME/libs/lib -lsfml-graphics -lsfml-window -lsfml-system -W1,-rpath=$HOME/libs/lib (I also use -rpath-rink to no avail)

in an attempt to compile my program. However, my system doesn't even have libGLEW installed, so I popped that into my ~/libs folder aswell. Reguardless I get the error

warning: libGLEW.so.1.5, needed by /afs/<Home dir>/libs/lib/libsfml-graphics.so, not found (try using -rpath or -rpath-link)
(Note that I added the <Home Dir>, it used to say the correct directory.)

I have libGLEW.so.1.5 is the same directory as libsfml; however it's not finding it (A simple ls command confirms that it's there.

Does anyone have any suggestions to fix this problem?
Title: Re: Using SFML on a Linux system with no root access
Post by: Laurent on February 09, 2014, 10:20:02 pm
Make sure that it is GLEW 1.5. If not, you can recompile SFML or recompile/install this version of GLEW.
Title: AW: Using SFML on a Linux system with no root access
Post by: eXpl0it3r on February 10, 2014, 08:10:08 am
Also make sure the linker is searching in your ~/libs/lib directory.