编译Ogre 3D 1.7与Hydrax 0.5.1
2011-04-11 11:42
399 查看
There are 8 lines to modify:1) The line 305 of SimpleGrid.cpp and line 414, 422, 437 and 445 of Mesh.cpp must be modified from something like this:
[code]mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);to
[code]mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();2) The line 306 of CfgFileManager.cpp must be set to
[code]Ogre::vector<Ogre::String>::type Cmpnts = Ogre::StringUtil::split(CfgFile.getSetting("Components"), "|");3) The line 290 of CfgFileManager.cpp to
[code]bool CfgFileManager::_isStringInList(const Ogre::vector<Ogre::String>::type &List, const Ogre::String &Find)4) The line 159 of CfgFileManager.h to:
[code]static bool _isStringInList(const Ogre::vector<Ogre::String>::type &List, const Ogre::String &Find);5) Might I also suggest to remove either HYDRAX_EXPORTS or HYDRAX_LIB from the vc8 files. It is confusing. Btw IMO using HYDRAX_EXPORTS is more explicit. For me HYDRAX_LIB is to compile a static version of the library.6) I suggest to use an #if (OGRE_VERSION_MINOR < 7) #else #endif to make it backward compatible for the vector<string>7) Also don't forget to set H***E_OGRE_BUILDSETTINGS_H if you have some special settings (such as not using this *?/"&**!!! NedAlloc. 8 ) Could you make the project as if it was an Ogre sample ? This would permit to have only relative paths and would make it much easier to compile the first time.That's it.Bye博主注: 按照上面的步骤基本都可以找到要修改的项目,就是有些行数什么的差几行,眼力差点的Ctrl+F一下关键的词就应该可以找出来了。还有一点要注意的是从wiki上面的链接下载的Hydrax项目的包含目录和附加库目录都是没有设置的,需要按照自己安装的SDK位置来进行设置。
相关文章推荐
- 在Ogre 1.7 (Cthuga)下编译Hydrax 0.5.1(修改过程)
- 合成器框架 -----OGRE 3D 1.7 Beginner‘s Guide中文版 第八章
- cmake 编译 ogre3D(version1.9) for android
- 【转载】Ogre3d 2.1 源码编译安装教程
- 编译Ogre1.7
- OGRE 3D 1.7 Beginner‘s Guide中文版 第一章
- OGRE1.7学习笔记一:编译ogre
- Ogre3d Android平台编译教程
- 在ubuntu9.10下编译OGRE1.7 & CEGUI0.7.1
- OGRE 3D 1.7 Beginner‘s Guide中文版 第二章
- VS2008中OGRE1.7.4下配置Hydrax-v0.5.1插件
- 摄像机,光源和阴影 -----OGRE 3D 1.7 Beginner‘s Guide中文版 第三章
- OGRE 3D 1.7 Beginner's Guide
- OGRE1.7图形引擎使用1:编译ogre
- 使用cmake在fedora18编译ogre3d 1.8
- 场景管理器 -----OGRE 3D 1.7 Beginner‘s Guide中文版 第六章
- Ogre 3D的启动顺序 -----OGRE 3D 1.7 Beginner‘s Guide中文版 第九章
- OGRE1.7 3D图形引擎2:singleton,Smart Point,Memory Manager
- 摄像机,光源和阴影 -----OGRE 3D 1.7 Beginner‘s Guide中文版 第四章
- ogre particle editor在ogre1.7.x下不能编译