Posted on 2007-07-27 18:06
vcommon 阅读(3127)
评论(3) 编辑 收藏 引用
1:下载了ogre-win32-v1-4-3,OgreDependencies_VC8SP1_Eihort_20070503
加入dependency的include和lib之后编译成功,但是无法运行。报error,“应用程序正常初始化(0xc0150002)失败。”
查到还是manifest的原因,可能是vc8 beta1,beta2或platform sdk有关,根据调试时的提示,找到有问题的dll.CEGUIBase_d.dll,OIS_d.dll,OgreMain_d.dll. 去掉manifset, 重新编译CEGUIBase_d.dll。
3:ois-1.0RC1_Win32.zip,CEGUI-0.5.0b.zip,CEGUI-DEPS-0.5.0b-vc8.zip。
重新编译OIS_d.dll,CEGUIBase_d.dll。
编译OIS的时候默认是static的library,需要自己更改成DebugDll.
编译CEGUI的时候找不到.sln文件。搜到如下,在CEGUI-0.5.0\makefiles\premake下运行build_vs2005.bat,可自动生成.sln文件。
编译完成后替换到OgreDependencies_VC8SP1_Eihort_20070503里使用。
4:编译OGRE成功,但是运行crash.
ogre-win32-v1-4-3\ogrenew\Samples\Common\bin\Debug目录下
修改plugins.cfg:
# Defines plugins to load
# Define plugin folder
PluginFolder=./
# Define D3D rendering implementation plugin
Plugin=RenderSystem_Direct3D9_d.dll
Plugin=Plugin_ParticleFX_d.dll
Plugin=Plugin_BSPSceneManager_d.dll
Plugin=Plugin_CgProgramManager_d.dll
Plugin=Plugin_CgProgramManager_d.dll
修改resources.cfg
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../../Media/packs/OgreCore.zip
# Resource locations to be added to the default path
[General]
FileSystem=../../../Media
FileSystem=../../../Media/fonts
FileSystem=../../../Media/materials/programs
FileSystem=../../../Media/materials/scripts
FileSystem=../../../Media/materials/textures
FileSystem=../../../Media/models
FileSystem=../../../Media/overlays
FileSystem=../../../Media/particle
FileSystem=../../../Media/gui
FileSystem=../../../Media/DeferredShadingMedia
Zip=../../../Media/packs/cubemap.zip
Zip=../../../Media/packs/cubemapsJS.zip
Zip=../../../Media/packs/dragon.zip
Zip=../../../Media/packs/fresneldemo.zip
Zip=../../../Media/packs/ogretestmap.zip
Zip=../../../Media/packs/skybox.zip
终于可以成功完成, 看见demo了。