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

Author Topic: Compilation failed : sf::Shader::unbind doesn't exist  (Read 7551 times)

0 Members and 1 Guest are viewing this topic.

gaulois94

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
Compilation failed : sf::Shader::unbind doesn't exist
« on: November 04, 2012, 10:04:00 pm »
Hi everybody,

First, sorry for my bad english, I'm not used to writing in english. Why I post here and not in the french forum ? Because here is more active and I try to perform my english.

Well, I have a problem with de pysfml compilation : gcc can not find the member unbind in sf::Shader class. I have tried to launch patch.py but it didn't work. I use the latest sfml source (from git) and use python3 too.

Here it's the exact error :

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

running build
running build_ext
building 'sfml' extension
gcc -pthread -Wno-unused-result -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_6Shader_20unbind(__pyx_obj_4sfml_Shader*)’:
src/sfml.cpp:39367:25: erreur: ‘class sf::Shader’ has no member named ‘unbind’
src/sfml.cpp: At global scope:
src/sfml.cpp:34862: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 in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Compilation failed : sf::Shader::unbind doesn't exist
« Reply #1 on: November 04, 2012, 10:09:13 pm »
It was removed recently, the binding is probably not up-to-date.
Laurent Gomila - SFML developer

gaulois94

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
Re: Compilation failed : sf::Shader::unbind doesn't exist
« Reply #2 on: November 04, 2012, 10:40:32 pm »
OK, thank you. I will wait the update.

Just to know, why did you remove this function ?
« Last Edit: November 04, 2012, 10:46:48 pm by gaulois94 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Compilation failed : sf::Shader::unbind doesn't exist
« Reply #3 on: November 05, 2012, 08:06:08 am »
It's explained in the commit message.
Laurent Gomila - SFML developer

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
Re: Compilation failed : sf::Shader::unbind doesn't exist
« Reply #4 on: December 02, 2012, 11:33:43 pm »
I just fixed it and a few other bugs on the repo (only on the master branch currently). Sorry for the delay.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython