<p>我正在尝试在windows中使用visualstudio2012构建_pjsuac扩展。在</p>
<p>我从这里下载了源代码-<a href="http://www.pjsip.org/download.htm" rel="nofollow">http://www.pjsip.org/download.htm</a>。在</p>
<p>我已经安装了Python27,并将<strong>C:\Python27\include</strong>和<strong>C:\Python27\libs</strong>目录添加到项目<strong>include</strong>和<strong>库</strong>目录。在</p>
<p>我按照这里的说明-<a href="https://trac.pjsip.org/repos/wiki/Python_SIP/Build_Install" rel="nofollow">https://trac.pjsip.org/repos/wiki/Python_SIP/Build_Install</a>。在</p>
<p>在Microsoft Windows with Visual Studio中的<strong>步骤1:构建C扩展</strong>下,其说明:</p>
<pre><code>Visual Studio 2005:
1. Open pjproject-vs8.sln from the PJSIP distribution directory.
2. Select either Debug or Release from the build configuration
Note: the Python module does not support other build configurations.
3. In Visual Studio, right click python_pjsua project from the Solution Explorer panel, and select Build from the pop-up menu.
Note: the python_pjsua project is not built by default if you build the solution, hence it needs to be built manually by right-clicking and select Build from the pop-up menu.
4. The _pjsua.pyd Python module will be placed in pjsip-apps\lib directory.
or in case of debug, it will be _pjsua_d.pyd
</code></pre>
<p>在步骤3(构建python_pjsua项目)中,我得到了错误</p>
^{pr2}$
<p>在<strong>C:/Python27/libs</strong>中,我有一个文件<strong>Python27.lib</strong>。在</p>
<p>这个C扩展只适用于python2.4(python24)吗??在</p>
<p>提前谢谢</p>