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 - th1z

Pages: [1]
1
Python / pysfml2-cython
« on: August 14, 2011, 03:44:24 pm »
I tried to compile this under linux, but i am getting errors.
Could somebody help me?
These are the first few lines of the output:

Code: [Select]

python2 ./setup.py build_ext --inplace
running build_ext
skipping 'sf.cpp' Cython extension (up-to-date)
building 'sf' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fPIC -I/usr/include/python2.7 -c sf.cpp -o build/temp.linux-x86_64-2.7/sf.o
sf.cpp:378:3: error: ‘RenderImage’ in namespace ‘sf’ does not name a type
sf.cpp: In function ‘int __pyx_pf_2sf_5Sound___cinit__(PyObject*, PyObject*, PyObject*)’:
sf.cpp:9420:168: error: no matching function for call to ‘sf::Sound::Sound(sf::SoundBuffer&, int&, float&, float&, sf::Vector3f&)’
sf.cpp:9420:168: note: candidates are:
/usr/local/include/SFML/Audio/Sound.hpp:68:5: note: sf::Sound::Sound(const sf::Sound&)
/usr/local/include/SFML/Audio/Sound.hpp:68:5: note:   candidate expects 1 argument, 5 provided
/usr/local/include/SFML/Audio/Sound.hpp:60:5: note: sf::Sound::Sound(const sf::SoundBuffer&)
/usr/local/include/SFML/Audio/Sound.hpp:60:5: note:   candidate expects 1 argument, 5 provided
/usr/local/include/SFML/Audio/Sound.hpp:52:5: note: sf::Sound::Sound()
/usr/local/include/SFML/Audio/Sound.hpp:52:5: note:   candidate expects 0 arguments, 5 provided
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_4Font_5get_image(PyObject*, PyObject*)’:
sf.cpp:13603:84: error: ‘class sf::Font’ has no member named ‘GetImage’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_6smooth___get__(PyObject*)’:
sf.cpp:14253:15: error: ‘class sf::Image’ has no member named ‘IsSmooth’
sf.cpp: In function ‘int __pyx_pf_2sf_5Image_6smooth_1__set__(PyObject*, PyObject*)’:
sf.cpp:14305:57: error: ‘class sf::Image’ has no member named ‘SetSmooth’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_5load_from_screen(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14581:46: error: ‘class sf::Image’ has no member named ‘CopyScreen’
sf.cpp:14593:46: error: ‘class sf::Image’ has no member named ‘CopyScreen’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_7load_from_pixels(PyObject*, PyObject*, PyObject*)’:
sf.cpp:14840:39: error: ‘class sf::Image’ has no member named ‘LoadFromPixels’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_8get_maximum_size(PyObject*, PyObject*)’:
sf.cpp:14915:39: error: ‘GetMaximumSize’ is not a member of ‘sf::Image’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_9bind(PyObject*, PyObject*)’:
sf.cpp:14954:57: error: ‘class sf::Image’ has no member named ‘Bind’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_14get_tex_coords(PyObject*, PyObject*)’:
sf.cpp:15589:71: error: ‘class sf::Image’ has no member named ‘GetTexCoords’
sf.cpp: In function ‘PyObject* __pyx_pf_2sf_5Image_17update_pixels(PyObject*, PyObject*, PyObject*)’:
sf.cpp:15841:59: error: ‘class sf::Image’ has no member named ‘UpdatePixels’
sf.cpp:15862:59: error: ‘class sf::Image’ has no member named ‘UpdatePixels’
sf.cpp: In function ‘int __pyx_pf_2sf_6Sprite___cinit__(PyObject*, PyObject*, PyObject*)’:
sf.cpp:18958:217: error: no matching function for call to ‘sf::Sprite::Sprite(sf::Image&, sf::Vector2f&, sf::Vector2f&, float&, sf::Color&)’


Am i doing something wrong?
Or do i use the wrong sfml2 version? (Should be the newest github version)

Pages: [1]
anything