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

Author Topic: error compiling with GCC/ installing SFML-1.6  (Read 1991 times)

0 Members and 1 Guest are viewing this topic.

kash kow

  • Newbie
  • *
  • Posts: 1
    • View Profile
error compiling with GCC/ installing SFML-1.6
« on: January 22, 2011, 04:03:16 pm »
hey, i'm trying to install the sfml-1.6 library.
I've followed the gcc tutorial, http://www.sfml-dev.org/tutorials/1.6/start-linux.php.

In this tutorial, it says to sudo make install in the appropriate SFML-x.x directory. I put this file in my Documents folder and did what was asked. I also got the dependencies that were supposedly needed.

When compiling a program, the first example program in the gcc/linux tutorial, I get this simple but confusing error from my terminal
Quote
./0001: error while loading shared libraries: libsfml-system.so.1.6: cannot open shared object file: No such file or directory"

strongdrink

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • Email
error compiling with GCC/ installing SFML-1.6
« Reply #1 on: March 07, 2011, 01:34:17 am »
If your using Ubuntu...

Install SFML from synaptic, it will automatically configure everything for you.

If not...

Check in /usr/lib. is there a file named libsfml-system.so.1.6 ? if not. then edit your g++ linkers to link to the directory that you put the libs :D

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
error compiling with GCC/ installing SFML-1.6
« Reply #2 on: March 07, 2011, 03:15:41 pm »
A "sudo ldconfig" should solve the problem.