OGRE 源码地址
http://www.ogre3d.org/download/source
下载 OGRE 1.7.1 Source For Windows
http://sourceforge.net/projects/ogre/files/ogre/1.7/ogre_src_v1-7-1.exe/download
下载 Microsoft Visual C++ Dependencies Package
下载 cmake
http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-x86.zip
全部解压,得到三个文件夹
ogre_src_v1-7-1
Dependencies
cmake-2.8.2-win32-x86
把后两个文件夹放入ogre_src_v1-7-1 文件夹中
一、编译依赖库
打开 ogre_src_v1-7-1/Dependencies/src 中的vs2008 解决方案文件,OgreDependencies.VS2008.sln
分别以debug 和release 模式编译两次
二、用cmake 生成OGRE 的解决方案 OGRE.sln
运行 ogre_src_v1-7-1/cmake-2.8.2-win32-x86/bin/cmake-gui.exe
"Where is the source code"和 "Where to build the binaries" 都填ogre_src_v1-7-1 所在路径,如E:/ogre/ogre_src_v1-7-1
点击configure ->选择Visual Studio 9 2008 ->点击finish ->出来的单选框里该选的都选上(D3D10,GLES 不选) ->再次点击configure ->点击Generate 生成OGRE.sln
三、编译OGRE 源码
打开ogre_src_v1-7-1/OGRE.sln
分别以debug 和release 模式编译两次
运行demo
ogre_src_v1-7-1/bin/release/SampleBrowser.exe