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

Author Topic: PySFML 2?  (Read 13463 times)

0 Members and 1 Guest are viewing this topic.

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« on: January 05, 2012, 09:29:41 pm »
hello, I'm wondering if will be released the Python bindings for SFML 2.

cheers! :)

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #1 on: January 05, 2012, 10:07:46 pm »
I've created a Python binding for SFML 2: http://pysfml2-cython.readthedocs.org.
Currently it probably won't compile against the latest SFML 2 version, you'll need to back to before Laurent merged the “drawables” branch intro master. I'll try to fix that this weekend.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #2 on: January 05, 2012, 10:11:38 pm »
thanks for the reply, but, python != cython, AFAIK! :(

so, May can you tell me what are my options to have a PySFML2 in Python and not in Cython?

(maybe Im confused about what does Cython with Python :( )

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #3 on: January 05, 2012, 11:24:32 pm »
Cython is just a tool that I used to make this binding. It works on Python 2 and Python 3. I write the binding in the Cython language, the cython tool translates it to C++, then it can be compiled like any other Python extension module.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #4 on: January 06, 2012, 01:26:49 am »
oh, ok, thank you for the explanation :).
btw, the issues what are you talking about, have something related to this?

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ makepkg -si
==> Determinando ultima revisión de git...
  -> Versión encontrada: 20120105
==> Creando el paquete: python2-pysfml2-git 20120105-1 (jue ene  5 17:43:53 CST 2012)
==> Resolviendo dependencias...
==> Verificando conflictos...
==> Obteniendo fuentes...
==> Descomprimiendo fuentes...
==> Eliminando el directorio pkg/ existente...
==> Iniciando build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
==> Starting make...
Cloning into '/home/jorge/MYAUR/python2-pysfml2-git/src/pysfml2-cython-build'...
done.
running build_ext
building 'sf' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -g -march=x86-64 -mtune=generic -O1 -pipe -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.o
gcc: error: sf.cpp: No existe el fichero o el directorio
gcc: error fatal: no hay ficheros de entrada
compilación terminada.
error: command 'gcc' failed with exit status 1
==> ERROR: Se produjo un error en build().
    Cancelando...
jorge@Abril:~/MYAUR/python2-pysfml2-git$

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #5 on: January 06, 2012, 01:39:13 am »
Can you check that USE_CYTHON is True in setup.py?
I think you will need to type to that to use the oldest compatible SFML version:

Code: [Select]
git checkout 191730ac0d639cfdef8fae560cdbc7d7e8c67db1
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #6 on: January 06, 2012, 06:51:04 am »
I'm not good with git :(

Code: [Select]
jorge@Abril:~/MYAUR/sfml-git/src/SFML$ git checkout 191730ac0d639cfdef8fae560cdbc7d7e8c67db1
Note: checking out '191730ac0d639cfdef8fae560cdbc7d7e8c67db1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 191730a... Added a render states cache to improve performances
jorge@Abril:~/MYAUR/sfml-git/src/SFML$


or maybe I'm using the hash in the wrong git clone, anyway, could be better if I wait until you fix the bug?

btw, I set USE_CYTHON to False because of this:
Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ makepkg -si
==> Determinando ultima revisión de git...
  -> Versión encontrada: 20120105
==> Creando el paquete: python2-pysfml2-git 20120105-1 (jue ene  5 23:46:18 CST 2012)
==> Resolviendo dependencias...
==> Verificando conflictos...
==> Obteniendo fuentes...
==> Descomprimiendo fuentes...
==> Eliminando el directorio pkg/ existente...
==> Iniciando build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
==> Starting make...
Cloning into '/home/jorge/MYAUR/python2-pysfml2-git/src/pysfml2-cython-build'...
done.
Traceback (most recent call last):
  File "/usr/bin/cython", line 7, in <module>
    from Cython.Compiler.Main import main
ImportError: No module named Cython.Compiler.Main
==> ERROR: Se produjo un error en build().
    Cancelando...
jorge@Abril:~/MYAUR/python2-pysfml2-git$

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #7 on: January 06, 2012, 09:42:22 am »
The Git message is normal AFAIK.
If you want to set USE_CYTHON = False, you need to create sf.cpp yourself:

Code: [Select]
cython --cplus sf.pyx
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #8 on: January 06, 2012, 07:10:56 pm »
Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$ cython2 --cplus sf.pyx
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$


then the file sf.cpp appears in the same directory, I edit the PKGBUILD because looks buggy, then...

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ makepkg -si
==> Determinando ultima revisión de git...
  -> Versión encontrada: 20120106
==> Creando el paquete: python2-pysfml2-git 20120106-1 (vie ene  6 12:01:45 CST 2012)
==> Resolviendo dependencias...
==> Verificando conflictos...
==> Obteniendo fuentes...
==> Descomprimiendo fuentes...
==> Eliminando el directorio pkg/ existente...
==> Iniciando build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
==> Starting make...
Cloning into '/home/jorge/MYAUR/python2-pysfml2-git/src/pysfml2-cython-build'...
done.
running build_ext
building 'sf' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -g -march=x86-64 -mtune=generic -O1 -pipe -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.o
gcc: error: sf.cpp: No existe el fichero o el directorio
gcc: error fatal: no hay ficheros de entrada
compilación terminada.
error: command 'gcc' failed with exit status 1
==> ERROR: Se produjo un error en build().
    Cancelando...
jorge@Abril:~/MYAUR/python2-pysfml2-git$


File sf.cpp not found?? but it is in there:

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ ls src/pysfml2-cython
build       declblendmode.pxd  decljoy.pxd  declmouse.pxd  decl.pxd doc   hacks.cpp  LICENSE.txt  README.txt  setup.py  SFML-LICENSE.txt
declaudio.pxd  declevent.pxd  declkey.pxd  declprimitive.pxd  declstyle.pxd  examples  hacks.hpp  MANIFEST.in  setup3k.py  sf.cpp sf.pyx
jorge@Abril:~/MYAUR/python2-pysfml2-git$


so, I went where the source code was, and I use the classic python setup.py build:

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$ python setup.py build
running build
running build_ext
building 'sf' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.o
In file included from sf.cpp:238:0:
hacks.hpp:15:59: error: ‘Renderer’ no es un miembro de ‘sf’
hacks.hpp:15:72: error: expected primary-expression before ‘)’ token
hacks.hpp:31:55: error: ‘sf::Renderer’ no se ha declarado
sf.cpp:485:3: error: ‘Renderer’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:498:3: error: ‘ContextSettings’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:588:3: error: ‘Texture’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:615:3: error: ‘Shader’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:1056:72: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:1056:85: error: expected primary-expression before ‘,’ token
sf.cpp:1056:87: error: expected primary-expression before ‘int’
sf.cpp:1056:90: error: se trata la lista de expresiones como una expresión compuesta en en inicializador [-fpermissive]
sf.cpp:1060:70: error: ‘Shader’ no es un miembro de ‘sf’
sf.cpp:1060:82: error: expected primary-expression before ‘)’ token
sf.cpp:1061:89: error: ‘ContextSettings’ no es un miembro de ‘sf’
sf.cpp:1061:110: error: expected primary-expression before ‘)’ token
sf.cpp:1065:85: aviso: ‘wrap_renderer_instance’ inicializado y declarado como ‘extern’ [activado por defecto]
sf.cpp:1065:85: error: redefinición de ‘__pyx_obj_2sf_Renderer* wrap_renderer_instance’
hacks.hpp:15:36: error: se define ‘__pyx_obj_2sf_Renderer* wrap_renderer_instance’ previamente aquí
sf.cpp:1065:81: error: ‘Renderer’ no es un miembro de ‘sf’
sf.cpp:1065:95: error: expected primary-expression before ‘)’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_is_button_pressed(PyObject*, PyObject*)’:
sf.cpp:2379:15: error: ‘IsButtonPressed’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_1get_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2477:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp:2489:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_2set_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2650:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp:2662:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_is_connected(PyObject*, PyObject*)’:
sf.cpp:2715:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_1get_button_count(PyObject*, PyObject*)’:
sf.cpp:2769:43: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_2has_axis(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2859:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:2859:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:2859:15: error: expected ‘)’ before ‘__pyx_v_axis’
sf.cpp:2859:113: error: expected ‘)’ before ‘;’ token
sf.cpp:2859:113: error: expected ‘)’ before ‘;’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_3is_button_pressed(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2949:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_4get_axis_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:3039:38: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:3039:88: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:3039:103: error: expected ‘)’ before ‘__pyx_v_axis’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Keyboard_is_key_pressed(PyObject*, PyObject*)’:
sf.cpp:3093:15: error: ‘sf::Keyboard’ no se ha declarado
sf.cpp:3093:15: error: ‘sf::Keyboard’ no se ha declarado
sf.cpp:3093:15: error: expected ‘)’ before ‘__pyx_v_key’
sf.cpp:3093:98: error: expected ‘)’ before ‘;’ token
sf.cpp:3093:98: error: expected ‘)’ before ‘;’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_5width___get__(PyObject*)’:
sf.cpp:3510:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_5width_1__set__(PyObject*, PyObject*)’:
sf.cpp:3562:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_6height___get__(PyObject*)’:
sf.cpp:3595:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_6height_1__set__(PyObject*, PyObject*)’:
sf.cpp:3647:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_4intersects(PyObject*, PyObject*, PyObject*)’:
sf.cpp:3856:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<int>::Intersects(sf::IntRect&, sf::IntRect&)’
sf.cpp:3856:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = int]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::IntRect {aka sf::Rect<int>}’ a ‘sf::Rect<int>*’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_5width___get__(PyObject*)’:
sf.cpp:4481:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_5width_1__set__(PyObject*, PyObject*)’:
sf.cpp:4533:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_6height___get__(PyObject*)’:
sf.cpp:4566:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_6height_1__set__(PyObject*, PyObject*)’:
sf.cpp:4618:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_4intersects(PyObject*, PyObject*, PyObject*)’:
sf.cpp:4827:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<float>::Intersects(sf::FloatRect&, sf::FloatRect&)’
sf.cpp:4827:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = float]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::FloatRect {aka sf::Rect<float>}’ a ‘sf::Rect<float>*’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Matrix3_4projection(PyObject*, PyObject*, PyObject*)’:
sf.cpp:7189:20: error: ‘Projection’ no es un miembro de ‘sf::Matrix3’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Matrix3_5transformation(PyObject*, PyObject*, PyObject*)’:
sf.cpp:7348:20: error: ‘Transformation’ no es un miembro de ‘sf::Matrix3’
/usr/local/include/SFML/Audio/Sound.hpp: En la función ‘int __pyx_pf_2sf_5Music_14playing_offset_1__set__(PyObject*, PyObject*)’:
/usr/local/include/SFML/Audio/Sound.hpp:198:10: error: ‘void sf::Sound::SetPlayingOffset(float)’ es inaccesible
sf.cpp:11510:87: error: desde este contexto
sf.cpp:11510:87: error: ‘sf::Sound’ no es una base inaccesible de ‘sf::Music’
sf.cpp: En la función ‘PyObject* __pyx_f_2sf_wrap_event_instance(sf::Event*)’:
sf.cpp:12758:48: error: ‘JoystickButtonPressed’ no es un miembro de ‘sf::Event’
sf.cpp:12785:48: error: ‘JoystickButtonReleased’ no es un miembro de ‘sf::Event’
sf.cpp:12812:48: error: ‘JoystickMoved’ no es un miembro de ‘sf::Event’
sf.cpp:12839:48: error: ‘JoystickConnected’ no es un miembro de ‘sf::Event’
sf.cpp:12866:48: error: ‘JoystickDisconnected’ no es un miembro de ‘sf::Event’
sf.cpp:13035:17: error: ‘struct sf::Event::KeyEvent’ no tiene un miembro llamado ‘System’
sf.cpp:13169:67: error: ‘struct sf::Event::MouseWheelEvent’ no tiene un miembro llamado ‘X’
sf.cpp:13181:67: error: ‘struct sf::Event::MouseWheelEvent’ no tiene un miembro llamado ‘Y’
sf.cpp:13195:48: error: ‘JoystickButtonPressed’ no es un miembro de ‘sf::Event’
sf.cpp:13205:50: error: ‘JoystickButtonReleased’ no es un miembro de ‘sf::Event’
sf.cpp:13219:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickButton’
sf.cpp:13231:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickButton’
sf.cpp:13245:48: error: ‘JoystickMoved’ no es un miembro de ‘sf::Event’
sf.cpp:13255:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13267:56: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13279:60: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13293:48: error: ‘JoystickConnected’ no es un miembro de ‘sf::Event’
sf.cpp:13303:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickConnect’
sf.cpp:13317:48: error: ‘JoystickDisconnected’ no es un miembro de ‘sf::Event’
sf.cpp:13327:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickConnect’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Glyph_6bounds___get__(PyObject*)’:
sf.cpp:13496:74: error: ‘class sf::Glyph’ no tiene un miembro llamado ‘Bounds’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Glyph_8sub_rect___get__(PyObject*)’:
sf.cpp:13559:74: error: ‘class sf::Glyph’ no tiene un miembro llamado ‘SubRect’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_4get_glyph(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14014:138: error: no se encontró una función coincidente para la llamada a ‘sf::Font::GetGlyph(unsigned int&, unsigned int&, int&)’
sf.cpp:14014:138: nota: el candidato es:
/usr/local/include/SFML/Graphics/Font.hpp:107:18: nota: const sf::Glyph& sf::Font::GetGlyph(sf::Uint32) const
/usr/local/include/SFML/Graphics/Font.hpp:107:18: nota:   el candidato espera 1 argumento, se proporcionaron 3
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_5get_texture(PyObject*, PyObject*)’:
sf.cpp:14053:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:14053:16: error: ‘__pyx_v_p’ no se declaró en este ámbito
sf.cpp:14078:17: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:14078:30: error: expected primary-expression before ‘)’ token
sf.cpp:14078:86: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetTexture’
sf.cpp:14088:74: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_6get_kerning(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14188:83: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetKerning’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_7get_line_spacing(PyObject*, PyObject*)’:
sf.cpp:14242:83: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetLineSpacing’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Image_6load_from_pixels(PyObject*, PyObject*, PyObject*)’:
sf.cpp:15034:98: error: no se encontró una función coincidente para la llamada a ‘sf::Image::Create(int&, int&, unsigned char*)’
sf.cpp:15034:98: nota: el candidato es:
/usr/local/include/SFML/Graphics/Image.hpp:143:10: nota: bool sf::Image::Create(unsigned int, unsigned int, sf::Color)
/usr/local/include/SFML/Graphics/Image.hpp:143:10: nota:   no hay una conversión conocida para el argumento 3 de ‘unsigned char*’ a ‘sf::Color’
sf.cpp: En la función ‘int __pyx_pf_2sf_7Texture___init__(PyObject*, PyObject*, PyObject*)’:
sf.cpp:15950:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:15950:64: error: se esperaba un especificador de tipo
sf.cpp:15950:64: error: se esperaba ‘;’
sf.cpp:15984:66: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘void __pyx_pf_2sf_7Texture_1__dealloc__(PyObject*)’:
sf.cpp:16050:60: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6height___get__(PyObject*)’:
sf.cpp:16084:87: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6smooth___get__(PyObject*)’:
sf.cpp:16128:15: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘int __pyx_pf_2sf_7Texture_6smooth_1__set__(PyObject*, PyObject*)’:
sf.cpp:16180:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_5width___get__(PyObject*)’:
sf.cpp:16213:87: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_2load_from_file(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16244:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16244:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16308:32: error: se esperaba un especificador de tipo
sf.cpp:16308:32: error: se esperaba ‘;’
sf.cpp:16338:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16377:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_3load_from_image(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16430:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16430:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16495:32: error: se esperaba un especificador de tipo
sf.cpp:16495:32: error: se esperaba ‘;’
sf.cpp:16525:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16564:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_4load_from_memory(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16617:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16617:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16684:32: error: se esperaba un especificador de tipo
sf.cpp:16684:32: error: se esperaba ‘;’
sf.cpp:16719:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16763:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_5bind(PyObject*, PyObject*)’:
sf.cpp:16824:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6get_tex_coords(PyObject*, PyObject*)’:
sf.cpp:16869:65: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_7update(PyObject*, PyObject*, PyObject*)’:
sf.cpp:17058:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17079:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17115:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17127:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17163:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17175:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En el ámbito global:
sf.cpp:17236:76: error: redefinición de ‘__pyx_obj_2sf_Texture* __pyx_f_2sf_wrap_texture_instance’
sf.cpp:1056:38: error: se define ‘__pyx_obj_2sf_Texture* __pyx_f_2sf_wrap_texture_instance’ previamente aquí
sf.cpp:17236:72: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:17236:85: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:17236:109: error: expected primary-expression before ‘int’
sf.cpp:913:27: aviso: se usa la función inline ‘void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**)’ pero nunca se define [activado por defecto]
sf.cpp:290:26: aviso: se usa la función inline ‘int __Pyx_PyObject_IsTrue(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:903:27: aviso: se usa la función inline ‘void __Pyx_ErrRestore(PyObject*, PyObject*, PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:801:27: aviso: se usa la función inline ‘void __Pyx_RaiseUnboundLocalError(const char*)’ pero nunca se define [activado por defecto]
sf.cpp:954:26: aviso: se usa la función inline ‘int __Pyx_PyInt_AsInt(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:816:27: aviso: se usa la función inline ‘void __Pyx_RaiseTooManyValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
sf.cpp:814:27: aviso: se usa la función inline ‘void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
sf.cpp:948:35: aviso: se usa la función inline ‘unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:827:26: aviso: se usa la función inline ‘int __Pyx_TypeTest(PyObject*, PyTypeObject*)’ pero nunca se define [activado por defecto]
sf.cpp:908:26: aviso: se usa la función inline ‘int __Pyx_CheckKeywordStrings(PyObject*, const char*, int)’ pero nunca se define [activado por defecto]
sf.cpp:940:32: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_to_py_sf__Uint32(sf::Uint32)’ pero nunca se define [activado por defecto]
sf.cpp:942:32: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_to_py_sf__Int16(sf::Int16)’ pero nunca se define [activado por defecto]
sf.cpp:294:33: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_FromSize_t(size_t)’ pero nunca se define [activado por defecto]
error: command 'gcc' failed with exit status 1
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$


so, what's wrong here? :(

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #9 on: January 06, 2012, 11:12:27 pm »
Don't use “python”, on Arch Linux it invokes Python 3. Try “python2 setup.py build_ext --inplace”. It should drop the sf.so module file in the current directory.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #10 on: January 07, 2012, 09:00:46 am »
Quote from: "bastien"
Don't use “python”, on Arch Linux it invokes Python 3. Try “python2 setup.py build_ext --inplace”. It should drop the sf.so module file in the current directory.


but...

Code: [Select]
jorge@Abril:~$ python
Python 2.7.2 (default, Dec 13 2011, 21:02:13)
[GCC 4.6.2 20111125 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


and I dont use ArchLinux since it isn't free as in freedom ;), I use Parabola GNU/Linux-libre :). I did that command, and look what happen:

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$ python2 setup.py build_ext --inplace
running build_ext
building 'sf' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.o
In file included from sf.cpp:238:0:
hacks.hpp:15:59: error: ‘Renderer’ no es un miembro de ‘sf’
hacks.hpp:15:72: error: expected primary-expression before ‘)’ token
hacks.hpp:31:55: error: ‘sf::Renderer’ no se ha declarado
sf.cpp:485:3: error: ‘Renderer’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:498:3: error: ‘ContextSettings’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:588:3: error: ‘Texture’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:615:3: error: ‘Shader’ en el espacio de nombres ‘sf’ no nombra un tipo
sf.cpp:1056:72: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:1056:85: error: expected primary-expression before ‘,’ token
sf.cpp:1056:87: error: expected primary-expression before ‘int’
sf.cpp:1056:90: error: se trata la lista de expresiones como una expresión compuesta en en inicializador [-fpermissive]
sf.cpp:1060:70: error: ‘Shader’ no es un miembro de ‘sf’
sf.cpp:1060:82: error: expected primary-expression before ‘)’ token
sf.cpp:1061:89: error: ‘ContextSettings’ no es un miembro de ‘sf’
sf.cpp:1061:110: error: expected primary-expression before ‘)’ token
sf.cpp:1065:85: aviso: ‘wrap_renderer_instance’ inicializado y declarado como ‘extern’ [activado por defecto]
sf.cpp:1065:85: error: redefinición de ‘__pyx_obj_2sf_Renderer* wrap_renderer_instance’
hacks.hpp:15:36: error: se define ‘__pyx_obj_2sf_Renderer* wrap_renderer_instance’ previamente aquí
sf.cpp:1065:81: error: ‘Renderer’ no es un miembro de ‘sf’
sf.cpp:1065:95: error: expected primary-expression before ‘)’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_is_button_pressed(PyObject*, PyObject*)’:
sf.cpp:2379:15: error: ‘IsButtonPressed’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_1get_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2477:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp:2489:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_2set_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2650:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp:2662:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_is_connected(PyObject*, PyObject*)’:
sf.cpp:2715:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_1get_button_count(PyObject*, PyObject*)’:
sf.cpp:2769:43: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_2has_axis(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2859:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:2859:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:2859:15: error: expected ‘)’ before ‘__pyx_v_axis’
sf.cpp:2859:113: error: expected ‘)’ before ‘;’ token
sf.cpp:2859:113: error: expected ‘)’ before ‘;’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_3is_button_pressed(PyObject*, PyObject*, PyObject*)’:
sf.cpp:2949:15: error: ‘sf::Joystick’ no se ha declarado
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_4get_axis_position(PyObject*, PyObject*, PyObject*)’:
sf.cpp:3039:38: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:3039:88: error: ‘sf::Joystick’ no se ha declarado
sf.cpp:3039:103: error: expected ‘)’ before ‘__pyx_v_axis’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Keyboard_is_key_pressed(PyObject*, PyObject*)’:
sf.cpp:3093:15: error: ‘sf::Keyboard’ no se ha declarado
sf.cpp:3093:15: error: ‘sf::Keyboard’ no se ha declarado
sf.cpp:3093:15: error: expected ‘)’ before ‘__pyx_v_key’
sf.cpp:3093:98: error: expected ‘)’ before ‘;’ token
sf.cpp:3093:98: error: expected ‘)’ before ‘;’ token
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_5width___get__(PyObject*)’:
sf.cpp:3510:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_5width_1__set__(PyObject*, PyObject*)’:
sf.cpp:3562:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_6height___get__(PyObject*)’:
sf.cpp:3595:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_6height_1__set__(PyObject*, PyObject*)’:
sf.cpp:3647:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_4intersects(PyObject*, PyObject*, PyObject*)’:
sf.cpp:3856:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<int>::Intersects(sf::IntRect&, sf::IntRect&)’
sf.cpp:3856:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = int]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::IntRect {aka sf::Rect<int>}’ a ‘sf::Rect<int>*’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_5width___get__(PyObject*)’:
sf.cpp:4481:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_5width_1__set__(PyObject*, PyObject*)’:
sf.cpp:4533:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_6height___get__(PyObject*)’:
sf.cpp:4566:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_6height_1__set__(PyObject*, PyObject*)’:
sf.cpp:4618:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_4intersects(PyObject*, PyObject*, PyObject*)’:
sf.cpp:4827:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<float>::Intersects(sf::FloatRect&, sf::FloatRect&)’
sf.cpp:4827:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = float]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::FloatRect {aka sf::Rect<float>}’ a ‘sf::Rect<float>*’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Matrix3_4projection(PyObject*, PyObject*, PyObject*)’:
sf.cpp:7189:20: error: ‘Projection’ no es un miembro de ‘sf::Matrix3’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Matrix3_5transformation(PyObject*, PyObject*, PyObject*)’:
sf.cpp:7348:20: error: ‘Transformation’ no es un miembro de ‘sf::Matrix3’
/usr/local/include/SFML/Audio/Sound.hpp: En la función ‘int __pyx_pf_2sf_5Music_14playing_offset_1__set__(PyObject*, PyObject*)’:
/usr/local/include/SFML/Audio/Sound.hpp:198:10: error: ‘void sf::Sound::SetPlayingOffset(float)’ es inaccesible
sf.cpp:11510:87: error: desde este contexto
sf.cpp:11510:87: error: ‘sf::Sound’ no es una base inaccesible de ‘sf::Music’
sf.cpp: En la función ‘PyObject* __pyx_f_2sf_wrap_event_instance(sf::Event*)’:
sf.cpp:12758:48: error: ‘JoystickButtonPressed’ no es un miembro de ‘sf::Event’
sf.cpp:12785:48: error: ‘JoystickButtonReleased’ no es un miembro de ‘sf::Event’
sf.cpp:12812:48: error: ‘JoystickMoved’ no es un miembro de ‘sf::Event’
sf.cpp:12839:48: error: ‘JoystickConnected’ no es un miembro de ‘sf::Event’
sf.cpp:12866:48: error: ‘JoystickDisconnected’ no es un miembro de ‘sf::Event’
sf.cpp:13035:17: error: ‘struct sf::Event::KeyEvent’ no tiene un miembro llamado ‘System’
sf.cpp:13169:67: error: ‘struct sf::Event::MouseWheelEvent’ no tiene un miembro llamado ‘X’
sf.cpp:13181:67: error: ‘struct sf::Event::MouseWheelEvent’ no tiene un miembro llamado ‘Y’
sf.cpp:13195:48: error: ‘JoystickButtonPressed’ no es un miembro de ‘sf::Event’
sf.cpp:13205:50: error: ‘JoystickButtonReleased’ no es un miembro de ‘sf::Event’
sf.cpp:13219:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickButton’
sf.cpp:13231:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickButton’
sf.cpp:13245:48: error: ‘JoystickMoved’ no es un miembro de ‘sf::Event’
sf.cpp:13255:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13267:56: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13279:60: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickMove’
sf.cpp:13293:48: error: ‘JoystickConnected’ no es un miembro de ‘sf::Event’
sf.cpp:13303:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickConnect’
sf.cpp:13317:48: error: ‘JoystickDisconnected’ no es un miembro de ‘sf::Event’
sf.cpp:13327:65: error: ‘class sf::Event’ no tiene un miembro llamado ‘JoystickConnect’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Glyph_6bounds___get__(PyObject*)’:
sf.cpp:13496:74: error: ‘class sf::Glyph’ no tiene un miembro llamado ‘Bounds’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Glyph_8sub_rect___get__(PyObject*)’:
sf.cpp:13559:74: error: ‘class sf::Glyph’ no tiene un miembro llamado ‘SubRect’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_4get_glyph(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14014:138: error: no se encontró una función coincidente para la llamada a ‘sf::Font::GetGlyph(unsigned int&, unsigned int&, int&)’
sf.cpp:14014:138: nota: el candidato es:
/usr/local/include/SFML/Graphics/Font.hpp:107:18: nota: const sf::Glyph& sf::Font::GetGlyph(sf::Uint32) const
/usr/local/include/SFML/Graphics/Font.hpp:107:18: nota:   el candidato espera 1 argumento, se proporcionaron 3
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_5get_texture(PyObject*, PyObject*)’:
sf.cpp:14053:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:14053:16: error: ‘__pyx_v_p’ no se declaró en este ámbito
sf.cpp:14078:17: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:14078:30: error: expected primary-expression before ‘)’ token
sf.cpp:14078:86: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetTexture’
sf.cpp:14088:74: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_6get_kerning(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14188:83: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetKerning’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_4Font_7get_line_spacing(PyObject*, PyObject*)’:
sf.cpp:14242:83: error: ‘class sf::Font’ no tiene un miembro llamado ‘GetLineSpacing’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Image_6load_from_pixels(PyObject*, PyObject*, PyObject*)’:
sf.cpp:15034:98: error: no se encontró una función coincidente para la llamada a ‘sf::Image::Create(int&, int&, unsigned char*)’
sf.cpp:15034:98: nota: el candidato es:
/usr/local/include/SFML/Graphics/Image.hpp:143:10: nota: bool sf::Image::Create(unsigned int, unsigned int, sf::Color)
/usr/local/include/SFML/Graphics/Image.hpp:143:10: nota:   no hay una conversión conocida para el argumento 3 de ‘unsigned char*’ a ‘sf::Color’
sf.cpp: En la función ‘int __pyx_pf_2sf_7Texture___init__(PyObject*, PyObject*, PyObject*)’:
sf.cpp:15950:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:15950:64: error: se esperaba un especificador de tipo
sf.cpp:15950:64: error: se esperaba ‘;’
sf.cpp:15984:66: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘void __pyx_pf_2sf_7Texture_1__dealloc__(PyObject*)’:
sf.cpp:16050:60: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6height___get__(PyObject*)’:
sf.cpp:16084:87: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6smooth___get__(PyObject*)’:
sf.cpp:16128:15: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘int __pyx_pf_2sf_7Texture_6smooth_1__set__(PyObject*, PyObject*)’:
sf.cpp:16180:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_5width___get__(PyObject*)’:
sf.cpp:16213:87: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_2load_from_file(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16244:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16244:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16308:32: error: se esperaba un especificador de tipo
sf.cpp:16308:32: error: se esperaba ‘;’
sf.cpp:16338:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16377:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_3load_from_image(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16430:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16430:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16495:32: error: se esperaba un especificador de tipo
sf.cpp:16495:32: error: se esperaba ‘;’
sf.cpp:16525:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16564:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_4load_from_memory(PyObject*, PyObject*, PyObject*)’:
sf.cpp:16617:3: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:16617:16: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:16684:32: error: se esperaba un especificador de tipo
sf.cpp:16684:32: error: se esperaba ‘;’
sf.cpp:16719:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp:16763:91: error: no se puede usar ‘__pyx_f_2sf_wrap_texture_instance’ como una función
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_5bind(PyObject*, PyObject*)’:
sf.cpp:16824:51: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_6get_tex_coords(PyObject*, PyObject*)’:
sf.cpp:16869:65: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7Texture_7update(PyObject*, PyObject*, PyObject*)’:
sf.cpp:17058:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17079:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17115:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17127:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17163:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp:17175:55: error: ‘struct __pyx_obj_2sf_Texture’ no tiene un miembro llamado ‘p_this’
sf.cpp: En el ámbito global:
sf.cpp:17236:76: error: redefinición de ‘__pyx_obj_2sf_Texture* __pyx_f_2sf_wrap_texture_instance’
sf.cpp:1056:38: error: se define ‘__pyx_obj_2sf_Texture* __pyx_f_2sf_wrap_texture_instance’ previamente aquí
sf.cpp:17236:72: error: ‘Texture’ no es un miembro de ‘sf’
sf.cpp:17236:85: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
sf.cpp:17236:109: error: expected primary-expression before ‘int’
sf.cpp:913:27: aviso: se usa la función inline ‘void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**)’ pero nunca se define [activado por defecto]
sf.cpp:290:26: aviso: se usa la función inline ‘int __Pyx_PyObject_IsTrue(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:903:27: aviso: se usa la función inline ‘void __Pyx_ErrRestore(PyObject*, PyObject*, PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:801:27: aviso: se usa la función inline ‘void __Pyx_RaiseUnboundLocalError(const char*)’ pero nunca se define [activado por defecto]
sf.cpp:954:26: aviso: se usa la función inline ‘int __Pyx_PyInt_AsInt(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:816:27: aviso: se usa la función inline ‘void __Pyx_RaiseTooManyValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
sf.cpp:814:27: aviso: se usa la función inline ‘void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
sf.cpp:948:35: aviso: se usa la función inline ‘unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject*)’ pero nunca se define [activado por defecto]
sf.cpp:827:26: aviso: se usa la función inline ‘int __Pyx_TypeTest(PyObject*, PyTypeObject*)’ pero nunca se define [activado por defecto]
sf.cpp:908:26: aviso: se usa la función inline ‘int __Pyx_CheckKeywordStrings(PyObject*, const char*, int)’ pero nunca se define [activado por defecto]
sf.cpp:940:32: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_to_py_sf__Uint32(sf::Uint32)’ pero nunca se define [activado por defecto]
sf.cpp:942:32: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_to_py_sf__Int16(sf::Int16)’ pero nunca se define [activado por defecto]
sf.cpp:294:33: aviso: se usa la función inline ‘PyObject* __Pyx_PyInt_FromSize_t(size_t)’ pero nunca se define [activado por defecto]
error: command 'gcc' failed with exit status 1
jorge@Abril:~/MYAUR/python2-pysfml2-git/src/pysfml2-cython$


yes, almost the same error, and looks like everything starts because ‘Renderer’ isn't a member of ‘sf’ :-(

GNU User
Python programmer
Blog

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
PySFML 2?
« Reply #11 on: January 08, 2012, 01:10:32 am »
Are you sure that the git checkout ... command applies where you build the module? It looks like you're still using the latest SFML 2 version.

Edit: Laurent said that he's going to change the naming conventions on Monday, so I'm going to wait for that before updating the binding.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
PySFML 2?
« Reply #12 on: January 09, 2012, 04:24:45 am »
Quote from: "bastien"
Are you sure that the git checkout ... command applies where you build the module? It looks like you're still using the latest SFML 2 version.

Oh, I should did the git checkout command IN THERE? :O, damn... my bad!

Quote from: "bastien"

Edit: Laurent said that he's going to change the naming conventions on Monday, so I'm going to wait for that before updating the binding.


Nice, I'll be waiting like child on Christmas :)

GNU User
Python programmer
Blog

Phoenix881

  • Newbie
  • *
  • Posts: 1
    • View Profile
PySFML 2?
« Reply #13 on: January 13, 2012, 09:52:40 am »
I was having the exact same issue, but I've solved it.
on the commit list for SFML on github, it appears as though the commit "Added a render states cache to improve performances" would be the one to revert to, but it's actually in the drawables branch!  

The commit you actually want (the latest commit that isn't touched by drawables), is the "sf::Joystick now handles controllers designated as "Gamepad"" one.  So just run the git command bastien gave before, but with that commits code, and it should work fine.
Code: [Select]
git checkout 167618a89ed0639b8df61ca0c298280fb0388373

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
nop, still with the problem
« Reply #14 on: March 12, 2012, 12:34:44 am »
Well, after a while, I decided to try again. this time I installed sfml-1.99 from the repository, but then:
Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ makepkg -si
==> Determinando ultima revisión de git...
  -> Versión encontrada: 20120311
==> Creando el paquete: python2-pysfml2-git 20120311-1 (dom 11 mar 17:19:09 CST 2012)
==> Resolviendo dependencias...
==> Verificando conflictos...
==> Obteniendo fuentes...
==> Descomprimiendo fuentes...
==> Eliminando el directorio pkg/...
==> Iniciando build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
==> Starting make...
Cloning into '/home/jorge/MYAUR/python2-pysfml2-git/src/pysfml2-cython-build'...
done.
running build
running build_ext
cythoning src/sf.pyx to src/sf.cpp
building 'sf' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c src/sf.cpp -o build/temp.linux-x86_64-2.7/src/sf.o
In file included from src/sf.cpp:241:0:
src/hacks.hpp:45:41: error: ‘Transformable’ no es un miembro de ‘sf’
src/hacks.hpp:45:60: error: ‘t’ no se declaró en este ámbito
src/hacks.hpp:73:53: error: ‘sf::RenderStates’ no se ha declarado
src/hacks.hpp:98:29: error: ‘sf::Time’ no se ha declarado
src/sf.cpp:455:3: error: ‘Transformable’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:495:3: error: ‘Vertex’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:534:3: error: ‘Time’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:559:3: error: ‘ContextSettings’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:636:3: error: ‘Texture’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:663:3: error: ‘Transform’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:688:3: error: ‘Shader’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:836:3: error: ‘RenderStates’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:1049:22: error: ‘Int64’ en el espacio de nombres ‘sf’ no nombra un tipo
src/sf.cpp:1051:69: error: ‘__Pyx_PyInt_to_py_sf__Int64’ se declaró como una variable ‘inline’
src/sf.cpp:1051:60: error: ‘Int64’ no es un miembro de ‘sf’
src/sf.cpp:1255:76: error: ‘Transform’ no es un miembro de ‘sf’
src/sf.cpp:1255:91: error: expected primary-expression before ‘)’ token
src/sf.cpp:1256:77: aviso: ‘wrap_time_instance’ inicializado y declarado como ‘extern’ [activado por defecto]
src/sf.cpp:1256:73: error: ‘Time’ no es un miembro de ‘sf’
src/sf.cpp:1256:83: error: expected primary-expression before ‘)’ token
src/sf.cpp:1265:72: error: ‘Texture’ no es un miembro de ‘sf’
src/sf.cpp:1265:85: error: expected primary-expression before ‘,’ token
src/sf.cpp:1265:87: error: expected primary-expression before ‘int’
src/sf.cpp:1265:90: error: se trata la lista de expresiones como una expresión compuesta en en inicializador [-fpermissive]
src/sf.cpp:1266:70: error: ‘Vertex’ no es un miembro de ‘sf’
src/sf.cpp:1266:82: error: expected primary-expression before ‘)’ token
src/sf.cpp:1269:70: error: ‘Shader’ no es un miembro de ‘sf’
src/sf.cpp:1269:82: error: expected primary-expression before ‘,’ token
src/sf.cpp:1269:84: error: expected primary-expression before ‘int’
src/sf.cpp:1269:87: error: se trata la lista de expresiones como una expresión compuesta en en inicializador [-fpermissive]
src/sf.cpp:1270:89: error: ‘ContextSettings’ no es un miembro de ‘sf’
src/sf.cpp:1270:110: error: expected primary-expression before ‘)’ token
src/sf.cpp:1271:94: aviso: ‘wrap_render_states_instance’ inicializado y declarado como ‘extern’ [activado por defecto]
src/sf.cpp:1271:90: error: ‘RenderStates’ no es un miembro de ‘sf’
src/sf.cpp:1271:108: error: expected primary-expression before ‘)’ token
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_is_button_pressed(PyObject*, PyObject*)’:
src/sf.cpp:2745:15: error: ‘IsButtonPressed’ no es un miembro de ‘sf::Mouse’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_1get_position(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:2843:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
src/sf.cpp:2855:19: error: ‘GetPosition’ no es un miembro de ‘sf::Mouse’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_5Mouse_2set_position(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:3016:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
src/sf.cpp:3028:5: error: ‘SetPosition’ no es un miembro de ‘sf::Mouse’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_is_connected(PyObject*, PyObject*)’:
src/sf.cpp:3081:15: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_1get_button_count(PyObject*, PyObject*)’:
src/sf.cpp:3135:43: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_2has_axis(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:3225:15: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp:3225:15: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp:3225:15: error: expected ‘)’ before ‘__pyx_v_axis’
src/sf.cpp:3225:113: error: expected ‘)’ before ‘;’ token
src/sf.cpp:3225:113: error: expected ‘)’ before ‘;’ token
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_3is_button_pressed(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:3315:15: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Joystick_4get_axis_position(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:3405:38: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp:3405:88: error: ‘sf::Joystick’ no se ha declarado
src/sf.cpp:3405:103: error: expected ‘)’ before ‘__pyx_v_axis’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_8Keyboard_is_key_pressed(PyObject*, PyObject*)’:
src/sf.cpp:3459:15: error: ‘sf::Keyboard’ no se ha declarado
src/sf.cpp:3459:15: error: ‘sf::Keyboard’ no se ha declarado
src/sf.cpp:3459:15: error: expected ‘)’ before ‘__pyx_v_key’
src/sf.cpp:3459:98: error: expected ‘)’ before ‘;’ token
src/sf.cpp:3459:98: error: expected ‘)’ before ‘;’ token
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_5width___get__(PyObject*)’:
src/sf.cpp:3876:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_5width_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:3928:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Width’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_6height___get__(PyObject*)’:
src/sf.cpp:3961:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_6height_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:4013:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘Height’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_4intersects(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:4222:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<int>::Intersects(sf::IntRect&, sf::IntRect&)’
src/sf.cpp:4222:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = int]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::IntRect {aka sf::Rect<int>}’ a ‘sf::Rect<int>*’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_5width___get__(PyObject*)’:
src/sf.cpp:4847:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_5width_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:4899:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Width’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_6height___get__(PyObject*)’:
src/sf.cpp:4932:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_6height_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:4984:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘Height’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_4intersects(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:5193:17: error: no se encontró una función coincidente para la llamada a ‘sf::Rect<float>::Intersects(sf::FloatRect&, sf::FloatRect&)’
src/sf.cpp:5193:17: nota: el candidato es:
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota: bool sf::Rect<T>::Intersects(const sf::Rect<T>&, sf::Rect<T>*) const [con T = float]
/usr/local/include/SFML/Graphics/Rect.inl:101:6: nota:   no hay una conversión conocida para el argumento 2 de ‘sf::FloatRect {aka sf::Rect<float>}’ a ‘sf::Rect<float>*’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_9Transform___init__(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:7141:53: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7141:66: error: se esperaba un especificador de tipo
src/sf.cpp:7141:66: error: se esperaba ‘;’
src/sf.cpp: En la función ‘void __pyx_pf_2sf_9Transform_1__dealloc__(PyObject*)’:
src/sf.cpp:7168:60: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_2__str__(PyObject*)’:
src/sf.cpp:7216:75: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_3__mul__(PyObject*, PyObject*)’:
src/sf.cpp:7389:3: error: ‘Transform’ no es un miembro de ‘sf’
src/sf.cpp:7389:18: error: ‘__pyx_v_p_t’ no se declaró en este ámbito
src/sf.cpp:7480:25: error: se esperaba un especificador de tipo
src/sf.cpp:7480:25: error: se esperaba ‘;’
src/sf.cpp:7489:75: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7489:136: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7499:79: error: no se puede usar ‘__pyx_f_2sf_wrap_transform_instance’ como una función
src/sf.cpp:7536:75: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_6matrix___get__(PyObject*)’:
src/sf.cpp:7629:75: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_4combine(PyObject*, PyObject*)’:
src/sf.cpp:7713:3: error: ‘Transform’ no es un miembro de ‘sf’
src/sf.cpp:7713:18: error: ‘__pyx_v_p’ no se declaró en este ámbito
src/sf.cpp:7730:19: error: se esperaba un especificador de tipo
src/sf.cpp:7730:19: error: se esperaba ‘;’
src/sf.cpp:7739:70: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7739:142: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7749:73: error: no se puede usar ‘__pyx_f_2sf_wrap_transform_instance’ como una función
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_5get_inverse(PyObject*, PyObject*)’:
src/sf.cpp:7777:3: error: ‘Transform’ no es un miembro de ‘sf’
src/sf.cpp:7777:18: error: ‘__pyx_v_p’ no se declaró en este ámbito
src/sf.cpp:7793:19: error: se esperaba un especificador de tipo
src/sf.cpp:7793:19: error: se esperaba ‘;’
src/sf.cpp:7802:70: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7812:73: error: no se puede usar ‘__pyx_f_2sf_wrap_transform_instance’ como una función
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_6rotate(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:7937:55: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:7975:55: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_7scale(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:8146:55: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp:8183:55: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_8transform_point(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:8305:65: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_9transform_rect(PyObject*, PyObject*)’:
src/sf.cpp:8381:70: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9Transform_10translate(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:8479:53: error: ‘struct __pyx_obj_2sf_Transform’ no tiene un miembro llamado ‘p_this’
src/sf.cpp: En el ámbito global:
src/sf.cpp:8508:80: error: redefinición de ‘__pyx_obj_2sf_Transform* __pyx_f_2sf_wrap_transform_instance’
src/sf.cpp:1255:40: error: se define ‘__pyx_obj_2sf_Transform* __pyx_f_2sf_wrap_transform_instance’ previamente aquí
src/sf.cpp:8508:76: error: ‘Transform’ no es un miembro de ‘sf’
src/sf.cpp:8508:91: error: ‘__pyx_v_p_cpp_instance’ no se declaró en este ámbito
src/sf.cpp:1022:27: aviso: se usa la función inline ‘void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**)’ pero nunca se define [activado por defecto]
src/sf.cpp:291:26: aviso: se usa la función inline ‘int __Pyx_PyObject_IsTrue(PyObject*)’ pero nunca se define [activado por defecto]
src/sf.cpp:996:27: aviso: se usa la función inline ‘void __Pyx_ErrRestore(PyObject*, PyObject*, PyObject*)’ pero nunca se define [activado por defecto]
src/sf.cpp:894:27: aviso: se usa la función inline ‘void __Pyx_RaiseUnboundLocalError(const char*)’ pero nunca se define [activado por defecto]
src/sf.cpp:1071:26: aviso: se usa la función inline ‘int __Pyx_PyInt_AsInt(PyObject*)’ pero nunca se define [activado por defecto]
src/sf.cpp:909:27: aviso: se usa la función inline ‘void __Pyx_RaiseTooManyValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
src/sf.cpp:907:27: aviso: se usa la función inline ‘void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)’ pero nunca se define [activado por defecto]
src/sf.cpp:1065:35: aviso: se usa la función inline ‘unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject*)’ pero nunca se define [activado por defecto]
src/sf.cpp:920:26: aviso: se usa la función inline ‘int __Pyx_TypeTest(PyObject*, PyTypeObject*)’ pero nunca se define [activado por defecto]
error: command 'gcc' failed with exit status 1
==> ERROR: Se produjo un error en build().
    Cancelando...
jorge@Abril:~/MYAUR/python2-pysfml2-git$


and yes, I try with sfml-git but the error start equal with "src/hacks.hpp:45:41: error: ‘Transformable’ no es un miembro de ‘sf’"

I dont get it, why python2-sfml refuse to cooperate with me? :-/

GNU User
Python programmer
Blog

 

anything