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

Author Topic: Using SFML on a Linux system with no root access  (Read 1853 times)

0 Members and 1 Guest are viewing this topic.

Digmaster

  • Newbie
  • *
  • Posts: 1
    • View Profile
Using SFML on a Linux system with no root access
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Using SFML on a Linux system with no root access
« Reply #1 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.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
AW: Using SFML on a Linux system with no root access
« Reply #2 on: February 10, 2014, 08:10:08 am »
Also make sure the linker is searching in your ~/libs/lib directory.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything