您的位置:首页 > 其它

编译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位置来进行设置。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: