0 Members and 1 Guest are viewing this topic.
njohn@natty1:~/code/pysfml2-cython$ python setup.py build_ext --inplacerunning build_extcythoning sf.pyx to sf.cppError converting Pyrex file to C:------------------------------------------------------------...# Hack for static methods and attributescdef extern from "SFML/Graphics.hpp" namespace "sf::Keyboard": cdef cppclass Key: pass bint IsKeyPressed(Key) ^------------------------------------------------------------/home/njohn/code/pysfml2-cython/declkey.pxd:43:21: Function argument cannot have C name specificationError converting Pyrex file to C:------------------------------------------------------------...cdef extern from "SFML/Graphics.hpp" namespace "sf::VideoMode": cdef VideoMode& GetDesktopMode() cdef vector[VideoMode]& GetFullscreenModes()cdef extern from "SFML/Graphics.hpp" namespace "sf::Matrix3": cdef Matrix3 Transformation(Vector2f&, Vector2f&, float, Vector2f&) ^
Error converting Pyrex file to C:------------------------------------------------------------... raise PySFMLException("Couldn't open music in file " + filename) @classmethod def open_from_memory(cls, bytes data): cdef declaudio.Music *p = new declaudio.Music() ^------------------------------------------------------------/home/njohn/code/pysfml2-cython/sf.pyx:991:38: new operator can only be applied to a C++ classbuilding 'sf' extensiongcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.occ1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++sf.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.error: command 'gcc' failed with exit status 1
Hi,Following the instructions shown here: http://pysfml2-cython.readthedocs.org/en/latest/building.html#building-with-cython-installedI'm getting the following error:Quotenjohn@natty1:~/code/pysfml2-cython$ python setup.py build_ext --inplacerunning build_extcythoning sf.pyx to sf.cppError converting Pyrex file to C:------------------------------------------------------------...# Hack for static methods and attributescdef extern from "SFML/Graphics.hpp" namespace "sf::Keyboard": cdef cppclass Key: pass bint IsKeyPressed(Key) ^------------------------------------------------------------/home/njohn/code/pysfml2-cython/declkey.pxd:43:21: Function argument cannot have C name specificationError converting Pyrex file to C:------------------------------------------------------------...cdef extern from "SFML/Graphics.hpp" namespace "sf::VideoMode": cdef VideoMode& GetDesktopMode() cdef vector[VideoMode]& GetFullscreenModes()cdef extern from "SFML/Graphics.hpp" namespace "sf::Matrix3": cdef Matrix3 Transformation(Vector2f&, Vector2f&, float, Vector2f&) ^<snip>QuoteError converting Pyrex file to C:------------------------------------------------------------... raise PySFMLException("Couldn't open music in file " + filename) @classmethod def open_from_memory(cls, bytes data): cdef declaudio.Music *p = new declaudio.Music() ^------------------------------------------------------------/home/njohn/code/pysfml2-cython/sf.pyx:991:38: new operator can only be applied to a C++ classbuilding 'sf' extensiongcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.occ1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++sf.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.error: command 'gcc' failed with exit status 1I'm build the latest version just pulled from githubpython version 2.7.1Anybody know what I'm doing wrong or missing?Thanks in advance..