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

Author Topic: Compilations errors  (Read 6367 times)

0 Members and 1 Guest are viewing this topic.

gaulois94

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
Compilations errors
« on: January 22, 2013, 08:30:01 pm »
Hello,

First, sorry for my bad english, as you can see, I'm not english. Well, I have a problem when I want to compile pysfml. I'm on archlinux, and my sfml version is update.

Well, the errors are the followings :

running build
running build_ext
cythoning src/sfml.pyx to src/sfml.cpp
building 'sfml' extension
creating build
creating build/temp.linux-x86_64-3.3
creating build/temp.linux-x86_64-3.3/src
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.3m -c src/sfml.cpp -o build/temp.linux-x86_64-3.3/src/sfml.o
cc1plus: attention : command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
src/sfml.cpp: In function ‘PyObject* __pyx_pf_4sfml_7Texture_12bind(__pyx_obj_4sfml_Texture*, int)’:
src/sfml.cpp:27247:84: erreur: no matching function for call to ‘sf::Texture::bind(sf::Texture::CoordinateType)’
src/sfml.cpp:27247:84: note: candidate is:
In file included from /usr/include/SFML/Graphics/Font.hpp:33:0,
                 from /usr/include/SFML/Graphics.hpp:35,
                 from src/sfml.cpp:264:
/usr/include/SFML/Graphics/Texture.hpp:454:17: note: static void sf::Texture::bind(const sf::Texture*, sf::Texture::CoordinateType)
/usr/include/SFML/Graphics/Texture.hpp:454:17: note:   no known conversion for argument 1 from ‘sf::Texture::CoordinateType’ to ‘const sf::Texture*’
src/sfml.cpp: In function ‘PyObject* __pyx_pf_4sfml_6Shader_16bind(__pyx_obj_4sfml_Shader*)’:
src/sfml.cpp:39040:30: erreur: no matching function for call to ‘sf::Shader::bind()’
src/sfml.cpp:39040:30: note: candidate is:
In file included from /usr/include/SFML/Graphics.hpp:41:0,
                 from src/sfml.cpp:264:
/usr/include/SFML/Graphics/Shader.hpp:471:17: note: static void sf::Shader::bind(const sf::Shader*)
/usr/include/SFML/Graphics/Shader.hpp:471:17: note:   candidate expects 1 argument, 0 provided
src/sfml.cpp: At global scope:
src/sfml.cpp:34929:39: attention : ‘__pyx_obj_4sfml_Vertex* __pyx_f_4sfml_wrap_vertex_instance(sf::Vertex*)’ defined but not used [-Wunused-function]
error: command 'gcc' failed with exit status 1
 

Thank you for your attention.

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: Compilations errors
« Reply #1 on: January 23, 2013, 03:07:38 am »
The binding is not yet updated to the latest SFML version. You could temporarily downgrade your SFML version to commit 38da3f4338e3b2b11e3dff2726a62104cf27fa73 or wait until the update.
Interested in using SFML with Python ? Try out its Python binding!

gaulois94

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
Re: Compilations errors
« Reply #2 on: January 23, 2013, 08:36:15 pm »
OK, I will wait then. Thank you for your answer.

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
Re: Compilations errors
« Reply #3 on: February 04, 2013, 10:39:04 pm »
It should be fixed now.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

 

anything