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

From KlayGE
Jump to: navigation, search
m
Line 1: Line 1:
[[KlayGE]]依赖于以下的第三方库和工具。从KlayGE 3.12开始,这些库和工具的代码将都包含在KlayGE中,用户可以通过调用build_external.py来编译和安装它们。唯一需要预先安装的只有Python了。
+
[[KlayGE]]的代码依赖于以下的第三方库和工具。从KlayGE 3.12开始,这些库和工具的代码将都包含在KlayGE中,用户可以通过调用build_external.py来编译和安装它们。
  
 
== Core需要:==
 
== Core需要:==
*[http://www.python.org/ Python] 3.2。Debug版本的pythonxx_d.dll需要从Python的源代码自行编译。
 
 
*[http://www.boost.org/ Boost] 1.53.0。推荐的编译命令行请参考[[常见问题解答|FAQ]]。其中只有一部分被[[使用到的boost库|使用到]]。
 
*[http://www.boost.org/ Boost] 1.53.0。推荐的编译命令行请参考[[常见问题解答|FAQ]]。其中只有一部分被[[使用到的boost库|使用到]]。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
 
*[http://rapidxml.sourceforge.net/ RapidXml] 1.13。
Line 8: Line 7:
  
 
== D3D11 Rendering System,DInput Input System和DSound Audio System需要:==
 
== D3D11 Rendering System,DInput Input System和DSound Audio System需要:==
 +
*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。
  
 
== DShow Show System需要:==
 
== DShow Show System需要:==
*Visual Studio 2010附带的Microsoft Windows SDK 7.0A,或者Visual Studio 2008附带的Microsoft Windows SDK 6.0A,或者[http://www.microsoft.com/downloads/details.aspx?FamilyID=484269e2-3b89-47e3-8eb7-1f2be6d7123a&displaylang=en Windows(R) Server 2003 R2 Platform SDK]。
+
*Visual Studio 2012附带的Microsoft Windows SDK 8.0,或
 
+
*Visual Studio 2010附带的Microsoft Windows SDK 7.0A,或
 +
*Visual Studio 2008附带的Microsoft Windows SDK 6.0A,或
 +
*[http://www.microsoft.com/downloads/details.aspx?FamilyID=484269e2-3b89-47e3-8eb7-1f2be6d7123a&displaylang=en Windows(R) Server 2003 R2 Platform SDK]。
  
 
== OggVorbis Audio Datasource需要:==
 
== OggVorbis Audio Datasource需要:==
 
*[http://xiph.org/downloads/ libogg] 1.3.0和[http://xiph.org/downloads/ libvorbis] 1.3.3,需要把它们编译成static库。
 
*[http://xiph.org/downloads/ libogg] 1.3.0和[http://xiph.org/downloads/ libvorbis] 1.3.3,需要把它们编译成static库。
 
  
 
== OpenAL Audio System需要:==
 
== OpenAL Audio System需要:==
 
*[http://www.openal.org/downloads.html OpenAL SDK] 1.1。
 
*[http://www.openal.org/downloads.html OpenAL SDK] 1.1。
 
  
 
== OpenGL Rendering System需要:==
 
== OpenGL Rendering System需要:==
 
*[http://developer.nvidia.com/object/cg_toolkit.html NVIDIA Cg] 3.0。
 
*[http://developer.nvidia.com/object/cg_toolkit.html NVIDIA Cg] 3.0。
  
 
+
== OpenGL ES Rendering System需要:==
== OpenGL ES 2 Rendering System需要:==
+
 
*[http://developer.nvidia.com/tegra-resources-archive x86 Windows OpenGL ES 2.0 Emulator] 或
 
*[http://developer.nvidia.com/tegra-resources-archive 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需要:==
 +
*[http://www.python.org/ Python] 3.2。
  
 
== KFontGen工具需要:==
 
== KFontGen工具需要:==
Line 38: Line 39:
 
= 注意事项 =
 
= 注意事项 =
  
第一次编译[[KlayGE]]之前需要先执行env_vars.py来设置环境变量。
+
在执行编译脚本前需要事先安装Python和[http://www.cmake.org/ CMake]
  
 
由于[[KlayGE]]在VC下使用的运行库是多线程的DLL,所以需要把所有连接到exe的lib的运行库改为多线程DLL(Project->Properties->Configuration Properties->C/C++->Code Generation->Runtime Library,选择Multi-threaded Debug DLL/Multi-threaded DLL)。
 
由于[[KlayGE]]在VC下使用的运行库是多线程的DLL,所以需要把所有连接到exe的lib的运行库改为多线程DLL(Project->Properties->Configuration Properties->C/C++->Code Generation->Runtime Library,选择Multi-threaded Debug DLL/Multi-threaded DLL)。

Revision as of 06:19, 31 March 2013

KlayGE的代码依赖于以下的第三方库和工具。从KlayGE 3.12开始,这些库和工具的代码将都包含在KlayGE中,用户可以通过调用build_external.py来编译和安装它们。

Core需要:

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

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

DShow Show System需要:

  • 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.4.11,编译它的Debug和Release两个solution configuration。


注意事项

在执行编译脚本前需要事先安装Python和CMake

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