pyaaf的安装与测试

与世无争的帅哥 提交于 2020-03-02 11:01:54

#编者注 由于python开发较为快捷,同时也比c++上手难度降低很多。随即选择pyaaf作为aaf操作的方式。需求也需要以最简单的方式实现出效果。 #配置环境变量 linux:export AAF_ROOT=path/to/root/of/AAF-devel-libs windows:我的电脑右键->属性->高级系统设置->高级标签->环境变量

#测试执行

python setup.py build_ext --inplace

windows打印出结果为:

Traceback (most recent call last):
  File "setup.py", line 9, in <module>
    from Cython.Build import cythonize
ImportError: No module named Cython.Build

显示没有cythonize模块,经过搜索发现该模块属于cython,使用pip进行安装 #更新pip

python -m pip install -U pip

#pip安装cython

pip install cython

#继续执行安装发生错误 再次安装

python setup.py build_ext --inplace

发生如下内容

AAF_ROOT = D:\ZhanPeng\build\aaf-devel-libs
Traceback (most recent call last):
  File "setup.py", line 213, in <module>
    com_api, libaafintp, libaafpgapi = get_com_api()
  File "setup.py", line 124, in get_com_api
    raise Exception("Unable to find AAFCOAPI.dll, AAFINTP.dll, AAFPGAPI.dll")
Exception: Unable to find AAFCOAPI.dll, AAFINTP.dll, AAFPGAPI.dll

表明AAF_ROOT的环境配置发生问题。需要详细指导对应的dll位置。
分别按照异常当中的内容,复制dll到环境变量目录
注意:如果python为32位的,则aaf的dll必须为32位

#修复dll位置后执行

python setup.py build_ext --inplace

发生如下内容

AAF_ROOT = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32
AAFCOAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\AAFCOAPI.dll
AAFINTP.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFINTP.dll
AAFPGAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFPGAPI.dll
copying AAFCOAPI.dll -> aaf\AAFCOAPI.dll
copying AAFINTP.dll -> aaf\aafext\AAFINTP.dll
copying AAFPGAPI.dll -> aaf\aafext\AAFPGAPI.dll
running build_ext
building 'aaf.base' extension
error: Unable to find vcvarsall.bat

经过查询发现是缺少Visual Studio,则根据python版本,安装对应的Visual Studio。我们这里的python版本为2.7,则对应Visual Studio 2010

#安装完成Visual Studio 安装完成VS后,还需要配置环境变量,VS90COMNTOOLS = %VS100COMNTOOLS%
注意%VS100COMNTOOLS%是指Visual Studio 2010,其他版本请自行查询
设置好后,打印如下:

D:\ZhanPeng\build\pyaaf>python setup.py build
AAF_ROOT = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32
AAFCOAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\AAFCOAPI.dll
AAFINTP.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFINTP.dll
AAFPGAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFPGAPI.dll
copying AAFCOAPI.dll -> aaf\AAFCOAPI.dll
copying AAFINTP.dll -> aaf\aafext\AAFINTP.dll
copying AAFPGAPI.dll -> aaf\aafext\AAFPGAPI.dll
running build
running build_py
copying aaf\AAFCOAPI.dll -> build\lib.win32-2.7\aaf
copying aaf\aafext\AAFINTP.dll -> build\lib.win32-2.7\aaf\aafext
copying aaf\aafext\AAFPGAPI.dll -> build\lib.win32-2.7\aaf\aafext
running build_ext
building 'aaf.base' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\aaf
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\base.cpp /Fobuild\temp.win32-2.7\Release\aaf\base.obj
base.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initbase build\temp.win32-2.7\Release\aaf\base.obj /OUT:build\lib.win32-2.7\aaf\base.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\base.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\base.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\base.lib 和对象 build\temp.win32-2.7\Release\aaf\base.exp
building 'aaf.component' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\component.cpp /Fobuild\temp.win32-2.7\Release\aaf\component.obj
component.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
aaf\component.cpp(19262) : warning C4244: “=”: 从“long”转换到“aafUInt8”, 可能丢失数据
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initcomponent build\temp.win32-2.7\Release\aaf\component.obj /OUT:build\lib.win32-2.7\aaf\component.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\component.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\component.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\component.lib 和对象 build\temp.win32-2.7\Release\aaf\component.exp
building 'aaf.core' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\core.cpp /Fobuild\temp.win32-2.7\Release\aaf\core.obj
core.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initcore build\temp.win32-2.7\Release\aaf\core.obj /OUT:build\lib.win32-2.7\aaf\core.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\core.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\core.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\core.lib 和对象 build\temp.win32-2.7\Release\aaf\core.exp
building 'aaf.define' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\define.cpp /Fobuild\temp.win32-2.7\Release\aaf\define.obj
define.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initdefine build\temp.win32-2.7\Release\aaf\define.obj /OUT:build\lib.win32-2.7\aaf\define.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\define.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\define.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\define.lib 和对象 build\temp.win32-2.7\Release\aaf\define.exp
building 'aaf.dictionary' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\dictionary.cpp /Fobuild\temp.win32-2.7\Release\aaf\dictionary.obj
dictionary.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
interrupted

D:\ZhanPeng\build\pyaaf>python setup.py build_ext --inplace
AAF_ROOT = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32
AAFCOAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\AAFCOAPI.dll
AAFINTP.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFINTP.dll
AAFPGAPI.dll = D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl\aafext\AAFPGAPI.dll
copying AAFCOAPI.dll -> aaf\AAFCOAPI.dll
copying AAFINTP.dll -> aaf\aafext\AAFINTP.dll
copying AAFPGAPI.dll -> aaf\aafext\AAFPGAPI.dll
running build_ext
building 'aaf.dictionary' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\dictionary.cpp /Fobuild\temp.win32-2.7\Release\aaf\dictionary.obj
dictionary.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initdictionary build\temp.win32-2.7\Release\aaf\dictionary.obj /OUT:build\lib.win32-2.7\aaf\dictionary.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\dictionary.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\dictionary.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\dictionary.lib 和对象 build\temp.win32-2.7\Release\aaf\dictionary.exp
building 'aaf.essence' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\essence.cpp /Fobuild\temp.win32-2.7\Release\aaf\essence.obj
essence.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initessence build\temp.win32-2.7\Release\aaf\essence.obj /OUT:build\lib.win32-2.7\aaf\essence.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\essence.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\essence.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\essence.lib 和对象 build\temp.win32-2.7\Release\aaf\essence.exp
building 'aaf.iterator' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\iterator.cpp /Fobuild\temp.win32-2.7\Release\aaf\iterator.obj
iterator.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:inititerator build\temp.win32-2.7\Release\aaf\iterator.obj /OUT:build\lib.win32-2.7\aaf\iterator.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\iterator.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\iterator.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\iterator.lib 和对象 build\temp.win32-2.7\Release\aaf\iterator.exp
building 'aaf.mob' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\mob.cpp /Fobuild\temp.win32-2.7\Release\aaf\mob.obj
mob.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initmob build\temp.win32-2.7\Release\aaf\mob.obj /OUT:build\lib.win32-2.7\aaf\mob.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\mob.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\mob.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\mob.lib 和对象 build\temp.win32-2.7\Release\aaf\mob.exp
building 'aaf.property' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\property.cpp /Fobuild\temp.win32-2.7\Release\aaf\property.obj
property.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initproperty build\temp.win32-2.7\Release\aaf\property.obj /OUT:build\lib.win32-2.7\aaf\property.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\property.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\property.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\property.lib 和对象 build\temp.win32-2.7\Release\aaf\property.exp
building 'aaf.storage' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\storage.cpp /Fobuild\temp.win32-2.7\Release\aaf\storage.obj
storage.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initstorage build\temp.win32-2.7\Release\aaf\storage.obj /OUT:build\lib.win32-2.7\aaf\storage.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\storage.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\storage.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\storage.lib 和对象 build\temp.win32-2.7\Release\aaf\storage.exp
building 'aaf.util' extension
creating build\temp.win32-2.7\Release\aaf\util
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\util.cpp /Fobuild\temp.win32-2.7\Release\aaf\util.obj
util.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\util\diagnostic_output.cpp /Fobuild\temp.win32-2.7\Release\aaf\util\diagnostic_output.obj
diagnostic_output.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iheaders -ID:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\include -IC:\Python27\include -IC:\Python27\PC /Tpaaf\util\progress_callback.cpp /Fobuild\temp.win32-2.7\Release\aaf\util\progress_callback.obj
progress_callback.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\Win32\Release\Refimpl /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\lib /LIBPATH:D:\ZhanPeng\build\aaf-devel-libs\AAF-devel-libs-Win-1.1.6.0.Win32\bin /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild AAF.lib AAFIID.lib /EXPORT:initutil build\temp.win32-2.7\Release\aaf\util.obj build\temp.win32-2.7\Release\aaf\util\diagnostic_output.obj build\temp.win32-2.7\Release\aaf\util\progress_callback.obj /OUT:build\lib.win32-2.7\aaf\util.pyd /IMPLIB:build\temp.win32-2.7\Release\aaf\util.lib /MANIFESTFILE:build\temp.win32-2.7\Release\aaf\util.pyd.manifest
   正在创建库 build\temp.win32-2.7\Release\aaf\util.lib 和对象 build\temp.win32-2.7\Release\aaf\util.exp
copying build\lib.win32-2.7\aaf\base.pyd -> aaf
copying build\lib.win32-2.7\aaf\component.pyd -> aaf
copying build\lib.win32-2.7\aaf\core.pyd -> aaf
copying build\lib.win32-2.7\aaf\define.pyd -> aaf
copying build\lib.win32-2.7\aaf\dictionary.pyd -> aaf
copying build\lib.win32-2.7\aaf\essence.pyd -> aaf
copying build\lib.win32-2.7\aaf\iterator.pyd -> aaf
copying build\lib.win32-2.7\aaf\mob.pyd -> aaf
copying build\lib.win32-2.7\aaf\property.pyd -> aaf
copying build\lib.win32-2.7\aaf\storage.pyd -> aaf
copying build\lib.win32-2.7\aaf\util.pyd -> aaf

虽然报了一堆错误,但是执行python setup.py install能够正常运行。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!