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

Author Topic: [Linux] Installation troubleshooting about libsfml-graphics  (Read 5796 times)

0 Members and 1 Guest are viewing this topic.

ToadD-y

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hi, i'm trying to install SFML for python.

I downloaded full python SDK from the website and follow the "how to install" about PySFML. Everything's fine, no error with the build and install command but when i wanna launch a script (a samples for example), i get this :

Code: [Select]

Traceback (most recent call last):
  File "test_py.py", line 2, in <module>
    from PySFML import sf
ImportError: libsfml-graphics.so.1.6: cannot open shared object file: No such file or directory


I took a look in the setup.py file and i saw this line :

Code: [Select]

library_dirs=['../lib/mingw']


...

why a mingw repository? It doesn't exist and so, i change this line by :

Code: [Select]

library_dirs=['/usr/local/lib'']


(my libsfml-graphics.so.1.6 is located in this path)

I do the installation process again (build + install) but i get the same.

Thanks for your help.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
[Linux] Installation troubleshooting about libsfml-graphics
« Reply #1 on: July 09, 2010, 08:47:20 am »
You still need to build and install the normal SFML shared libraries (by firing "make" and "make install"). Since PySFML is a binding to SFML, libraries must be available.

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
[Linux] Installation troubleshooting about libsfml-graphics
« Reply #2 on: October 29, 2010, 04:44:02 am »
Also make sure that your distribution doesn't provide an easy way to install PySFML before building it manually. For example on Arch Linux it's available as a package.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

 

anything