Bienvenue, Invité. Merci de vous connecter ou de vous inscrire. Avez-vous oublié d'activer ?

Voir les contributions

Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.


Messages - gaulois94

Pages: « Précédente 1 ... 9 10 [11]
151
Python / Re: Problème compilation PYSFML 2 python 3.2
« le: Avril 03, 2012, 11:13:11 pm »
en effet je l'avais oublié x) . Dernière question : où je mes la librairie (le .so créé) ? Si je le met dans /usr/lib, il ne fonctionne pas (import sfml retourne une erreur).

Merci encore.

152
Python / Re: Problème compilation PYSFML 2 python 3.2
« le: Avril 02, 2012, 08:43:16 pm »
Je suis désoler mais j'ai encore quelques petits problèmes de compilations que voici :

mickael@Sereno: ~/Téléchargements/bastienleonard-pysfml2-cython-6c4b128$ su -c "python3 setup3k.py build_ext"
Mot de passe :

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

running build_ext
building 'sfml' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -I/usr/include/python3.2mu -c src/sfml.cpp -o build/temp.linux-x86_64-3.2/src/sfml.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/sfml.cpp: In function ‘PyObject* __pyx_pf_4sfml_9Transform_6matrix___get__(PyObject*)’:
src/sfml.cpp:7848:8: warning: variable ‘__pyx_v_i’ set but not used [-Wunused-but-set-variable]
src/sfml.cpp: At global scope:
src/sfml.cpp:27805:39: warning: ‘__pyx_obj_4sfml_Vertex* __pyx_f_4sfml_wrap_vertex_instance(sf::Vertex*)’ defined but not used [-Wunused-function]
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -I/usr/include/python3.2mu -c src/hacks.cpp -o build/temp.linux-x86_64-3.2/src/hacks.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from src/hacks.cpp:32:0:
src/sfml.h:15:32: error: expected constructor, destructor, or type conversion before ‘set_error_message’
src/sfml.h:16:40: error: expected constructor, destructor, or type conversion before ‘convert_to_vector2f’
src/sfml.h:17:55: error: expected constructor, destructor, or type conversion before ‘*’ token
src/sfml.h:18:56: error: expected constructor, destructor, or type conversion before ‘*’ token
src/sfml.h:19:63: error: expected constructor, destructor, or type conversion before ‘*’ token
src/sfml.h:20:63: error: expected constructor, destructor, or type conversion before ‘*’ token
src/hacks.cpp: In member function ‘virtual int MyBuff::sync()’:
src/hacks.cpp:105:38: error: ‘set_error_message’ was not declared in this scope
src/hacks.cpp: In member function ‘virtual void CppDrawable::draw(sf::RenderTarget&, sf::RenderStates) const’:
src/hacks.cpp:139:73: error: ‘wrap_render_target_instance’ was not declared in this scope
src/hacks.cpp:141:37: error: ‘wrap_render_states_instance’ was not declared in this scope
src/hacks.cpp: In member function ‘virtual sf::Vector2f CppShape::getPoint(unsigned int) const’:
src/hacks.cpp:208:40: error: ‘convert_to_vector2f’ was not declared in this scope
src/hacks.cpp: In member function ‘virtual bool CppSoundStream::onGetData(sf::SoundStream::Chunk&)’:
src/hacks.cpp:241:69: error: ‘wrap_chunk_instance’ was not declared in this scope
src/hacks.cpp: In member function ‘virtual void CppSoundStream::onSeek(sf::Time)’:
src/hacks.cpp:279:34: error: ‘wrap_time_instance’ was not declared in this scope
error: command 'gcc' failed with exit status 1

merci encore.

153
Python / Re: Problème compilation PYSFML 2 python 3.2
« le: Avril 02, 2012, 08:26:16 pm »
de rien et merci encore à toi :D

154
Python / Re: PYSFML 2 manque sfml.Texture.copyToImage()
« le: Avril 02, 2012, 08:25:52 pm »
Merci beaucoup :D

155
Python / Re: Problème compilation PYSFML 2 python 3.2
« le: Avril 01, 2012, 11:03:26 pm »
Bon ben il faut juste attendre à ce que pysfml se met à jours alors (heureusement que j'ai une version fonctionnels sur mon netbook x) ).

156
Python / Re: PYSFML 2 manque sfml.Texture.copyToImage()
« le: Avril 01, 2012, 11:02:37 pm »
J'imagine que c'est un oublie de la part de l'auteur, qui j'espère ajoutera cette méthode à notre bon vieux Texture (j'ai besoin de cette méthode pour changer les pixels d'un Sprite).

157
Site web SFML / Re: Nouveau forum
« le: Avril 01, 2012, 11:15:25 am »
Oui tout est bon quand on va sur la page des stats ;) .

158
Python / Re : PYSFML 2 manque sfml.Texture.copyToImage()
« le: Mars 31, 2012, 01:58:49 pm »
Le help(sf.Texture) est la seconde chose que j'ai vérifié :

class Texture(builtins.object)
 |  Methods defined here:
 | 
 |  __init__(...)
 |      x.__init__(...) initializes x; see help(type(x)) for signature
 | 
 |  bind(...)
 | 
 |  update(...)
 | 
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 | 
 |  height
 | 
 |  repeated
 | 
 |  smooth
 | 
 |  width
 | 
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 | 
 |  MAXIMUM_SIZE = 2048
 | 
 |  __new__ = <built-in method __new__ of type object>
 |      T.__new__(S, ...) -> a new object with type S, a subtype of T
 | 
 |  load_from_file = <built-in method load_from_file of type object>
 | 
 | 
 |  load_from_image = <built-in method load_from_image of type object>
 | 
 | 
 |  load_from_memory = <built-in method load_from_memory of type object>

mais comme vous le voyez, il n'y a pas ce que je cherche. Je suis obligé de passer par une sf.Image afin de pouvoir modifié les pixels une à une (afin d'éclaircir les images notamment).

Merci d'avance.

159
Site web SFML / Re : Nouveau forum
« le: Mars 30, 2012, 11:01:55 pm »
Je ne sais pas si tu l'a remarqué, mais les stats du forum sont les stats de l'ancien forum (et non du nouveau). Es-ce normale ?

160
Bonsoirs,

voila j'aurai besoin de la méthode copyToImage de la classe Texture, mais je ne la retrouve pas dans la documentation. Quelqu'un serai capable de me dire où je pourrais la trouver s'il vous plait ?

merci d'avance :) .

161
Bonsoirs,

voila je recontre un petit problème lors de la tentative de compilation de pysfml 2 building python 3. Je pense que cela est dû à la version de SFML 2 qui date d'aujourd'hui. Voici le code erreur :

python3.2 setup3k.py build_ext

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

running build_ext
building 'sfml' extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.2m -c src/sfml.cpp -o build/temp.linux-x86_64-3.2/src/sfml.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/sfml.cpp: In function ‘PyObject* __pyx_pf_4sfml_9Transform_6matrix___get__(PyObject*)’:
src/sfml.cpp:7848:8: warning: variable ‘__pyx_v_i’ set but not used [-Wunused-but-set-variable]
src/sfml.cpp: In function ‘PyObject* __pyx_pf_4sfml_12RenderTarget_3convert_coords(PyObject*, PyObject*, PyObject*)’:
src/sfml.cpp:33510:116: error: no matching function for call to ‘sf::RenderTarget::convertCoords(unsigned int&, unsigned int&)’
src/sfml.cpp:33510:116: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:152:14: note: sf::Vector2f sf::RenderTarget::convertCoords(const Vector2i&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:152:14: note:   candidate expects 1 argument, 2 provided
/usr/local/include/SFML/Graphics/RenderTarget.hpp:177:14: note: sf::Vector2f sf::RenderTarget::convertCoords(const Vector2i&, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:177:14: note:   no known conversion for argument 1 from ‘unsigned int’ to ‘const Vector2i& {aka const sf::Vector2<int>&}’
src/sfml.cpp:33522:143: error: no matching function for call to ‘sf::RenderTarget::convertCoords(unsigned int&, unsigned int&, sf::View&)’
src/sfml.cpp:33522:143: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:152:14: note: sf::Vector2f sf::RenderTarget::convertCoords(const Vector2i&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:152:14: note:   candidate expects 1 argument, 3 provided
/usr/local/include/SFML/Graphics/RenderTarget.hpp:177:14: note: sf::Vector2f sf::RenderTarget::convertCoords(const Vector2i&, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:177:14: note:   candidate expects 2 arguments, 3 provided
src/sfml.cpp: At global scope:
src/sfml.cpp:27597:39: warning: ‘__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

Voila, merci d'avance :)

Pages: « Précédente 1 ... 9 10 [11]
anything