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

Author Topic: [ignore] pysfml2-cython build request / weird errors  (Read 5317 times)

0 Members and 1 Guest are viewing this topic.

AClockWorkLemon

  • Newbie
  • *
  • Posts: 20
    • View Profile
[ignore] pysfml2-cython build request / weird errors
« on: October 05, 2011, 04:16:36 pm »
Hiya people!

I was just in the hopes that someone could build/provide their binaries for PySFML2, Python2.7.

Please do not take this as me being lazy! I would compile myself, however i both lack  something to compile on (my main computer is getting repairs, this computer i don't wish to install compilers on), and confidence.

Thanks in advance!

Ninja edit
Or, if possible, a version of PySFML 1.6 without that stupid Image.SetSmooth issue. that'd be eppppiiccc :D

again, thanks in advance

EDIT
PLEASE IGNORE THIS THREAD! I've got it all sorted now :)

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
[ignore] pysfml2-cython build request / weird errors
« Reply #1 on: October 05, 2011, 09:21:03 pm »
I currently don't have Windows available, so I'll try to cross-compile on GNU/Linux but it's probably going to take some time before I figure it out (I've never written CMake scripts).
If this fails I guess I can try to build it on someone else's machine. :D
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

AClockWorkLemon

  • Newbie
  • *
  • Posts: 20
    • View Profile
[ignore] pysfml2-cython build request / weird errors
« Reply #2 on: October 06, 2011, 02:03:45 am »
Oop, computer got fixed sooner than i had thought. I've build PySFML2 and pysfml2-cython, but i've been unable to get them to work. It would seem everything is missing it's methods or something.

This code:
Code: [Select]
from PySFML import sf
App = sf.RenderWindow(sf.VideoMode(200, 200, 32), "Image Blur Reproduction")
App.SetFramerateLimit(30)


Returns the error
Code: [Select]
AttributeError: 'sf.RenderWindow' object has no attribute 'SetFramerateLimit'
but according to the documentation, it does. Is this an error with compile, or just an error in the current binding?

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
[ignore] pysfml2-cython build request / weird errors
« Reply #3 on: October 06, 2011, 03:32:16 am »
I changed the API a lot in pysfml2-cython. Look at the examples if you want to get a quick overview, or read the documentation.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

AClockWorkLemon

  • Newbie
  • *
  • Posts: 20
    • View Profile
[ignore] pysfml2-cython build request / weird errors
« Reply #4 on: October 06, 2011, 03:40:25 am »
Durp, my bad. thanks for that :)