SFML community forums
Bindings - other languages => Python => Topic started 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.
$ 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
-
I can't update all the bindings as soon as I make a change to the C++ code.
-
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:
-
Really didn't mean to offend anyone. :shock:
I think it's ok.
Laurent seems a bit... Occupied these days. :)
-
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.