By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

ming for python

P: n/a
Hello everybody !!

anyone has try to build ming0.3beta1 for python 2.3.3 under windows ??

Since three days, I try to build it with mingw32, and finally, I am
stopped with C declarations error in src/actioncompiler/swf4compiler.y

If anyone has build with success ming (mingc.pyd) for python 2.3.3, can
he please send me this file, or explain what I do to build it
successfully ??

I have downloaded all software who are needed (bison, flex, mingw
developer Studio to have make, dlltool, etc...) But finally, I'm not
sure that I can compile theses sources with mingw...

I have followed instructions on

- http://www.u-blog.net/corailnumerique/2003/12/17 (in french, it's my
mother tongue...) and
-
https://sourceforge.net/tracker/inde...65&atid=118365
but no results...

If anyone has a solution, please help me :)
Thierry
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ha ! Ha ! Tu tentes la coup de l'émigration ?
J'espère que ça marchera...
--
Michel Claveau

Jul 18 '05 #2

P: n/a
On Tue, Dec 07, 2004 at 07:55:09PM +0100, titouille wrote:
Hello everybody !!

anyone has try to build ming0.3beta1 for python 2.3.3 under windows ??

Since three days, I try to build it with mingw32, and finally, I am
stopped with C declarations error in src/actioncompiler/swf4compiler.y


I haven't tried under windows, but here is how I got it to compile
under linux. Below is my setup.py

-Jack

"""
This is the setup.py for ming-0.3beta1
Do the normal ming compile and then remove all the .o files
copy this file to py_ext/
and run as a normal python instal, eg 'python setup.py install'
Keep copying header files into this directory until it doesn't complain
Done!
"""

files = []
dirs = ['../src/', '../src/blocks/', '../src/actioncompiler']
ignore = ['read.c', 'main.c']
for (dir) in dirs:
for (file) in os.listdir(dir):
if (file.endswith('.c') and file not in ignore):
files.append('%s/%s' % (dir, file))

files.append('ming_wrap.c')
setup(name="ming",
py_modules=["ming", 'mingc'],
ext_modules=[Extension(name="_mingc",
sources=files,
libraries=['gif', 'png', 'z'],
include_dirs=dirs,
)]
)
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.