@@ -154,16 +154,33 @@ module by typing this command::
154
154
python setup.py build_ext
155
155
156
156
157
+ .. _building_with_cython :
158
+
157
159
Building with Cython installed
158
160
------------------------------
159
161
160
162
.. warning ::
161
163
162
- Currently, modules built straight from the repo probably won't work
163
- (this may depend on your Cython version). Consider using a source
164
- release, or follow the indications from this forum post if you
165
- still want to build from Git:
166
- http://en.sfml-dev.org/forums/index.php?topic=5311.msg52943#msg52943
164
+ Currently, the binding doesn't work correctly when built straight
165
+ from the Git repo. I explained the problem here:
166
+ https://groups.google.com/forum/?fromgroups#!topic/cython-users/W8hMcjsFfDU
167
+ If you want to build from the source, you're encouraged to use the
168
+ latest source release. See :ref: `building_without_cython `. If you
169
+ really want to build from Git, you need to modify the generated
170
+ sfml.cpp file. You need all these declarations::
171
+
172
+ __PYX_EXTERN_C DL_EXPORT(PyObject) *wrap_time_instance(sf::Time *);
173
+ __PYX_EXTERN_C DL_EXPORT(PyObject) *wrap_render_target_instance(sf::RenderTarget *);
174
+ __PYX_EXTERN_C void set_error_message(char*);
175
+ __PYX_EXTERN_C DL_EXPORT(PyObject) *wrap_chunk_instance(sf::SoundStream::Chunk*, int);
176
+
177
+
178
+ I don't know if it's the same exact problem everywhere, but on my
179
+ system I get the first declaration and not the others. So you can
180
+ look for the ``wrap_time_instance() `` declaration, and copy-paste
181
+ the others after it.
182
+
183
+ This bug should be fixed in the next Cython release.
167
184
168
185
.. warning ::
169
186
0 commit comments