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

From KlayGE
Jump to: navigation, search
m
Line 2: Line 2:
  
 
== Core需要:==
 
== Core需要:==
*[http://www.boost.org/ Boost] 1.53.0。推荐的编译命令行请参考[[常见问题解答|FAQ]]。其中只有一部分被[[使用到的boost库|使用到]]。
+
*[http://www.boost.org/ Boost] 1.56.0。其中只有一部分被[[使用到的boost库|使用到]]。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
 
*[http://www.7-zip.org/ 7-zip] 9.20。
 
*[http://www.7-zip.org/ 7-zip] 9.20。
  
 
== D3D11 Rendering System,DInput Input System和DSound Audio System需要:==
 
== D3D11 Rendering System,DInput Input System和DSound Audio System需要:==
 +
*Visual Studio 2013附带的Microsoft Windows SDK 8.1,或
 
*Visual Studio 2012附带的Microsoft Windows SDK 8.0,或
 
*Visual Studio 2012附带的Microsoft Windows SDK 8.0,或
 
*[http://msdn.microsoft.com/directx DirectX SDK] June 2010。
 
*[http://msdn.microsoft.com/directx DirectX SDK] June 2010。
Line 27: Line 28:
  
 
== OpenGL ES Rendering System需要:==
 
== OpenGL ES Rendering System需要:==
*[http://developer.nvidia.com/tegra-resources-archive x86 Windows OpenGL ES 2.0 Emulator] 或
+
*[http://code.google.com/p/angleproject/ Google ANGLE] 或
 +
*[http://developer.nvidia.com/tegra-resources-archive NVIDIA x86 Windows OpenGL ES 2.0 Emulator] 或
 
*[http://www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES2xSGX.asp PowerVR Insider SDK] v2.9 或
 
*[http://www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES2xSGX.asp PowerVR Insider SDK] v2.9 或
 
*[http://www.malideveloper.com/tools/software-development/opengl-es-20-emulator.php ARM Mali OpenGL ES 2.0 Emulator] v1.3
 
*[http://www.malideveloper.com/tools/software-development/opengl-es-20-emulator.php ARM Mali OpenGL ES 2.0 Emulator] v1.3
  
 
== Python Script System需要:==
 
== Python Script System需要:==
*[http://www.python.org/ Python] 3.2。
+
*[http://www.python.org/ Python] 3.4.1。
  
 
== KFontGen工具需要:==
 
== KFontGen工具需要:==

Revision as of 20:59, 9 August 2014

KlayGE的代码依赖于以下的第三方库和工具。从KlayGE 3.12开始,除了OpenGL ES的SDK,其他库和工具的代码将都包含在KlayGE中。用户可以通过调用build_external.py来编译和安装它们。当然,在执行编译脚本前需要事先安装Python 2.7+和CMake 2.8.6+。

Core需要:

D3D11 Rendering System,DInput Input System和DSound Audio System需要:

  • Visual Studio 2013附带的Microsoft Windows SDK 8.1,或
  • Visual Studio 2012附带的Microsoft Windows SDK 8.0,或
  • DirectX SDK June 2010。

DShow Show System需要:

  • Visual Studio 2013附带的Microsoft Windows SDK 8.1,或
  • Visual Studio 2012附带的Microsoft Windows SDK 8.0,或
  • Visual Studio 2010附带的Microsoft Windows SDK 7.0A,或
  • Visual Studio 2008附带的Microsoft Windows SDK 6.0A,或
  • Windows(R) Server 2003 R2 Platform SDK

OggVorbis Audio Datasource需要:

OpenAL Audio System需要:

OpenGL Rendering System需要:

OpenGL ES Rendering System需要:

Python Script System需要:

KFontGen工具需要:

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


注意事项

由于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。