posts - 36, comments - 30, trackbacks - 0, articles - 0

orge的编译问题

Posted on 2007-07-27 18:06 vcommon 阅读(3099) 评论(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了。

 

Feedback

# re: orge的编译问题  回复  更多评论   

2007-08-06 20:25 by bloodsucker
请问,如何编译OIS_d.dll,CEGUIBase_d.dll
难道我要新建一个DLL工程
然后编译吗?
可是只有.h文件,没有cpp文件
如何编译

# re: orge的编译问题  回复  更多评论   

2007-08-14 14:44 by vcommon
hi bloodsucker:
ois-1.0RC1_Win32.zip,CEGUI-0.5.0b.zip需要下载带源文件的压缩包,然后进行编译. 因为他们是独立于orge的.
编译CEGUI的时候要运行\makefiles\premake下运行build_vs2005.bat,然后才有工程文件直接用.

如果不进行编译,你可以选择下载相应的dll直接使用.

# re: orge的编译问题[未登录]  回复  更多评论   

2007-09-18 16:52 by 小亮
请问,如何去掉manifset, 重新编译CEGUIBase_d.dll呢?
我也碰到这个问题了解决不了啊......

vcommon大哥能不能把修改后的CEGUIBase_d.dll发给我啊?谢谢先^^

我的em:a198416a@163.com
只有注册用户登录后才能发表评论。