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

Author Topic: Building python binding from SVN  (Read 8435 times)

0 Members and 1 Guest are viewing this topic.

Kingdom of Fish

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Building python binding from SVN
« on: January 26, 2008, 10:49:51 pm »
Hi!
The svn version of the python binding doesn't compile on linux. I would guess that its due to some changes in the c++ api.

Code: [Select]
$ python setup.py build
running build
running build_py
running build_ext
building 'PySFML.sf' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I../include -I/usr/include/python2.5 -c src/Drawable.cpp -o build/temp.linux-i686-2.5/src/Drawable.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetLeft(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:37: error: ‘class sf::Drawable’ has no member named ‘SetLeft’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetTop(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:43: error: ‘class sf::Drawable’ has no member named ‘SetTop’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetRotationCenter(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:80: error: ‘class sf::Drawable’ has no member named ‘SetRotationCenter’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_GetLeft(PySfDrawable*)’:
src/Drawable.cpp:98: error: ‘class sf::Drawable’ has no member named ‘GetLeft’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_GetTop(PySfDrawable*)’:
src/Drawable.cpp:103: error: ‘class sf::Drawable’ has no member named ‘GetTop’
error: command 'gcc' failed with exit status 1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building python binding from SVN
« Reply #1 on: January 27, 2008, 05:56:10 am »
I can't update all the bindings as soon as I make a change to the C++ code.
Laurent Gomila - SFML developer

Kingdom of Fish

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Building python binding from SVN
« Reply #2 on: January 27, 2008, 06:06:37 am »
Quote from: "Laurent"
I can't update all the bindings as soon as I make a change to the C++ code.

Oops, sorry didn't know it was a sensitive subject :O

I solved it thou btw, once i figured out it was just not up to date.

Really didn't mean to offend anyone.  :shock:

Aszarsha

  • Full Member
  • ***
  • Posts: 200
    • MSN Messenger - aszarsha@gmail.com
    • View Profile
Building python binding from SVN
« Reply #3 on: January 27, 2008, 06:20:32 am »
Quote from: "Kingdom of Fish"
Really didn't mean to offend anyone.  :shock:
I think it's ok.
Laurent seems a bit... Occupied these days. :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building python binding from SVN
« Reply #4 on: January 27, 2008, 08:04:46 am »
Hum yes I'm really sorry, I was not offended and didn't mean to be rude. I was just in a rush this morning.

Sorry again ;)

To come back to the bindings update, actually I can do the small changes like this one quickly, but I can't do everything as I'm not very experimented with Ruby and Python. And sometimes I prefer to wait for a while before updating everything, at least until the C++ changes have been tested and validated enough.
Laurent Gomila - SFML developer

 

anything