OGRE step by step

来源:互联网 发布:电子照片书制作软件 编辑:程序博客网 时间:2024/05/01 05:58

接触ogre 已经一段时间了 ,今天有点收获了。

ogre        vc++ 2005  professional  环境设置

1)安装 vc++ 2005 

 2) 将vc++升级到sp1版本

到官方下载对应版本的升级补丁,由于直接升时间较长 建议用以下批处理

reg export HKLM/Software/Policies/Microsoft/Windows/Installer installer.reg
reg add HKLM/Software/Policies/Microsoft/Windows/Installer /v MaxPatchCacheSize /t REG_DWORD /d 0 /f
net stop msiserver
start /wait VS80sp1-KB926604-X86-CHS.exe
reg delete HKLM/Software/Policies/Microsoft/Windows/Installer /v MaxPatchCacheSize /f
reg import installer.reg
net stop msiserver
del /q installer.reg 2>nul

将以上复制到 1.bat(需跟补丁在同一目录下) 内 ; 以上红字体换成实际补丁名;保存运行即可。

3)安装  ogre

http://downloads.sourceforge.net/ogre/OgreSDKSetup1.4.2_VC80.exe    ogre sdk  必须

http://downloads.sourceforge.net/ogre/OgreDependencies_VC8SP1_Eihort_20070503.zip?download

暂时不知  以后再说

http://downloads.sourceforge.net/ogre/OgreDemos_v1.4.0.msi?download    ogredemo

 

 以下针对遇到的问题逐步解决

error C2664: “MessageBoxW”: 不能将参数 2 从“const char *”转换为“LPCWSTR”

属性 常规 字符集 改为 使用多字节字符集

error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ),该符号在函数 "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ) 中被引用

联接器 输入 附加依赖项 添加 OgreMain_d.lib OIS_d.lib

resources.cfg not found

路径问题   调试 工作目录 添加 debug路径

 复制代码 产生 ‘此字符不允许在标识符中使用’

仔细检查复制的代码是否有其他字符

 

 

有时间再说吧 

可以联系 389836183

原创粉丝点击