在mac os x上安装pyffmpeg的问题

时间:2011-10-19 14:42:03

标签: python macos cython failed-installation

我在mac os X lion上安装pyffmpeg(https://code.google.com/p/pyffmpeg/)时遇到了一些麻烦。它没有在任何地方列出依赖关系,我发现在玩了一下后它需要cython。我通过easy_install安装了cython,这很好。但是当我尝试安装时,它会出现编译错误。日志粘贴在下面(删除,但它仍然在pyffmpeg留言板上)。

这可能不是什么神奇的东西,但我没有得到它。可能是cython的版本错误吗?

更新:我稍微进一步了,我想我错过了一些库,我仍然卡住了,现在编译,输出粘贴在下面,也在pyffmpeg的留言板上(https:// code.google.com/p/pyffmpeg/issues/detail?id=44)。

    sampa:pyffmpeg-2.1beta alex$ sudo python setup.py install
    running install
    running build
    running build_ext
    cythoning pyffmpeg.pyx to pyffmpeg.c
    warning: pyffmpeg.pyx:1904:49: Unreachable code

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    ##################################################################



    def py_av_register_all():
        if __registered:
                      ^
    ------------------------------------------------------------

    pyffmpeg.pyx:705:19: local variable '__registered' referenced before assignment
    building 'pyffmpeg' extension
    C compiler: llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe

    compile options: '-I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/Library/Python/2.7/site-packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-x86_64.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
    llvm-gcc-4.2: pyffmpeg.c
    pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
    pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
    lipo: can't open input file: /var/tmp//ccXZr5zV.out (No such file or directory)
    pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
    pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
    lipo: can't open input file: /var/tmp//ccXZr5zV.out (No such file or directory)
    error: Command "llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/Library/Python/2.7/site-packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-x86_64.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pyffmpeg.c -o build/temp.macosx-10.7-intel-2.7/pyffmpeg.o" failed with exit status 1

0 个答案:

没有答案