SFML community forums

Bindings - other languages => Python => Topic started by: Kingdom of Fish on January 26, 2008, 10:49:51 pm

Title: Building python binding from SVN
Post by: Kingdom of Fish 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
Title: Building python binding from SVN
Post by: Laurent 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.
Title: Building python binding from SVN
Post by: Kingdom of Fish 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:
Title: Building python binding from SVN
Post by: Aszarsha 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. :)
Title: Building python binding from SVN
Post by: Laurent 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.