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

Author Topic: Troubles compiling & running PySFML  (Read 4452 times)

0 Members and 1 Guest are viewing this topic.

MistaED

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • http://alex.boberfly.com/
Troubles compiling & running PySFML
« on: February 06, 2010, 06:29:03 am »
Hello, I'm trying to get the python bindings to work but it seems that they can't locate the actual C++ libs when imported under python. I tried copying the libs into Python26\Lib\site-packages\PySFML\ and Python26\libs\ but it won't find them. I've tried using static libs as well as dynamic ones, and I have also tried to just use the MSVC compiled pysfml 1.5 and sfml 1.5 so I'm not sure what to do now.

Build environment:
Windows 7 64-bit

MinGW32 4.4.0 32-bit (comes with qtcreator 2010.01 release)

Python 2.6.4 (from python.org) 32-bit

Compiled SFML 1.6 using Code:Blocks + the same MinGW32, no errors for both static and dynamic compiles (all 32-bit)

Compiled python bindings:
python setup.py build -cmingw32
python setup.py install

I'm not sure what I'm doing wrong here, maybe using python 2.6.4 from python.org isn't compatible with mingw-generated libs? Should I use python 2.5.x? Maybe the tutorial needs to explain what to do after installing pysfml to where to put the external libs.

Thanks for the assistance!
-Alex

remi.k2620

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • http://remi.tuxfamily.org
Troubles compiling & running PySFML
« Reply #1 on: February 06, 2010, 11:27:19 am »
Copying the dynamic libs in Python26\Lib\site-packages\PySFML\ should work. What is the error message ? Did you copy the extlibs (libsndfile-1.dll and openal32.dll) as well ?