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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shackra

Pages: 1 2 [3] 4
31
Python / Re: python-sfml2
« on: January 09, 2013, 01:21:58 am »
btw, Do you have any project that try to provides a sort of UI for SFML?
I was thinking to build one relaying on HTML [processed with BeautifulSoup] and CSS [serialized with cssutils], using SFML as a render (like librocket)

32
Python / Re: How do I Inheritance from sfml.TransformableDrawable??
« on: January 07, 2013, 05:01:47 am »
No idea about the segmentation fault.

For the second error, just read the doc/tutorials/whatever. You can't draw a texture, you must use a sprite.

That was my workaround, thanks for the answer! :)

33
Python / [SOLVED] How do I Inheritance from sfml.TransformableDrawable??
« on: December 29, 2012, 12:39:02 am »
I'm trying to write a class that Inheritance from  sfml.TransformableDrawable, however, I don't have clear at all how to use the draw method. However, I got a Segmentation Fault and an TypeError exception:

class Tile(sfml.TransformableDrawable):
    def __init__(self, image):
        sfml.TransformableDrawable.__init__(self)
        if isinstance(image, sfml.Texture):
            self.texture = image
        else:
            raise TATileImageException, ("Se esperaba un objeto del tipo "
                                         "sfml.Texture"
                                         " recibido {0}".format(type(image)))

    def draw(self, target, states):
        # states.transform = self.transform #<--- Segmentation Fault :@
        states.texture = self.texture
        target.draw(self.texture, states) #<--- TypeError: Argument 'drawable' has incorrect type (expected sfml.graphics.Drawable, got sfml.graphics.Texture)

Any help to make this class works?

34
General discussions / Re: python-sfml2: version 1.1
« on: December 16, 2012, 05:28:15 am »
reminder: I'm packaging this bindings for Parabola GNU/Linux-libre ;)

35
Python / Re: python-sfml2
« on: December 16, 2012, 05:25:08 am »
I really love your bindings!

However, you still have to change the license to LGPL (I don't have any problem with this since I use GPL license for my [on development] commercial projects) and add doc strings!!

36
General discussions / Re: python-sfml2: version 1.1
« on: August 13, 2012, 11:34:30 pm »
I feel like I'll give your bindings a chance...

Edit:
wait, what? GPLv3??
I take it!! :D


Edit of the edit:
You should make available a bug tracker (or fix the old one)!

37
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 12, 2012, 11:06:08 pm »
I have updated the source releases. I have also created a “rc-compatible” branch that should work with SFML 2.0 RC.

I feel like you have to make a "source release" compatible with SFML 2.0 RC too!
I'll edit this reply soon because I'm still packaging and I didn't test yet anything!

Edit:
indeed, a "source release" compatible with SFML 2.0 RC is needed!.
so far:
sfml-git + "source release" = error while loading shared libraries: libGLEW.so.1.7: cannot open shared object file: No such file or directory
sfml 2.0 rc + "source release" =
src/sfml.cpp: In function 'void initsfml()':
src/sfml.cpp:57683:30: error: 'BackSpace' is not a member of 'sf::Keyboard'
error: command 'gcc' failed with exit status 1
 

Edit:
sfml-git + "source release" is working now :) (check the attached screenshot!)

[attachment deleted by admin]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

btw I own jorgean[at]lavabit[dot]com, my new email is jorge[at]esavara[dot]cr

pls let me in, lavabit
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEORmQ/HnKp2aOAjuqtplkhLhPbZMFAmK5TEYACgkQtplkhLhP
bZPjNA/9EMGNBbw5qW83nKalmaBjQ7u7l5sKhzu/5kx40GheZA1prU0hP5tVEns7
siSspG+kDT+K3X9S5YGPkEr0j9jyKJio4orWxg6kKQJoaAFVS1ZuLZ4U3zxyRbuI
NLZ4tATpyxWHvChZqN/eMvD4ofdRvO1GvIRSexJvQVr0MCF/J/96iQs5J7TajGQQ
AziSbZ97fA1UKJG9mS+sNvrZJlJXrL2LsV8CD1OtXy9Mtuk6xpTxVnhwn8C03iAp
munQqXeVDbLrYd3Yk9veK9VmToD5i+TbxysQSfxD7Rnx4qOfkTniJrKzv/jidFyQ
Po37UdJolSHHePQ987aaIOO8BxwacfAcC4nUhxyAHDjgYc0BBozvbAVAUEe+kLzb
YEUsawB9C1gIHEAfO6/WqYqvQGC40YmXqXf5z/c4BG48pjuS5I4h4bfNw6Nr5MLj
GiX3mlgKzgZcHxkPh25BdxwcmNPwx5tlVT1JEgvQO0bkSeDBk4a6JMvcEI6toyLL
4hrjjWmuC6iMrgFeUAi5L/cKzj+AveFZfsJpCilMkYa8aQA7h+o8iPhcZaJp1z+h
wQynnoitqrQ6rKgCl1oI6vCihqRPHn9BopBfi+Myf9pou+ox1KXTM+kcUmz3VKju
WN45HOqathpoF4hrWWJ8jFEMnI+jWenGh1sicXdWe+JUln6vm9k=
=HyJp
-----END PGP SIGNATURE-----

 

38
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 08, 2012, 11:21:30 pm »
I just tried to build it from the AUR and got no error. I have the same GCC version.
It seems that you're on a 64 bits system. Could it be that you have an older 32 bits version of SFML and its headers get included?

Yeah! I checked my system with "find /usr/ -iname '*smfl*'" and I deleted some orphane files, it compiles now! :D (and I should got the same result building inside a chroot, as common packages are build)
Ok, this package should be available on Parabola GNU/Linux-libre soon! (or today in few hours!)

Thank you very much, Bastien! :'D

Edit:

I got this error when I tried to import sfml:


jorge@Abril:~$ LC_ALL=C ipython2
Python 2.7.3 (default, Apr 24 2012, 00:00:54)
Type "copyright", "credits" or "license" for more information.

IPython 0.13 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python'
s own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import sfml
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-ecd534b0eea3> in <module>()
----> 1 import sfml

ImportError: /usr/lib/python2.7/site-packages/sfml.so: undefined symbol: wrap_render_target_instance

In [2]: import sfml as sf
Segmentation fault
jorge@Abril:~$
 

Edit of the edit:
wait, I'm reading about this issue on http://en.sfml-dev.org/forums/index.php?topic=5311.msg52943#msg52943 maybe I can fix this reading that

Edit of the edit of the edit:

Looks like compiling from the "doesn't require Cython" packages throw errors either! (using sfml-git as dependencie, of course!)

jorge@Abril:/tmp/pySFML-0.2$ sudo LC_ALL=C python2 setup.py build

If the build fails, run patch.py and try again
----------------------------------------------

running build
running build_ext
building 'sfml' 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 src/sfml.cpp -o build/temp.linux-x86_64-2.7/src/sfml.o
src/sfml.cpp: In function 'int __pyx_pf_4sfml_4Text___init__(__pyx_obj_4sfml_Text*, PyObject*, __pyx_obj_4sfml_Font*, int)':
src/sfml.cpp:29359:95: error: no matching function for call to 'sf::Text::Text(char*)'
src/sfml.cpp:29359:95: note: candidates are:
In file included from /usr/include/SFML/Graphics.hpp:47:0,
                 from src/sfml.cpp:278:
/usr/include/SFML/Graphics/Text.hpp:80:14: note: sf::Text::Text(const sf::String&, const sf::Font&, unsigned int)
/usr/include/SFML/Graphics/Text.hpp:80:14: note:   candidate expects 3 arguments, 1 provided
/usr/include/SFML/Graphics/Text.hpp:70:5: note: sf::Text::Text()
/usr/include/SFML/Graphics/Text.hpp:70:5: note:   candidate expects 0 arguments, 1 provided
/usr/include/SFML/Graphics/Text.hpp:48:25: note: sf::Text::Text(const sf::Text&)
/usr/include/SFML/Graphics/Text.hpp:48:25: note:   no known conversion for argument 1 from 'char*' to 'const sf::Text&'
src/sfml.cpp:29378:135: error: lvalue required as unary '&' operand
src/sfml.cpp:29562:94: error: no matching function for call to 'sf::Text::Text(sf::String&)'
src/sfml.cpp:29562:94: note: candidates are:
In file included from /usr/include/SFML/Graphics.hpp:47:0,
                 from src/sfml.cpp:278:
/usr/include/SFML/Graphics/Text.hpp:80:14: note: sf::Text::Text(const sf::String&, const sf::Font&, unsigned int)
/usr/include/SFML/Graphics/Text.hpp:80:14: note:   candidate expects 3 arguments, 1 provided
/usr/include/SFML/Graphics/Text.hpp:70:5: note: sf::Text::Text()
/usr/include/SFML/Graphics/Text.hpp:70:5: note:   candidate expects 0 arguments, 1 provided
/usr/include/SFML/Graphics/Text.hpp:48:25: note: sf::Text::Text(const sf::Text&)
/usr/include/SFML/Graphics/Text.hpp:48:25: note:   no known conversion for argument 1 from 'sf::String' to 'const sf::Text&'
src/sfml.cpp:29581:135: error: lvalue required as unary '&' operand
src/sfml.cpp: In function 'void initsfml()':
src/sfml.cpp:59124:76: error: 'getDefaultFont' is not a member of 'sf::Font'
error: command 'gcc' failed with exit status 1
jorge@Abril:/tmp/pySFML-0.2$

39
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 06, 2012, 06:22:01 am »
I just updated the repo to compile with the latest SFML. I'm not sure why you're getting so many errors though. Please let me know if you still encounter errors.

Really? because the exact same error appears again! :(

jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$ LC_ALL=C makepkg -si
==> Determining latest git revision...
  -> Version found: 20120805
==> Making package: python2-pysfml2-git 20120805-1 (Sun Aug  5 22:19:12 CST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Starting build()...
==> Connecting to GIT server....
Cloning into 'pysfml2-cython'...
remote: Counting objects: 2342, done.
remote: Compressing objects: 100% (669/669), done.
remote: Total 2342 (delta 1595), reused 2226 (delta 1482)
Receiving objects: 100% (2342/2342), 1.78 MiB | 232 KiB/s, done.
Resolving deltas: 100% (1595/1595), done.
==> GIT checkout done or server timeout
==> Starting make...
Cloning into '/home/jorge/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git/src/pysfml2-cython-build'...
done.

If the build fails, run patch.py and try again
----------------------------------------------

running build
running build_ext
cythoning src/sfml.pyx to src/sfml.cpp
building 'sfml' 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/sfml.cpp -o build/temp.linux-x86_64-2.7/src/sfml.o
In file included from src/sfml.cpp:280:0:
src/hacks.hpp:45:41: error: 'Transformable' is not a member of 'sf'
src/hacks.hpp:45:60: error: 't' was not declared in this scope
src/hacks.hpp:73:53: error: 'sf::RenderStates' has not been declared
src/hacks.hpp:98:29: error: 'sf::Time' has not been declared
src/hacks.hpp:104:1: error: expected class-name before '{' token
src/hacks.hpp:107:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:108:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:109:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:110:13: error: 'Int64' in namespace 'sf' does not name a type
src/sfml.cpp:456:3: error: 'Transform' in namespace 'sf' does not name a type
src/sfml.cpp:523:3: error: 'Transformable' in namespace 'sf' does not name a type
src/sfml.cpp:574:3: error: 'Time' in namespace 'sf' does not name a type
src/sfml.cpp:706:3: error: 'Texture' in namespace 'sf' does not name a type
src/sfml.cpp:812:3: error: 'ContextSettings' in namespace 'sf' does not name a type
src/sfml.cpp:825:3: error: 'Shader' in namespace 'sf' does not name a type
src/sfml.cpp:891:3: error: 'Vertex' in namespace 'sf' does not name a type
src/sfml.cpp:905:3: error: 'RenderStates' in namespace 'sf' does not name a type
src/sfml.cpp:1185:69: error: '__Pyx_PyInt_to_py_sf__Int64' declared as an 'inline' variable
src/sfml.cpp:1185:60: error: 'Int64' is not a member of 'sf'
src/sfml.cpp:1406:80: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:1406:95: error: expected primary-expression before ')' token
src/sfml.cpp:1407:60: warning: 'wrap_time_instance' initialized and declared 'extern' [enabled by default]
src/sfml.cpp:1407:56: error: 'Time' is not a member of 'sf'
src/sfml.cpp:1407:66: error: expected primary-expression before ')' token
src/sfml.cpp:1415:76: error: 'Texture' is not a member of 'sf'
src/sfml.cpp:1415:89: error: expected primary-expression before ',' token
src/sfml.cpp:1415:91: error: expected primary-expression before 'struct'
src/sfml.cpp:1415:129: error: expected primary-expression before 'int'
src/sfml.cpp:1415:132: error: expression list treated as compound expression in initializer [-fpermissive]
src/sfml.cpp:1419:74: error: 'Shader' is not a member of 'sf'
src/sfml.cpp:1419:86: error: expected primary-expression before ',' token
src/sfml.cpp:1419:88: error: expected primary-expression before 'int'
src/sfml.cpp:1419:91: error: expression list treated as compound expression in initializer [-fpermissive]
src/sfml.cpp:1420:93: error: 'ContextSettings' is not a member of 'sf'
src/sfml.cpp:1420:114: error: expected primary-expression before ')' token
src/sfml.cpp:1421:69: warning: 'wrap_render_states_instance' initialized and declared 'extern' [enabled by default]
src/sfml.cpp:1421:65: error: 'RenderStates' is not a member of 'sf'
src/sfml.cpp:1421:83: error: expected primary-expression before ')' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_2is_button_pressed(PyObject*, int)':
src/sfml.cpp:3506:15: error: 'isButtonPressed' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_4get_position(PyObject*, __pyx_obj_4sfml_RenderWindow*)':
src/sfml.cpp:3619:19: error: 'getPosition' is not a member of 'sf::Mouse'
src/sfml.cpp:3631:19: error: 'getPosition' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_6set_position(PyObject*, PyObject*, __pyx_obj_4sfml_RenderWindow*)':
src/sfml.cpp:3807:5: error: 'setPosition' is not a member of 'sf::Mouse'
src/sfml.cpp:3819:5: error: 'setPosition' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_2is_connected(PyObject*, unsigned int)':
src/sfml.cpp:3937:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_4get_button_count(PyObject*, unsigned int)':
src/sfml.cpp:4001:43: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_6has_axis(PyObject*, unsigned int, int)':
src/sfml.cpp:4102:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4102:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4102:15: error: expected ')' before '__pyx_v_axis'
src/sfml.cpp:4102:113: error: expected ')' before ';' token
src/sfml.cpp:4102:113: error: expected ')' before ';' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_8is_button_pressed(PyObject*, unsigned int, unsigned int)':
src/sfml.cpp:4203:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_10get_axis_position(PyObject*, unsigned int, int)':
src/sfml.cpp:4304:38: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4304:88: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4304:103: error: expected ')' before '__pyx_v_axis'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_12update(PyObject*)':
src/sfml.cpp:4353:7: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Keyboard_2is_key_pressed(PyObject*, int)':
src/sfml.cpp:4462:15: error: 'sf::Keyboard' has not been declared
src/sfml.cpp:4462:15: error: 'sf::Keyboard' has not been declared
src/sfml.cpp:4462:15: error: expected ')' before '__pyx_v_key'
src/sfml.cpp:4462:98: error: expected ')' before ';' token
src/sfml.cpp:4462:98: error: expected ')' before ';' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_4left___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5061:52: error: 'sf::IntRect' has no member named 'left'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_4left_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5120:25: error: 'sf::IntRect' has no member named 'left'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_3top___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5163:52: error: 'sf::IntRect' has no member named 'top'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_3top_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5222:25: error: 'sf::IntRect' has no member named 'top'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_5width___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5265:52: error: 'sf::IntRect' has no member named 'width'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_5width_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5324:25: error: 'sf::IntRect' has no member named 'width'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_6height___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5367:52: error: 'sf::IntRect' has no member named 'height'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_6height_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5426:25: error: 'sf::IntRect' has no member named 'height'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_8contains(__pyx_obj_4sfml_IntRect*, int, int)':
src/sfml.cpp:5516:15: error: 'sf::IntRect' has no member named 'contains'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_12intersects(__pyx_obj_4sfml_IntRect*, __pyx_obj_4sfml_IntRect*, __pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5721:17: error: 'sf::IntRect' has no member named 'intersects'
src/sfml.cpp:5746:17: error: 'sf::IntRect' has no member named 'intersects'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_4left___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6522:56: error: 'sf::FloatRect' has no member named 'left'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_4left_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6581:25: error: 'sf::FloatRect' has no member named 'left'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_3top___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6624:56: error: 'sf::FloatRect' has no member named 'top'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_3top_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6683:25: error: 'sf::FloatRect' has no member named 'top'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_5width___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6726:56: error: 'sf::FloatRect' has no member named 'width'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_5width_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6785:25: error: 'sf::FloatRect' has no member named 'width'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_6height___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6828:56: error: 'sf::FloatRect' has no member named 'height'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_6height_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6887:25: error: 'sf::FloatRect' has no member named 'height'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_8contains(__pyx_obj_4sfml_FloatRect*, int, int)':
src/sfml.cpp:6977:15: error: 'sf::FloatRect' has no member named 'contains'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_12intersects(__pyx_obj_4sfml_FloatRect*, __pyx_obj_4sfml_FloatRect*, __pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:7182:17: error: 'sf::FloatRect' has no member named 'intersects'
src/sfml.cpp:7207:17: error: 'sf::FloatRect' has no member named 'intersects'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9Transform___init__(__pyx_obj_4sfml_Transform*, PyObject*)':
src/sfml.cpp:9613:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:9613:32: error: expected type-specifier
src/sfml.cpp:9613:32: error: expected ';'
src/sfml.cpp:9705:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:9705:32: error: expected type-specifier
src/sfml.cpp:9705:32: error: expected ';'
src/sfml.cpp: In function 'void __pyx_pf_4sfml_9Transform_2__dealloc__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:9787:24: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_4__str__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:9845:39: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_6__mul__(PyObject*, PyObject*)':
src/sfml.cpp:10028:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10028:18: error: '__pyx_v_p_t' was not declared in this scope
src/sfml.cpp:10119:25: error: expected type-specifier
src/sfml.cpp:10119:25: error: expected ';'
src/sfml.cpp:10128:77: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10128:140: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10138:81: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp:10175:77: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_8__imul__(__pyx_obj_4sfml_Transform*, PyObject*)':
src/sfml.cpp:10284:20: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10284:84: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_6matrix___get__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10360:39: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_10combine(__pyx_obj_4sfml_Transform*, __pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10459:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10459:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10475:19: error: expected type-specifier
src/sfml.cpp:10475:19: error: expected ';'
src/sfml.cpp:10484:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10484:70: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10494:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_12copy(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10532:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10532:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10548:19: error: expected type-specifier
src/sfml.cpp:10548:19: error: expected ';'
src/sfml.cpp:10558:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_14get_inverse(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10596:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10596:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10612:19: error: expected type-specifier
src/sfml.cpp:10612:19: error: expected ';'
src/sfml.cpp:10621:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10631:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_16rotate(__pyx_obj_4sfml_Transform*, PyObject*, PyObject*, PyObject*)':
src/sfml.cpp:10767:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10805:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_18scale(__pyx_obj_4sfml_Transform*, float, float, PyObject*, PyObject*)':
src/sfml.cpp:10987:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:11024:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_20transform_point(__pyx_obj_4sfml_Transform*, float, float)':
src/sfml.cpp:11157:29: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_22transform_rect(__pyx_obj_4sfml_Transform*, __pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:11247:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_24translate(__pyx_obj_4sfml_Transform*, float, float)':
src/sfml.cpp:11353:17: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: At global scope:
src/sfml.cpp:11382:84: error: redefinition of '__pyx_obj_4sfml_Transform* __pyx_f_4sfml_wrap_transform_instance'
src/sfml.cpp:1406:42: error: '__pyx_obj_4sfml_Transform* __pyx_f_4sfml_wrap_transform_instance' previously defined here
src/sfml.cpp:11382:80: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:11382:95: error: '__pyx_v_p_cpp_instance' was not declared in this scope
src/sfml.cpp:1130:27: warning: inline function 'void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**)' used but never defined [enabled by default]
src/sfml.cpp:329:26: warning: inline function 'int __Pyx_PyObject_IsTrue(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:989:27: warning: inline function 'void __Pyx_ErrRestore(PyObject*, PyObject*, PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:976:27: warning: inline function 'void __Pyx_RaiseUnboundLocalError(const char*)' used but never defined [enabled by default]
src/sfml.cpp:987:26: warning: inline function 'int __Pyx_CheckKeywordStrings(PyObject*, const char*, int)' used but never defined [enabled by default]
src/sfml.cpp:1197:26: warning: inline function 'int __Pyx_PyInt_AsInt(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:999:27: warning: inline function 'void __Pyx_RaiseTooManyValuesError(Py_ssize_t)' used but never defined [enabled by default]
src/sfml.cpp:997:27: warning: inline function 'void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)' used but never defined [enabled by default]
src/sfml.cpp:1191:35: warning: inline function 'unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:1010:26: warning: inline function 'int __Pyx_TypeTest(PyObject*, PyTypeObject*)' used but never defined [enabled by default]
error: command 'gcc' failed with exit status 1
==> ERROR: A failure occurred in build().
    Aborting...
jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$
 

here is the information of my actual GNU GCC package:

jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$ LC_ALL=C pacman -Qi gcc
Name           : gcc
Version        : 4.7.1-5
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  FDL  custom
Groups         : base-devel
Provides       : None
Depends On     : gcc-libs=4.7.1-5  binutils>=2.22  libmpc  cloog  ppl
Optional Deps  : None
Required By    : boost-build  ghc
Conflicts With : None
Replaces       : None
Installed Size : 74616.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : x86_64
Build Date     : Sat Jul 21 20:31:26 2012
Install Date   : Wed Jul 25 18:55:33 2012
Install Reason : Explicitly installed
Install Script : Yes
Description    : The GNU Compiler Collection - C and C++ frontends

jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$
 

40
Python / Re: error: command 'gcc' failed with exit status 1
« on: August 04, 2012, 08:18:14 am »
and the problems came again!
jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$ LC_ALL=C makepkg -s
==> Determining latest git revision...
  -> Version found: 20120804
==> Making package: python2-pysfml2-git 20120804-1 (Sat Aug  4 00:12:18 CST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting 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/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git/src/pysfml2-cython-build'...
done.

If the build fails, run patch.py and try again
----------------------------------------------

running build
running build_ext
cythoning src/sfml.pyx to src/sfml.cpp
building 'sfml' 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/sfml.cpp -o build/temp.linux-x86_64-2.7/src/sfml.o
In file included from src/sfml.cpp:280:0:
src/hacks.hpp:45:41: error: 'Transformable' is not a member of 'sf'
src/hacks.hpp:45:60: error: 't' was not declared in this scope
src/hacks.hpp:73:53: error: 'sf::RenderStates' has not been declared
src/hacks.hpp:98:29: error: 'sf::Time' has not been declared
src/hacks.hpp:104:1: error: expected class-name before '{' token
src/hacks.hpp:107:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:108:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:109:13: error: 'Int64' in namespace 'sf' does not name a type
src/hacks.hpp:110:13: error: 'Int64' in namespace 'sf' does not name a type
src/sfml.cpp:456:3: error: 'Transform' in namespace 'sf' does not name a type
src/sfml.cpp:523:3: error: 'Transformable' in namespace 'sf' does not name a type
src/sfml.cpp:574:3: error: 'Time' in namespace 'sf' does not name a type
src/sfml.cpp:706:3: error: 'Texture' in namespace 'sf' does not name a type
src/sfml.cpp:812:3: error: 'ContextSettings' in namespace 'sf' does not name a type
src/sfml.cpp:825:3: error: 'Shader' in namespace 'sf' does not name a type
src/sfml.cpp:891:3: error: 'Vertex' in namespace 'sf' does not name a type
src/sfml.cpp:905:3: error: 'RenderStates' in namespace 'sf' does not name a type
src/sfml.cpp:1185:69: error: '__Pyx_PyInt_to_py_sf__Int64' declared as an 'inline' variable
src/sfml.cpp:1185:60: error: 'Int64' is not a member of 'sf'
src/sfml.cpp:1406:80: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:1406:95: error: expected primary-expression before ')' token
src/sfml.cpp:1407:60: warning: 'wrap_time_instance' initialized and declared 'extern' [enabled by default]
src/sfml.cpp:1407:56: error: 'Time' is not a member of 'sf'
src/sfml.cpp:1407:66: error: expected primary-expression before ')' token
src/sfml.cpp:1415:76: error: 'Texture' is not a member of 'sf'
src/sfml.cpp:1415:89: error: expected primary-expression before ',' token
src/sfml.cpp:1415:91: error: expected primary-expression before 'struct'
src/sfml.cpp:1415:129: error: expected primary-expression before 'int'
src/sfml.cpp:1415:132: error: expression list treated as compound expression in initializer [-fpermissive]
src/sfml.cpp:1419:74: error: 'Shader' is not a member of 'sf'
src/sfml.cpp:1419:86: error: expected primary-expression before ',' token
src/sfml.cpp:1419:88: error: expected primary-expression before 'int'
src/sfml.cpp:1419:91: error: expression list treated as compound expression in initializer [-fpermissive]
src/sfml.cpp:1420:93: error: 'ContextSettings' is not a member of 'sf'
src/sfml.cpp:1420:114: error: expected primary-expression before ')' token
src/sfml.cpp:1421:69: warning: 'wrap_render_states_instance' initialized and declared 'extern' [enabled by default]
src/sfml.cpp:1421:65: error: 'RenderStates' is not a member of 'sf'
src/sfml.cpp:1421:83: error: expected primary-expression before ')' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_2is_button_pressed(PyObject*, int)':
src/sfml.cpp:3508:15: error: 'isButtonPressed' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_4get_position(PyObject*, __pyx_obj_4sfml_RenderWindow*)':
src/sfml.cpp:3621:19: error: 'getPosition' is not a member of 'sf::Mouse'
src/sfml.cpp:3633:19: error: 'getPosition' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_5Mouse_6set_position(PyObject*, PyObject*, __pyx_obj_4sfml_RenderWindow*)':
src/sfml.cpp:3809:5: error: 'setPosition' is not a member of 'sf::Mouse'
src/sfml.cpp:3821:5: error: 'setPosition' is not a member of 'sf::Mouse'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_2is_connected(PyObject*, unsigned int)':
src/sfml.cpp:3939:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_4get_button_count(PyObject*, unsigned int)':
src/sfml.cpp:4003:43: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_6has_axis(PyObject*, unsigned int, int)':
src/sfml.cpp:4104:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4104:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4104:15: error: expected ')' before '__pyx_v_axis'
src/sfml.cpp:4104:113: error: expected ')' before ';' token
src/sfml.cpp:4104:113: error: expected ')' before ';' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_8is_button_pressed(PyObject*, unsigned int, unsigned int)':
src/sfml.cpp:4205:15: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_10get_axis_position(PyObject*, unsigned int, int)':
src/sfml.cpp:4306:38: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4306:88: error: 'sf::Joystick' has not been declared
src/sfml.cpp:4306:103: error: expected ')' before '__pyx_v_axis'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Joystick_12update(PyObject*)':
src/sfml.cpp:4355:7: error: 'sf::Joystick' has not been declared
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_8Keyboard_2is_key_pressed(PyObject*, int)':
src/sfml.cpp:4464:15: error: 'sf::Keyboard' has not been declared
src/sfml.cpp:4464:15: error: 'sf::Keyboard' has not been declared
src/sfml.cpp:4464:15: error: expected ')' before '__pyx_v_key'
src/sfml.cpp:4464:98: error: expected ')' before ';' token
src/sfml.cpp:4464:98: error: expected ')' before ';' token
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_4left___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5030:52: error: 'sf::IntRect' has no member named 'left'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_4left_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5089:25: error: 'sf::IntRect' has no member named 'left'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_3top___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5132:52: error: 'sf::IntRect' has no member named 'top'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_3top_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5191:25: error: 'sf::IntRect' has no member named 'top'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_5width___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5234:52: error: 'sf::IntRect' has no member named 'width'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_5width_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5293:25: error: 'sf::IntRect' has no member named 'width'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_6height___get__(__pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5336:52: error: 'sf::IntRect' has no member named 'height'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_7IntRect_6height_2__set__(__pyx_obj_4sfml_IntRect*, int)':
src/sfml.cpp:5395:25: error: 'sf::IntRect' has no member named 'height'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_8contains(__pyx_obj_4sfml_IntRect*, int, int)':
src/sfml.cpp:5485:15: error: 'sf::IntRect' has no member named 'contains'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_7IntRect_12intersects(__pyx_obj_4sfml_IntRect*, __pyx_obj_4sfml_IntRect*, __pyx_obj_4sfml_IntRect*)':
src/sfml.cpp:5690:17: error: 'sf::IntRect' has no member named 'intersects'
src/sfml.cpp:5715:17: error: 'sf::IntRect' has no member named 'intersects'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_4left___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6458:56: error: 'sf::FloatRect' has no member named 'left'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_4left_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6517:25: error: 'sf::FloatRect' has no member named 'left'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_3top___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6560:56: error: 'sf::FloatRect' has no member named 'top'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_3top_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6619:25: error: 'sf::FloatRect' has no member named 'top'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_5width___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6662:56: error: 'sf::FloatRect' has no member named 'width'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_5width_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6721:25: error: 'sf::FloatRect' has no member named 'width'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_6height___get__(__pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:6764:56: error: 'sf::FloatRect' has no member named 'height'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9FloatRect_6height_2__set__(__pyx_obj_4sfml_FloatRect*, float)':
src/sfml.cpp:6823:25: error: 'sf::FloatRect' has no member named 'height'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_8contains(__pyx_obj_4sfml_FloatRect*, int, int)':
src/sfml.cpp:6913:15: error: 'sf::FloatRect' has no member named 'contains'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9FloatRect_12intersects(__pyx_obj_4sfml_FloatRect*, __pyx_obj_4sfml_FloatRect*, __pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:7118:17: error: 'sf::FloatRect' has no member named 'intersects'
src/sfml.cpp:7143:17: error: 'sf::FloatRect' has no member named 'intersects'
src/sfml.cpp: In function 'int __pyx_pf_4sfml_9Transform___init__(__pyx_obj_4sfml_Transform*, PyObject*)':
src/sfml.cpp:9516:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:9516:32: error: expected type-specifier
src/sfml.cpp:9516:32: error: expected ';'
src/sfml.cpp:9608:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:9608:32: error: expected type-specifier
src/sfml.cpp:9608:32: error: expected ';'
src/sfml.cpp: In function 'void __pyx_pf_4sfml_9Transform_2__dealloc__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:9690:24: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_4__str__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:9748:39: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_6__mul__(PyObject*, PyObject*)':
src/sfml.cpp:9931:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:9931:18: error: '__pyx_v_p_t' was not declared in this scope
src/sfml.cpp:10022:25: error: expected type-specifier
src/sfml.cpp:10022:25: error: expected ';'
src/sfml.cpp:10031:77: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10031:140: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10041:81: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp:10078:77: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_8__imul__(__pyx_obj_4sfml_Transform*, PyObject*)':
src/sfml.cpp:10187:20: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10187:84: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_6matrix___get__(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10263:39: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_10combine(__pyx_obj_4sfml_Transform*, __pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10362:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10362:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10378:19: error: expected type-specifier
src/sfml.cpp:10378:19: error: expected ';'
src/sfml.cpp:10387:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10387:70: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10397:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_12copy(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10435:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10435:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10451:19: error: expected type-specifier
src/sfml.cpp:10451:19: error: expected ';'
src/sfml.cpp:10461:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_14get_inverse(__pyx_obj_4sfml_Transform*)':
src/sfml.cpp:10499:3: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:10499:18: error: '__pyx_v_p' was not declared in this scope
src/sfml.cpp:10515:19: error: expected type-specifier
src/sfml.cpp:10515:19: error: expected ';'
src/sfml.cpp:10524:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10534:75: error: '__pyx_f_4sfml_wrap_transform_instance' cannot be used as a function
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_16rotate(__pyx_obj_4sfml_Transform*, PyObject*, PyObject*, PyObject*)':
src/sfml.cpp:10670:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10708:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_18scale(__pyx_obj_4sfml_Transform*, float, float, PyObject*, PyObject*)':
src/sfml.cpp:10890:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp:10927:19: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_20transform_point(__pyx_obj_4sfml_Transform*, float, float)':
src/sfml.cpp:11060:29: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_22transform_rect(__pyx_obj_4sfml_Transform*, __pyx_obj_4sfml_FloatRect*)':
src/sfml.cpp:11150:34: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: In function 'PyObject* __pyx_pf_4sfml_9Transform_24translate(__pyx_obj_4sfml_Transform*, float, float)':
src/sfml.cpp:11256:17: error: 'struct __pyx_obj_4sfml_Transform' has no member named 'p_this'
src/sfml.cpp: At global scope:
src/sfml.cpp:11285:84: error: redefinition of '__pyx_obj_4sfml_Transform* __pyx_f_4sfml_wrap_transform_instance'
src/sfml.cpp:1406:42: error: '__pyx_obj_4sfml_Transform* __pyx_f_4sfml_wrap_transform_instance' previously defined here
src/sfml.cpp:11285:80: error: 'Transform' is not a member of 'sf'
src/sfml.cpp:11285:95: error: '__pyx_v_p_cpp_instance' was not declared in this scope
src/sfml.cpp:1130:27: warning: inline function 'void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**)' used but never defined [enabled by default]
src/sfml.cpp:329:26: warning: inline function 'int __Pyx_PyObject_IsTrue(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:989:27: warning: inline function 'void __Pyx_ErrRestore(PyObject*, PyObject*, PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:976:27: warning: inline function 'void __Pyx_RaiseUnboundLocalError(const char*)' used but never defined [enabled by default]
src/sfml.cpp:987:26: warning: inline function 'int __Pyx_CheckKeywordStrings(PyObject*, const char*, int)' used but never defined [enabled by default]
src/sfml.cpp:1197:26: warning: inline function 'int __Pyx_PyInt_AsInt(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:999:27: warning: inline function 'void __Pyx_RaiseTooManyValuesError(Py_ssize_t)' used but never defined [enabled by default]
src/sfml.cpp:997:27: warning: inline function 'void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)' used but never defined [enabled by default]
src/sfml.cpp:1191:35: warning: inline function 'unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject*)' used but never defined [enabled by default]
src/sfml.cpp:1010:26: warning: inline function 'int __Pyx_TypeTest(PyObject*, PyTypeObject*)' used but never defined [enabled by default]
error: command 'gcc' failed with exit status 1
==> ERROR: A failure occurred in build().
    Aborting...
jorge@Abril:~/coders/PKGBUILDs/abslibre/pcr/python2-pysfml2-git$
 

This is, indeed, quite annoying. Is something wrong in your code or it's me?
I'm using the lastest sfml version from GIT:

jorge@Abril:~$ LC_ALL=C pacman -Qi sfml-git
Name           : sfml-git
Version        : 20120803-3
URL            : http://www.sfml-dev.org/
Licenses       : zlib
Groups         : None
Provides       : sfml
Depends On     : libsndfile  libxrandr  libjpeg  openal  glew  freetype2
Optional Deps  : None
Required By    : None
Conflicts With : sfml
Replaces       : None
Installed Size : 8996.00 KiB
Packager       : Jorge Araya Navarro <jorgean@lavabit.com>
Architecture   : x86_64
Build Date     : Fri Aug 3 20:12:56 2012
Install Date   : Fri Aug 3 23:54:47 2012
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : A simple, fast, cross-platform, and object-oriented multimedia API.

jorge@Abril:~$
 

41
Python / Re: Text doesn't show up
« on: April 25, 2012, 02:42:37 am »
huh, I see... so, I should do letra = sfml.Font.load_from_file("sometypography.ttf") instead of what I am doing!
and yes, it works now :)

thanks!

42
Python / [Solved] Text doesn't show up (pysfml-cython)
« on: April 24, 2012, 04:54:52 am »
Hello! :D

I finally can build PySFML :), so, I started playing with it, but Oh Lord!, I can't make appears a simple text in the game window, here is the code:
Code: [Select]
#!/usr/bin/python2
#-*- coding: utf-8 -*-

import sfml

window = sfml.RenderWindow(sfml.VideoMode(640, 480),
                           "Dibujando una imagen en SFML")
window.framerate_limit = 60
running = True
texture = sfml.Texture.load_from_file("mog.png")
sprite = sfml.Sprite(texture)
letra = sfml.Font()
print letra.DEFAULT_FONT
texto = sfml.Text("Hola mundo!", letra, 50)
texto.color = sfml.Color.BLACK
print texto.string

while running:
    for event in window.iter_events():
        if event.type == sfml.Event.CLOSED:
            running = False
        if event.type == sfml.Event.KEY_PRESSED:
            if sfml.Keyboard.is_key_pressed(sfml.Keyboard.W):
                sprite.y -= 10
            if sfml.Keyboard.is_key_pressed(sfml.Keyboard.S):
                sprite.y += 10
            if sfml.Keyboard.is_key_pressed(sfml.Keyboard.A):
                sprite.x -= 10
            if sfml.Keyboard.is_key_pressed(sfml.Keyboard.D):
                sprite.x += 10

    window.clear(sfml.Color.WHITE)
    window.draw(sprite)
    window.draw(texto)
    window.display()

window.close()

what I'm doing wrong?

43
Python / PySFML 2?
« on: March 13, 2012, 05:22:38 pm »
Quote
Quote from: bastien
That's strange, because the file includes hacks.hpp which includes SFML/Graphics.hpp. I have added an explicit include of Transformable.hpp to make sure it's recognized.


Just to be sure, this is the output of sfml-git package been compiled from AUR, I added that line, but:

nothing...

Code: [Select]
jorge@Abril:~/MYAUR/python2-pysfml2-git$ rm -fr src/pysfml2-cython-build/
jorge@Abril:~/MYAUR/python2-pysfml2-git$ makepkg -si
==> Determinando ultima revisión de git...
  -> Versión encontrada: 20120313
==> Creando el paquete: python2-pysfml2-git 20120313-1 (mar 13 mar 10:06:46 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_4left___get__(PyObject*)’:
src/sf.cpp:3706:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘left’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_4left_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:3758:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘left’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_3top___get__(PyObject*)’:
src/sf.cpp:3791:86: error: ‘sf::IntRect’ no tiene un miembro llamado ‘top’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_7IntRect_3top_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:3843:59: error: ‘sf::IntRect’ no tiene un miembro llamado ‘top’
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_3contains(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:4092:15: error: ‘sf::IntRect’ no tiene un miembro llamado ‘contains’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_7IntRect_4intersects(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:4197:17: error: ‘sf::IntRect’ no tiene un miembro llamado ‘intersects’
src/sf.cpp:4222:17: error: ‘sf::IntRect’ no tiene un miembro llamado ‘intersects’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_4left___get__(PyObject*)’:
src/sf.cpp:4677:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘left’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_4left_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:4729:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘left’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_3top___get__(PyObject*)’:
src/sf.cpp:4762:92: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘top’
src/sf.cpp: En la función ‘int __pyx_pf_2sf_9FloatRect_3top_1__set__(PyObject*, PyObject*)’:
src/sf.cpp:4814:61: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘top’
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_3contains(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:5063:15: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘contains’
src/sf.cpp: En la función ‘PyObject* __pyx_pf_2sf_9FloatRect_4intersects(PyObject*, PyObject*, PyObject*)’:
src/sf.cpp:5168:17: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘intersects’
src/sf.cpp:5193:17: error: ‘sf::FloatRect’ no tiene un miembro llamado ‘intersects’
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 l[/quote]a 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$


then I decided to use the typical method, just python setup.py build. then a different error appears:

Code: [Select]
jorge @ April: ~ / $ python setup.py build MYAUR/python2-pysfml2-git/src/pysfml2-cython
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-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 src / sf.cpp-o build / temp.linux-x86_64-2.7/src/sf.o
In file included from / usr / include / SFML / Graphics / Transformable.hpp: 32:0,
                 from src / hacks.hpp: 35,
                 from src / sf.cpp: 241:
/ Usr / include / SFML / Graphics / Transform.hpp: 42:25: error: variable 'sf sf :: Transform :: SFML_API_IMPORT' has initializer but incomplete type
/ Usr / include / SFML / Graphics / Transform.hpp: 44:1: error: expected primary-expression before 'public'
/ Usr / include / SFML / Graphics / Transform.hpp: 44:1: error: expected '}' before 'public'
/ Usr / include / SFML / Graphics / Transform.hpp: 44:1: error: expected ',' or ';' before 'public'
/ Usr / include / SFML / Graphics / Transform.hpp: 70:47: error: expected constructor, destructor, or type conversion before ';' token
/ Usr / include / SFML / Graphics / Transform.hpp: 87:30: error: non-member function 'const float * sf :: getMatrix ()' can not have cv-qualifier
/ Usr / include / SFML / Graphics / Transform.hpp: 98:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 109:47: error: non-member function 'sf sf :: :: Vector2f transformPoint (float, float)' can not have cv-qualifier
/ Usr / include / SFML / Graphics / Transform.hpp: 119:52: error: non-member function 'sf sf :: :: Vector2f transformPoint (Vector2f const &)' can not have cv-qualifier
/ Usr / include / SFML / Graphics / Transform.hpp: 135:57: error: non-member function 'sf sf :: :: FloatRect transformRect (FloatRect const &)' can not have cv-qualifier
/ Usr / include / SFML / Graphics / Transform.hpp: 149:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 169:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 188:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 207:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 233:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 258:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 278:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 305:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 324:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 349:5: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 354:18: error: 'Transform' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 356:1: error: expected unqualified-id before 'private'
/ Usr / include / SFML / Graphics / Transform.hpp: 376:1: error: 'SFML_API_IMPORT' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 390:1: error: 'SFML_API_IMPORT' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 404:1: error: 'SFML_API_IMPORT' does not name a type
/ Usr / include / SFML / Graphics / Transform.hpp: 406:1: error: expected declaration before '}' token
error: command 'gcc' failed with exit status 1
jorge @ April: ~ / $ MYAUR/python2-pysfml2-git/src/pysfml2-cython

44
Python / PySFML 2?
« on: March 13, 2012, 02:39:35 am »
Quote from: "bastien"
It looks like you don't have the latest SFML. The classes it doesn't find have been added pretty recently. Install it directly from git: https://aur.archlinux.org/packages.php?ID=48026


Nop. I uninstalled the old sfml-1.99 and then installed that package, so, I tried again with your bindings, but the error look exactly the same, even starting with:

Code: [Select]
In file included from src/sf.cpp:241:0:
src/hacks.hpp:45:41: error: ‘Transformable’ no es un miembro de ‘sf’


:(

45
Python / nop, still with the problem
« 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? :-/

Pages: 1 2 [3] 4
anything