Difference between revisions of "第三方库和工具"

From KlayGE
Jump to: navigation, search
m (Core需要:)
Line 3: Line 3:
 
== Core需要:==
 
== Core需要:==
 
*[http://www.python.org/ Python] 2.7或3.2。Debug版本的pythonxx_d.dll需要从Python的源代码自行编译。
 
*[http://www.python.org/ Python] 2.7或3.2。Debug版本的pythonxx_d.dll需要从Python的源代码自行编译。
*[http://www.boost.org/ Boost] 1.46.0。推荐的编译命令行请参考[[常见问题解答|FAQ]]。
+
*[http://www.boost.org/ Boost] 1.46.1。推荐的编译命令行请参考[[常见问题解答|FAQ]]。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
  

Revision as of 03:20, 19 April 2011

在编译KlayGE的之前,需要先安装下列第三方库和工具。

Core需要:

  • Python 2.7或3.2。Debug版本的pythonxx_d.dll需要从Python的源代码自行编译。
  • Boost 1.46.1。推荐的编译命令行请参考FAQ
  • RapidXml 1.13。

D3D11 Rendering System和DSound Audio System需要:


DShow Show System需要:


OggVorbis Audio Datasource需要:


OpenAL Audio System需要:


OpenGL Rendering System需要:


OpenGL ES 2 Rendering System需要:


KFontGen工具需要:

  • FreeType 2.4.4,编译它的LIB Debug和LIB Release两个solution configuration。


注意事项

第一次编译KlayGE之前需要先执行env_vars.py来设置环境变量。

由于KlayGE在VC下使用的运行库是多线程的DLL,所以需要把所有连接到exe的lib的运行库改为多线程DLL(Project->Properties->Configuration Properties->C/C++->Code Generation->Runtime Library,选择Multi-threaded Debug DLL/Multi-threaded DLL)。

另外,用VC8和VC9编译Release版的Boost需要定义_SECURE_SCL=0宏,方法之一是在bjam的命令行中加上define=_SECURE_SCL=0。