我正在尝试按照http://swift.im/swiften/guide/#Example-EchoBot1上的示例,使用 swiften 库构建一个简单的 XMPP 客户端。
提到的示例需要文件 Swiften.h。根据 swiften 邮件列表,这个文件是在构建 swiften 时生成的。因此,我尝试按照http://swift.im/git/swift-contrib/tree/Documentation/BuildingOnWindows.txt中的说明在我的 Windows 机器上构建它。
因为他们声明 Qt 和 open ssl 是可选的,所以我直接通过运行 scons 来构建。
这是我得到的输出:
c:\swift-2.0>scons scons: Reading SConscript files ... scons: warning: No installed VCs File "C:\swift-2.0\SConstruct", line 1, in <module> scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly File "C:\swift-2.0\SConstruct", line 1, in <module> scons: warning: No installed VCs File "C:\swift-2.0\SConstruct", line 1, in <module> scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly File "C:\swift-2.0\SConstruct", line 1, in <module> KeyError: 'MSVS_VERSION': File "C:\swift-2.0\SConstruct", line 1: variant_dir = SConscript("BuildTools/SCons/SConscript.boot") File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 614: return method(*args, **kw) File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 551: return _SConscript(self.fs, *files, **subst_kw) File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 260: exec _file_ in call_stack[-1].globals File "C:\swift-2.0\BuildTools\SCons\SConscript.boot", line 240: if int(env["MSVS_VERSION"].split(".")[0]) < 10 : File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Environment.py", line 409: return self._dict[key]
如何设置脚本以查找我的 Visual Studio 版本?
谢谢,
此致,
C