ogre1.2.4 for vc2005 编译备忘
环境:系统win2000,ogre1.2.4for vc2005, DX90sdk_Oct2005
-----------------
install package:
-----------------
ogre-win32-v1-2-4.zip
OgreDependencies_VC8_1.2.0p2.zip
OgreSDKSetup1.2.4_VC80.exe
DX90sdk_Oct2005
----------------
install dir:
----------------
H:/ProgramFiles/Ogre/
H:/ProgramFiles/Ogre/OgreSDK
H:/ProgramFiles/Ogre/ogrenew
H:/ProgramFiles/Ogre/Dependencies
H:/ProgramFiles/Ogre/Samples
----------------
vc include:
----------------
H:/ProgramFiles/DirectXSDK/DX90sdk_Oct2005/Include
H:/ProgramFiles/Ogre/Dependencies/include
H:/ProgramFiles/Ogre/Dependencies/include/CEGUI(有几个gui的项目需要)
....(vc默认的一些目录)
H:/Program Files/DirectXSDK/DirectX10/Include(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/SDK 9.5/LIBS/inc(非必须)
----------------
vc lib:
----------------
H:/ProgramFiles/DirectXSDK/DX90sdk_Oct2005/Lib/x86
H:/ProgramFiles/Ogre/Dependencies/lib/Release
H:/ProgramFiles/Ogre/Dependencies/lib/Debug
....(vc默认的一些目录)
H:/Program Files/DirectXSDK/DirectX10/Lib/x86(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/SDK 9.5/LIBS/lib/Debug(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/Cg/lib(非必须)
----------------
编译
----------------
打开H:/ProgramFiles/Ogre/ogrenew/Ogre_vc8.sln
生成-》批编译(Bach build)-》全部选择,重新生成
(memory:256M,cpu:1.7G;需时:1小时)
----------------
运行demo
----------------
demo的exe文件在以下目录:
H:/ProgramFiles/Ogre/ogrenew/Samples/Common/bin/Debug
H:/ProgramFiles/Ogre/ogrenew/Samples/Common/bin/Release
(运行exe时发现缺少zlib1.dll,于是在H:/ProgramFiles/Ogre中搜索zlib1.dll,并将其考到上面两个目录下)
Demo_BSP.exe 提示unable to read zip file.退出
Demo_Gui.exe , Demo_FacialAnimation.exe, Demo_Compositor.exe
提示Runtime Error,This application has requested the Runtime to terminate it in an unusual way,退出
Demo_DeferredShading.exe 提示An exception has been thrown! Your card dos not support at least 2 simulataneous render targets,so cannot run this demo.退出
环境:系统win2000,ogre1.2.4for vc2005, DX90sdk_Oct2005
-----------------
install package:
-----------------
ogre-win32-v1-2-4.zip
OgreDependencies_VC8_1.2.0p2.zip
OgreSDKSetup1.2.4_VC80.exe
DX90sdk_Oct2005
----------------
install dir:
----------------
H:/ProgramFiles/Ogre/
H:/ProgramFiles/Ogre/OgreSDK
H:/ProgramFiles/Ogre/ogrenew
H:/ProgramFiles/Ogre/Dependencies
H:/ProgramFiles/Ogre/Samples
----------------
vc include:
----------------
H:/ProgramFiles/DirectXSDK/DX90sdk_Oct2005/Include
H:/ProgramFiles/Ogre/Dependencies/include
H:/ProgramFiles/Ogre/Dependencies/include/CEGUI(有几个gui的项目需要)
....(vc默认的一些目录)
H:/Program Files/DirectXSDK/DirectX10/Include(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/SDK 9.5/LIBS/inc(非必须)
----------------
vc lib:
----------------
H:/ProgramFiles/DirectXSDK/DX90sdk_Oct2005/Lib/x86
H:/ProgramFiles/Ogre/Dependencies/lib/Release
H:/ProgramFiles/Ogre/Dependencies/lib/Debug
....(vc默认的一些目录)
H:/Program Files/DirectXSDK/DirectX10/Lib/x86(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/SDK 9.5/LIBS/lib/Debug(非必须)
H:/Program Files/CGSDK/NVIDIA Corporation/Cg/lib(非必须)
----------------
编译
----------------
打开H:/ProgramFiles/Ogre/ogrenew/Ogre_vc8.sln
生成-》批编译(Bach build)-》全部选择,重新生成
(memory:256M,cpu:1.7G;需时:1小时)
----------------
运行demo
----------------
demo的exe文件在以下目录:
H:/ProgramFiles/Ogre/ogrenew/Samples/Common/bin/Debug
H:/ProgramFiles/Ogre/ogrenew/Samples/Common/bin/Release
(运行exe时发现缺少zlib1.dll,于是在H:/ProgramFiles/Ogre中搜索zlib1.dll,并将其考到上面两个目录下)
Demo_BSP.exe 提示unable to read zip file.退出
Demo_Gui.exe , Demo_FacialAnimation.exe, Demo_Compositor.exe
提示Runtime Error,This application has requested the Runtime to terminate it in an unusual way,退出
Demo_DeferredShading.exe 提示An exception has been thrown! Your card dos not support at least 2 simulataneous render targets,so cannot run this demo.退出