编译Ogre 3D 1.7与Hydrax 0.5.1

541 篇文章 26 订阅

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:

mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);


to

mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();




2) The line 306 of CfgFileManager.cpp must be set to

Ogre::vector<Ogre::String>::type Cmpnts = Ogre::StringUtil::split(CfgFile.getSetting("Components"), "|");



3) The line 290 of CfgFileManager.cpp to


bool CfgFileManager::_isStringInList(const Ogre::vector<Ogre::String>::type &List, const Ogre::String &Find)



4) The line 159 of CfgFileManager.h to:

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 HAVE_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位置来进行设置。


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值