OGRE1.8.1預編譯包vs2010x86異常問題

輝輝 (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


發佈了32 篇原創文章 · 獲贊 8 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章