OGRE1.8.1预编译包vs2010x86异常问题

来源:互联网 发布:软件更新下载 编辑:程序博客网 时间:2024/05/22 03:35

辉辉 (Fighting Bull Studio)

1.  出现异常OGREEXCEPTION (7:InternalErrorException): Unable to compile Cg programOgre/ParticleGS/DisplayVScg

该问题出现是由于加载的资源中有CG程序,但是Plugin_cgmanager不适用而引起的,解决的办法是:如果不需要的话,手动加载指定资源以去掉CG程序资源,再一个是修改resources.cfg文件去掉含有CG程序资源的目录。如何使得加载这些CG程序资源,而不出现这种异常,google之后有人提供解决方案但本人未试过,方法如下:

This assumes that you areworking against Ogre source:

 

(1)Navigate to your CG folder.

(2)Copy the headers from "C:\ProgramFiles\NVIDIA Corporation\Cg\include\Cg" to your dependencies/include/CG

(3)Copy cg.lib from "C:\Program Files\NVIDIACorporation\Cg\lib" to your dependencies/lib/Debug|Release

(4)Copy "C:\Program Files\NVIDIACorporation\Cg\bin\cg.dll" to ogre/samples/common/bin/Debug|Release

(5)Recompile the CG programmanager plugin.

 

2.  出现异常OGREEXCEPTION(5:ItemIdentityException): OverlayElement with name Core/AverageFpsnot found

该问题的出现是由于用了ExampleFrameListener而引起的,或用ExampleApplication而它默认的FrameListener是ExampleFrameListener,这个Listener中会用到OgreCore.zip资源文件,而在1.6还是1.7之后的media包中被移除了,据说唯一留下ExampleApplication和ExampleFrameListener的原因是”遗产”。


3. 出现LinK错误1>  LINK : 没有找到 ..\Debug\HelloOgre.exe 或上一个增量链接没有生成它;正在执行完全链接
1>OIS_d.lib(OIS_d.dll) : error LNK2005: "public: class OIS::MouseState const & __thiscall OIS::Mouse::getMouseState(void)const " (?getMouseState@Mouse@OIS@@QBEABVMouseState@2@XZ) 已经在 HelloOgreFrameListener.obj 中定义
1>..\Debug\HelloOgre.exe : fatal error LNK1169: 找到一个或多个多重定义的符号

解决方法:在#include<OIS\OIS.h> 前面加上#define OIS_DYNAMIC_LIB


原创粉丝点击