limscoder / amfast

An Adobe AMF serialization and RPC implementation for Python, written as a C extension for speed.
MIT License
5 stars 6 forks source link

unable to build in osx from pypi download or from trunk #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
some header files seem to be missing and the build errors out. 
when i tried from svn:

building 'amfast.encode' extension
error: unknown file type '.h' (from 'amfast/ext_src/amf.h')

when i tried from the pypi download:

amfast/ext_src/encoder.c:5:17: error: amf.h: No such file or directory
amfast/ext_src/encoder.c:6:21: error: context.h: No such file or directory
amfast/ext_src/encoder.c:31: error: expected ‘)’ before ‘*’ token
amfast/ext_src/encoder.c:32: error: expected ‘)’ before ‘*’ token
amfast/ext_src/encoder.c:33: error: expected ‘)’ before ‘*’ token

Original issue reported on code.google.com by vijays...@gmail.com on 5 Sep 2010 at 4:22

GoogleCodeExporter commented 9 years ago
I don't know why this is breaking or why this fix works, but it's broken and 
this fix works. Just comment out the dependencies no the .h files. 

extensions = Feature(
    "AMF encoder/decoder C extension.",
    standard = True,
    optional = True,
    ext_modules = [
        Extension('amfast.encode',
            sources = [os.path.join('amfast', 'ext_src', 'encoder.c'),
                os.path.join('amfast', 'ext_src', 'amf.c'),
                #os.path.join('amfast', 'ext_src', 'amf.h')                                                                                                                                                                            
                       ]),
        Extension('amfast.decode',
            sources = [os.path.join('amfast', 'ext_src', 'decoder.c'),
                os.path.join('amfast', 'ext_src', 'amf.c'),
                #os.path.join('amfast', 'ext_src', 'amf.h')                                                                                                                                                                            
                       ]),
        Extension('amfast.buffer',
            sources = [os.path.join('amfast', 'ext_src', 'buffer.c'),
                #os.path.join('amfast', 'ext_src', 'buffer.h')                                                                                                                                                                         
                       ]),
        Extension('amfast.context',
            sources = [os.path.join('amfast', 'ext_src', 'context.c'),
                #os.path.join('amfast', 'ext_src', 'context.h')                                                                                                                                                                        
                       ])
    ])

Original comment by simhac...@gmail.com on 21 Sep 2010 at 4:58

GoogleCodeExporter commented 9 years ago

Original comment by dthomp...@gmail.com on 23 Oct 2010 at 7:50