ogre向导建立的工程有异常

tx183584 2011-09-17 07:46:56

tt.exe 中的 0x7533b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0032e59c 处的 Ogre::InvalidParametersException。
tt.exe 中的 0x7533b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0032b530 处的 Ogre::InternalErrorException。
tt.exe 中的 0x7533b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0032b530 处的 Ogre::InternalErrorException。
tt.exe 中的 0x7533b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0032b530 处的 Ogre::InternalErrorException。

编译的时候有这些异常抛出,但是能够运行,但是运行占cpu一直在20%以上.查看log文件

有这些提示
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
19:45:07: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : "The compile returned an error."
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
19:45:07: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
19:45:07: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
19:45:07: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
19:45:07: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at .\src\OgreCgProgramManagerDll.cpp (line 67)
...全文
288 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tx183584 2011-11-01
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 jc8futao 的回复:]

帅锅,我也是卡在这里了。今天搞定,然后回来给你解答。
[/Quote]
谢谢啊,不过.我已经放弃ogre了.实在郁闷..
jc8futao 2011-10-30
  • 打赏
  • 举报
回复
帅锅,我发现即使换了CG版本,也还是有问题。
jc8futao 2011-10-30
  • 打赏
  • 举报
回复
url:http://www.ogre3d.org/forums/viewtopic.php?f=5&t=47419

Re: Ogre Exception(7:internalErrorException), i need help pls

by jacmoe » Mon Jan 26, 2009 8:32 pm

What version of CG have you got?
Get 2.1.
If you need to recompile the CG plugin, do so.

Re: Ogre Exception(7:internalErrorException), i need help pls

by jacmoe » Thu Jan 29, 2009 11:05 am

This assumes that you are working against Ogre source:

1.Navigate to your CG folder.
2.Copy the headers from "C:\Program Files\NVIDIA Corporation\Cg\include\Cg" to your dependencies/include/CG
3.Copy cg.lib from "C:\Program Files\NVIDIA Corporation\Cg\lib" to your dependencies/lib/Debug|Release
4.Copy "C:\Program Files\NVIDIA Corporation\Cg\bin\cg.dll" to ogre/samples/common/bin/Debug|Release
5.Recompile the CG programmanager plugin.

The cg.lib and the cg.dll works in both debug|release modes. So just copy them to both folders.


经过搜索,发现是CG版本不对。但是我草泥马国外的nvidia网站打不开~!~!~!~!~!
jc8futao 2011-10-30
  • 打赏
  • 举报
回复
帅锅,我也是卡在这里了。今天搞定,然后回来给你解答。

8,325

社区成员

发帖
与我相关
我的任务
社区描述
游戏开发相关内容讨论专区
社区管理员
  • 游戏开发
  • 呆呆敲代码的小Y
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧